/* ============================================================
   CTB — Casa TierraBuena (taproom) · página /casa  ·  REDISEÑO
   Paleta: café #2b2118 · dorado #c8a24a · crema #f6f3ee
   Radio 28 · sombras suaves · fuente Outfit
   Cargado al final: gana por orden de fuente.
   ============================================================ */

.ctb-casa {
    --ctb-brown: #2b2118;
    --ctb-brown-soft: #3a2d20;
    --ctb-cream: #f6f3ee;
    --ctb-cream-2: #efe8dd;
    --ctb-gold: #c8a24a;
    --ctb-gold-deep: #9a7a2c;
    --ctb-line: rgba(43, 33, 24, 0.12);
    --ctb-ink: rgba(43, 33, 24, 0.82);
    --ctb-ink-soft: rgba(43, 33, 24, 0.66);
    --ctb-shadow: 0 24px 60px rgba(43, 33, 24, 0.16);
    --ctb-shadow-sm: 0 14px 34px rgba(43, 33, 24, 0.12);
    --ctb-radius: 28px;
    --ctb-radius-sm: 20px;
}

/* evita cualquier desbordamiento horizontal */
.ctb-casa,
.ctb-casa section { overflow-x: clip; }

/* eyebrow reutilizable */
.ctb-eye {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--ctb-gold-deep);
    margin-bottom: 22px;
}
.ctb-eye::before {
    content: "";
    width: 34px;
    height: 2px;
    background: var(--ctb-gold);
    display: inline-block;
}
.ctb-eye-light { color: var(--ctb-gold); }

/* ============================================================
   1 · HERO — banner destacado full-width, radio 28
   ============================================================ */
.ctb-casa-hero {
    padding: 132px 0 30px;
}
.ctb-hero-banner {
    position: relative;
    border-radius: var(--ctb-radius);
    overflow: hidden;
    min-height: 620px;
    display: flex;
    align-items: flex-end;
    box-shadow: var(--ctb-shadow);
    isolation: isolate;
}
.ctb-hero-banner img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    z-index: -2;
}
.ctb-hero-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(23, 17, 12, 0.15) 0%, rgba(23, 17, 12, 0.05) 38%, rgba(23, 17, 12, 0.72) 100%);
}
.ctb-hero-inner {
    padding: 64px 58px 58px;
    max-width: 760px;
    color: var(--ctb-cream);
}
.ctb-hero-inner .ctb-eye {
    color: var(--ctb-gold);
    margin-bottom: 20px;
}
.ctb-hero-inner .ctb-eye::before { background: var(--ctb-gold); }
.ctb-hero-title {
    color: #fff;
    font-size: clamp(2.6rem, 6vw, 4.6rem);
    line-height: 1.02;
    margin: 0 0 20px;
    text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.ctb-hero-title .mil-thin { color: var(--ctb-gold); }
.ctb-hero-tagline {
    font-size: 1.28rem;
    line-height: 1.6;
    color: rgba(246, 243, 238, 0.92);
    max-width: 560px;
    margin: 0 0 34px;
    text-shadow: 0 1px 14px rgba(0, 0, 0, 0.4);
}
.ctb-hero-cta {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* botón "cómo llegar" — dorado, prominente */
.ctb-btn-llegar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px 38px;
    border-radius: 40px;
    background: var(--ctb-gold);
    color: var(--ctb-brown);
    border: 1.5px solid var(--ctb-gold);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 12px 26px rgba(200, 162, 74, 0.34);
}
.ctb-btn-llegar i { font-size: 0.95em; line-height: 1; color: var(--ctb-brown); transition: color 0.25s ease; }
.ctb-btn-llegar:hover {
    background: var(--ctb-brown);
    border-color: var(--ctb-brown);
    color: var(--ctb-cream);
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(43, 33, 24, 0.34);
}
.ctb-btn-llegar:hover i { color: var(--ctb-gold); }

/* botón fantasma sobre foto */
.ctb-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 17px 34px;
    border-radius: 40px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--ctb-cream);
    border: 1.5px solid rgba(246, 243, 238, 0.55);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 1.8px;
    line-height: 1;
    text-transform: uppercase;
    text-decoration: none;
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    transition: all 0.25s ease;
}
.ctb-btn-ghost i { color: var(--ctb-gold); font-size: 0.95em; }
.ctb-btn-ghost:hover {
    background: var(--ctb-cream);
    border-color: var(--ctb-cream);
    color: var(--ctb-brown);
}
.ctb-btn-ghost:hover i { color: var(--ctb-brown); }

/* ============================================================
   2 · LA EXPERIENCIA — editorial + collage asimétrico
   ============================================================ */
.ctb-casa-exp {
    background: linear-gradient(180deg, #ffffff 0%, var(--ctb-cream) 100%);
}
.ctb-exp {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 64px;
    align-items: center;
}
.ctb-exp-text h2 {
    line-height: 1.04;
    margin-bottom: 22px;
    color: var(--ctb-brown);
}
.ctb-exp-text h2 .mil-thin { color: var(--ctb-gold-deep); }
.ctb-exp-lead {
    font-size: 1.34rem !important;
    line-height: 1.6 !important;
    color: var(--ctb-brown);
    margin-bottom: 20px;
}
.ctb-exp-text p {
    font-size: 1.12rem;
    line-height: 1.75;
    color: var(--ctb-ink);
    margin-bottom: 30px;
}
.ctb-exp-feats {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.ctb-exp-feats li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.05rem;
    color: var(--ctb-brown);
}
.ctb-exp-feats li i {
    width: 38px;
    height: 38px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(200, 162, 74, 0.16);
    color: var(--ctb-gold-deep);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

/* collage asimétrico */
.ctb-exp-photos {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    grid-auto-rows: 236px;
    gap: 18px;
}
.ctb-exp-photos a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--ctb-radius);
    box-shadow: var(--ctb-shadow-sm);
    background: var(--ctb-cream-2);
}
.ctb-exp-photos img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ctb-exp-photos a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--ctb-radius);
    box-shadow: inset 0 0 0 0 rgba(200, 162, 74, 0);
    transition: box-shadow 0.35s ease;
    pointer-events: none;
}
.ctb-exp-photos a:hover img { transform: scale(1.06); }
.ctb-exp-photos a:hover::after { box-shadow: inset 0 0 0 3px rgba(200, 162, 74, 0.9); }
.ctb-exp-photos .ctb-exp-tall { grid-row: span 2; }

/* ============================================================
   3 · VISÍTANOS — tarjetas de información
   ============================================================ */
.ctb-casa-info { background: var(--ctb-cream); }
.ctb-info-head { text-align: center; margin-bottom: 58px; }
.ctb-info-head .ctb-eye { justify-content: center; }
.ctb-info-head h2 { color: var(--ctb-brown); line-height: 1.05; }
.ctb-info-head h2 .mil-thin { color: var(--ctb-gold-deep); }

.ctb-info-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
}
.ctb-info-card {
    background: #fff;
    border: 1px solid var(--ctb-line);
    border-radius: var(--ctb-radius);
    padding: 42px 30px 38px;
    text-align: center;
    box-shadow: var(--ctb-shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.ctb-info-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--ctb-shadow);
}
.ctb-info-icon {
    width: 66px;
    height: 66px;
    border-radius: 20px;
    background: var(--ctb-brown);
    color: var(--ctb-gold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 22px;
}
.ctb-info-card h5 {
    color: var(--ctb-brown);
    margin-bottom: 12px;
    font-size: 1.12rem;
}
.ctb-info-card p {
    color: var(--ctb-ink-soft);
    line-height: 1.65;
    margin: 0;
    font-size: 1rem;
}
.ctb-info-card a { color: inherit; text-decoration: none; transition: color 0.25s ease; }
.ctb-info-tel {
    font-size: 1.22rem !important;
    font-weight: 600;
    color: var(--ctb-brown) !important;
    letter-spacing: 0.5px;
}
.ctb-info-tel:hover { color: var(--ctb-gold-deep) !important; }
.ctb-info-social {
    display: flex;
    justify-content: center;
    gap: 14px;
    margin-top: 4px;
}
.ctb-info-social a {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 1.5px solid var(--ctb-brown);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--ctb-brown);
}
.ctb-info-social a:hover {
    background: var(--ctb-brown);
    color: var(--ctb-gold);
    border-color: var(--ctb-brown);
}

/* ============================================================
   4 · MAPA
   ============================================================ */
.ctb-casa-mapa { background: linear-gradient(180deg, var(--ctb-cream) 0%, #ffffff 100%); }
.ctb-map-card {
    border-radius: var(--ctb-radius);
    overflow: hidden;
    box-shadow: var(--ctb-shadow);
    border: 1px solid var(--ctb-line);
    line-height: 0;
    background: var(--ctb-cream);
    margin-bottom: 34px;
}
.ctb-map-card iframe {
    width: 100%;
    height: 420px;
    border: 0;
    display: block;
}
.ctb-map-cta { text-align: center; }

/* ============================================================
   5 · GALERÍA
   ============================================================ */
.ctb-casa-galeria { background: #ffffff; }
.ctb-gal-head { text-align: center; margin-bottom: 52px; }
.ctb-gal-head .ctb-eye { justify-content: center; }
.ctb-gal-head h2 { color: var(--ctb-brown); line-height: 1.05; }
.ctb-gal-head h2 .mil-thin { color: var(--ctb-gold-deep); }

.ctb-gal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.ctb-gal-grid a {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: var(--ctb-radius);
    box-shadow: var(--ctb-shadow-sm);
    background: var(--ctb-cream-2);
    aspect-ratio: 3 / 4;
}
.ctb-gal-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ctb-gal-grid a::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--ctb-radius);
    box-shadow: inset 0 0 0 0 rgba(200, 162, 74, 0);
    transition: box-shadow 0.35s ease;
    pointer-events: none;
}
.ctb-gal-grid a:hover img { transform: scale(1.06); }
.ctb-gal-grid a:hover::after { box-shadow: inset 0 0 0 3px rgba(200, 162, 74, 0.9); }
.ctb-gal-zoom {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(43, 33, 24, 0.72);
    color: var(--ctb-cream);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
.ctb-gal-grid a:hover .ctb-gal-zoom { opacity: 1; transform: translateY(0); }

/* ============================================================
   6 · BANDA CROSS-CTA
   ============================================================ */
.ctb-casa-cross { background: #ffffff; }
.ctb-cross-band {
    position: relative;
    background: var(--ctb-brown);
    border-radius: var(--ctb-radius);
    padding: 74px 60px;
    text-align: center;
    box-shadow: var(--ctb-shadow);
    overflow: hidden;
}
.ctb-cross-band::before {
    content: "";
    position: absolute;
    right: -90px;
    top: -90px;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(200, 162, 74, 0.22) 0%, rgba(200, 162, 74, 0) 68%);
    pointer-events: none;
}
.ctb-cross-band > * { position: relative; z-index: 1; }
.ctb-cross-band .ctb-eye { justify-content: center; color: var(--ctb-gold); }
.ctb-cross-band .ctb-eye::before { background: var(--ctb-gold); }
.ctb-cross-band h3 {
    color: var(--ctb-cream);
    margin-bottom: 18px;
    line-height: 1.1;
}
.ctb-cross-band h3 .mil-thin { color: var(--ctb-gold); }
.ctb-cross-band p {
    color: rgba(246, 243, 238, 0.8);
    font-size: 1.14rem;
    line-height: 1.7;
    max-width: 580px;
    margin: 0 auto 36px;
}
.ctb-cross-btns {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
/* botones sobre fondo café */
.ctb-cross-band .mil-button {
    background: var(--ctb-gold) !important;
    border-color: var(--ctb-gold) !important;
    color: var(--ctb-brown) !important;
}
.ctb-cross-band .mil-button i,
.ctb-cross-band .mil-button span i { color: var(--ctb-brown) !important; }
.ctb-cross-band .mil-button:hover {
    background: var(--ctb-cream) !important;
    border-color: var(--ctb-cream) !important;
    color: var(--ctb-brown) !important;
}
.ctb-cross-band .ctb-btn-secondary {
    background: transparent !important;
    border-color: rgba(246, 243, 238, 0.55) !important;
    color: var(--ctb-cream) !important;
}
.ctb-cross-band .ctb-btn-secondary i { color: var(--ctb-gold) !important; }
.ctb-cross-band .ctb-btn-secondary:hover {
    background: var(--ctb-cream) !important;
    border-color: var(--ctb-cream) !important;
    color: var(--ctb-brown) !important;
}
.ctb-cross-band .ctb-btn-secondary:hover i { color: var(--ctb-brown) !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
    .ctb-exp { gap: 46px; }
    .ctb-info-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .ctb-casa-hero { padding-top: 108px; }
    .ctb-hero-banner { min-height: 520px; }
    .ctb-hero-inner { padding: 44px 40px 44px; }
    .ctb-exp {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .ctb-exp-photos { grid-auto-rows: 210px; }
    .ctb-map-card iframe { height: 340px; }
}

@media (max-width: 768px) {
    .ctb-casa-hero { padding-top: 96px; }
    .ctb-hero-banner { min-height: 460px; }
    .ctb-hero-inner { padding: 34px 26px 34px; }
    .ctb-hero-tagline { font-size: 1.12rem; }
    .ctb-exp-lead { font-size: 1.18rem !important; }
    .ctb-info-head { margin-bottom: 42px; }
    .ctb-gal-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .ctb-cross-band { padding: 50px 28px; }
    .ctb-cross-band p { font-size: 1.04rem; }
}

@media (max-width: 480px) {
    .ctb-casa-hero { padding: 90px 0 20px; }
    .ctb-hero-banner { min-height: 440px; }
    .ctb-hero-inner { padding: 30px 22px; }
    .ctb-hero-cta { gap: 12px; }
    .ctb-btn-llegar, .ctb-btn-ghost { width: 100%; padding: 16px 24px; }
    .ctb-info-grid { grid-template-columns: 1fr; gap: 18px; }
    .ctb-exp-photos { grid-template-columns: 1fr 1fr; grid-auto-rows: 168px; gap: 12px; }
    .ctb-gal-grid { gap: 12px; }
    .ctb-map-card iframe { height: 320px; }
}

/* ============================================================
   FIXES RESPONSIVE  ·  /casa
   ============================================================ */

/* custom.css:582 aplica `height: calc(100% - 60px)` a .ctb-info-card para las
   tarjetas de #historia, que viven en columnas bootstrap de altura igual.
   En Casa esas tarjetas son items de un grid propio y esa altura fija las deja
   60px mas cortas que su contenido: como .ctb-info-card es flex column, los
   hijos se encogen y el icono (flex-shrink:1 por defecto) colapsaba de 66px a
   21px — se veia como una pastilla aplastada — ademas de abrir un hueco muerto
   de 60px bajo cada tarjeta. Se restaura la altura natural y se blinda el icono. */
.ctb-casa .ctb-info-card { height: auto; }
.ctb-casa .ctb-info-icon { flex: none; }

@media (max-width: 768px) {
    /* el hero mezcla el titulo con el rotulo que ya aparece en la foto; el velo
       original arrancaba en 0.15 y solo cargaba abajo. Se sube en toda la altura. */
    .ctb-hero-banner::after {
        background: linear-gradient(180deg,
            rgba(23, 17, 12, 0.46) 0%,
            rgba(23, 17, 12, 0.38) 32%,
            rgba(23, 17, 12, 0.88) 100%);
    }

    /* la galeria son 3 fotos en 2 columnas: la ultima quedaba huerfana a la
       izquierda. Se estira a lo ancho y se le baja el alto para que cierre. */
    .ctb-gal-grid a:last-child:nth-child(odd) {
        grid-column: 1 / -1;
        aspect-ratio: 16 / 10;
    }
}

/* horario dentro de la tarjeta de info: dia a la izquierda, hora a la derecha,
   apilado en pantallas muy angostas para que no se parta el rango */
.ctb-info-horario {
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ctb-info-horario li {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--ctb-ink-soft);
}
.ctb-info-horario .ctb-hor-dia {
    font-weight: 600;
    color: var(--ctb-brown);
    white-space: nowrap;
}
.ctb-info-horario .ctb-hor-hora { white-space: nowrap; }

@media (max-width: 360px) {
    .ctb-info-horario li { flex-direction: column; align-items: center; gap: 2px; }
}
