/* =============================================================================
   Guirigall — home.css
   Hero Poster · Carta · Reseñas · CTA · Ubicación · Animaciones
   ============================================================================= */

/* ─── Tokens nuevos (poster + status) ────────────────────────────────────────── */
:root {
    --font-poster: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
    --font-script: 'Caveat', 'Brush Script MT', cursive;
    --color-verde-abierto: #2E9F4D;
}

/* ─── Utilidad compartida ─────────────────────────────────────────────────── */

.section-label {
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-gris-600);
    margin-bottom: var(--space-4);
}

/* ─────────────────────────────────────────────────────────────────────────────
   1. HERO POSTER — foto a sangre derecha
   ───────────────────────────────────────────────────────────────────────────── */

.hero-poster {
    position: relative;
    background: var(--color-crema);
    overflow: hidden;
}

.hero-poster__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    align-items: center;
    max-width: 1600px;
    margin: 0 auto;
    min-height: 600px;
}

.hero-poster__content {
    padding: var(--space-12) var(--space-8);
    position: relative;
    z-index: 2;
}

.hero-poster__pretitle {
    font-family: var(--font-script);
    font-size: clamp(38px, 5vw, 60px);
    color: var(--color-rojo);
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    transform: rotate(-2deg);
    transform-origin: left;
}

.hero-poster__title {
    font-family: var(--font-poster);
    font-size: clamp(70px, 9vw, 140px);
    line-height: 0.92;
    letter-spacing: 0.01em;
    color: var(--color-negro);
    margin-bottom: 24px;
    text-transform: uppercase;
    white-space: nowrap;
}

.hero-poster__sub {
    font-family: var(--font-body);
    font-size: 18px;
    color: var(--color-gris-600);
    margin-bottom: 36px;
    max-width: 440px;
    line-height: 1.5;
}

.hero-poster__buttons {
    display: flex;
    gap: 14px;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-top: var(--space-8);
}

/* === FOTO A SANGRE — sin frame === */

.hero-poster__photo {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.hero-poster__photo img {
    width: 110%;
    height: 100%;
    object-fit: contain;
    object-position: center right;
    display: block;
    transform: scale(1.08) translateX(4%);
}

/* Sin degradado en desktop — foto tiene fondo neutro */
.hero-poster__photo::before {
    display: none;
}

/* === BOTONES HERO === */

.hero-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    transition: all var(--transition-fast);
    min-width: 0;
    flex: 0 0 auto;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    position: relative;
}

.hero-btn__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* === BOTÓN PRIMARIO + NOTCH TRIANGULAR === */

.hero-btn--primary {
    background: var(--color-rojo);
    color: var(--color-blanco);
    box-shadow: 0 6px 18px rgba(200, 16, 46, 0.32);
}

.hero-btn--primary::after {
    content: '';
    position: absolute;
    bottom: -9px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid var(--color-rojo);
    pointer-events: none;
}

.hero-btn--primary:hover {
    background: var(--color-rojo-dark, #a50d26);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(200, 16, 46, 0.4);
    color: var(--color-blanco);
}

.hero-btn--primary:hover::after {
    border-top-color: var(--color-rojo-dark, #a50d26);
}

/* === BOTÓN OUTLINE === */

.hero-btn--outline {
    background: var(--color-blanco);
    color: var(--color-negro);
    border: 1.5px solid #d0d0d0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.hero-btn--outline:hover {
    border-color: var(--color-negro);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.hero-btn--outline .hero-btn__icon {
    background: var(--color-gris-100);
}

.hero-btn__text {
    line-height: 1.2;
}

.hero-btn__text strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-btn__text small {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    font-weight: 500;
    margin-top: 2px;
}

/* === RESPONSIVE === */

@media (max-width: 900px) {
    .hero-poster {
        position: relative;
        min-height: auto;
        background: var(--color-crema);
    }

    .hero-poster__inner {
        display: flex;
        flex-direction: column;
        min-height: auto;
    }

    .hero-poster__photo {
        position: relative;
        width: 100%;
        height: 320px;
        order: 1;
        min-height: 0;
        margin-top: 0;
        margin-bottom: 0;
    }

    .hero-poster__photo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        transform: scale(1.05);
    }

    .hero-poster__photo::before,
    .hero-poster__photo::after {
        display: none;
    }

    .hero-poster__content {
        position: relative;
        z-index: 1;
        padding: var(--space-2) var(--space-5) var(--space-2);
        text-align: center;
        order: 2;
        min-height: auto;
        display: block;
    }

    .hero-poster__pretitle {
        font-size: clamp(30px, 7vw, 40px);
        margin-bottom: 4px;
        transform: none;
        text-align: center;
    }

    .hero-poster__title {
        font-size: clamp(50px, 12vw, 74px);
        margin-bottom: 22px;
        line-height: 0.92;
        white-space: nowrap;
    }

    .hero-poster__sub {
        font-size: 14px;
        margin-bottom: 20px;
        margin-left: auto;
        margin-right: auto;
        max-width: 360px;
    }

    .hero-poster__buttons {
        justify-content: center;
        gap: 10px;
        flex-direction: row;
        flex-wrap: nowrap;
        margin-top: 0;
    }

    .hero-btn {
        flex: 1;
        min-width: 0;
        max-width: none;
        padding: 12px 10px;
        justify-content: center;
    }

    .hero-btn--primary::after {
        bottom: -8px;
    }

    .hero-btn__icon {
        width: 32px;
        height: 32px;
    }

    .hero-btn__text strong {
        font-size: 12px;
    }

    .hero-btn__text small {
        font-size: 10px;
    }
}

@media (max-width: 480px) {
    .hero-poster__photo {
        height: 320px;
    }

    .hero-btn {
        padding: 10px 12px;
    }

    .hero-btn__text strong {
        font-size: 11px;
    }

    .hero-btn__text small {
        font-size: 9px;
    }
}

/* ─────────────────────────────────────────────────────────────────────────────
   2. STATUS BAR LIGHT (dentro del hero)
   ───────────────────────────────────────────────────────────────────────────── */

.status-bar-outer {
    background: var(--color-crema);
    padding: var(--space-8) var(--space-8) var(--space-10);
}

.status-bar-light {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: 0;
    max-width: 1600px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
    background: var(--color-blanco);
    border-radius: 18px;
    padding: var(--space-5) var(--space-8);
    border: 1.5px solid var(--color-gris-300);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07);
}

.sbl-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: 0 var(--space-4);
}

.sbl-item__icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gris-300);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--color-negro);
}

.sbl-item__icon svg { width: 22px; height: 22px; }

.sbl-item__icon--green {
    border-color: var(--color-verde-abierto);
    background: rgba(46, 159, 77, 0.08);
}

.sbl-item__icon--red {
    border-color: var(--color-rojo);
    background: rgba(200, 16, 46, 0.06);
}

.sbl-item__text { line-height: 1.3; min-width: 0; }

.sbl-item__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-gris-600);
    margin-bottom: 3px;
}

.sbl-item__label--green { color: var(--color-verde-abierto); }
.sbl-item__label--red   { color: var(--color-rojo); }

.sbl-item__value {
    font-size: 13px;
    color: var(--color-gris-600);
    font-weight: 500;
}

.sbl-item__value strong {
    color: var(--color-negro);
    font-weight: 700;
}

.sbl-pulse {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.sbl-pulse--green {
    background: var(--color-verde-abierto);
    box-shadow: 0 0 0 4px rgba(46, 159, 77, 0.2);
    animation: pulse 2s infinite;
}

.sbl-pulse--red { background: var(--color-rojo); }

.sbl-sep {
    width: 1px;
    height: 40px;
    background: var(--color-gris-300);
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .status-bar-light {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-4);
        padding: var(--space-5) var(--space-6);
    }
    .sbl-sep { display: none; }
}

@media (max-width: 700px) {
    .status-bar-light {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-3);
        padding: var(--space-4);
        margin-top: 44px;
        margin-left: var(--space-2);
        margin-right: var(--space-2);
        margin-bottom: 40px;
        border-radius: 14px;
    }
    .sbl-item { padding: 0; gap: var(--space-2); }
    .sbl-item__icon { width: 36px; height: 36px; }
    .sbl-item__icon svg { width: 18px; height: 18px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. CARTA
   ───────────────────────────────────────────────────────────────────────────── */

.shop-section {
    padding-block: var(--space-24);
}

.shop-section__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 5vw, var(--text-5xl));
    max-width: 16ch;
    margin-bottom: var(--space-12);
    line-height: 1.05;
}

/* ─────────────────────────────────────────────────────────────────────────────
   3. HISTORIA
   ───────────────────────────────────────────────────────────────────────────── */

.historia {
    padding-block: var(--space-24);
    overflow: hidden;
    position: relative;
}

.historia__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: start;
}

@media (min-width: 900px) {
    .historia__inner {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-16);
        align-items: center;
    }
}

.historia__foto-wrap {
    background-color: var(--color-rojo);
    border-radius: var(--radius-xl);
    padding: var(--space-4);
    overflow: hidden;
}

.historia__foto {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    border-radius: calc(var(--radius-xl) - var(--space-4));
}

.historia__derecha {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
    position: relative;
}

.historia__subtitulo {
    font-family: var(--font-display);
    font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.historia__texto p {
    margin-bottom: var(--space-4);
    color: var(--color-gris-600);
    max-width: 55ch;
}

.historia__firma {
    margin-top: var(--space-8);
    font-family: var(--font-display);
    font-style: italic;
    font-size: var(--text-lg);
    color: var(--color-negro);
}

.historia__sello {
    width: 140px;
    height: 140px;
    color: var(--color-rojo);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.historia__sello-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.historia__sello-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    z-index: 1;
}

.historia__sello-num {
    font-family: var(--font-display);
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--color-rojo);
    line-height: 1;
}

.historia__sello-sub {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-gris-600);
}

.historia__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-top: var(--space-8);
    position: relative;
    z-index: 2;
}

.historia__tag {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background-color: var(--color-gris-100);
    border: 1px solid var(--color-gris-300);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--color-negro);
    white-space: nowrap;
}

/* ─────────────────────────────────────────────────────────────────────────────
   4. RESEÑAS
   ───────────────────────────────────────────────────────────────────────────── */

.resenas {
    padding-block: var(--space-16);
}

.resenas__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    margin-bottom: var(--space-8);
}

.resenas__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-3);
}

@media (min-width: 640px)  { .resenas__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .resenas__grid { grid-template-columns: repeat(3, 1fr); } }

.resena-card {
    background-color: var(--color-blanco);
    border: 1px solid #dadce0;
    border-radius: 8px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: box-shadow var(--transition-base);
}

.resena-card:hover {
    box-shadow: 0 1px 6px rgba(32,33,36,.28);
    border-color: rgba(223,225,229,0);
}

.resena-card__header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px;
}

.resena-card__avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    flex-shrink: 0;
}

.resena-card__nombre {
    font-size: 13px;
    font-weight: 500;
    color: #202124;
    display: block;
    line-height: 1.2;
}

.resena-card__fuente {
    font-size: 11px;
    color: #5f6368;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-top: 1px;
}

.resena-card__estrellas {
    color: #FBBC04;
    font-size: 11px;
    letter-spacing: 0.5px;
    align-self: start;
    margin-top: 2px;
}

.resena-card__texto p {
    font-family: var(--font-body);
    font-size: 12px;
    line-height: 1.55;
    color: #3c4043;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─────────────────────────────────────────────────────────────────────────────
   5. CTA BLOCK
   ───────────────────────────────────────────────────────────────────────────── */

.cta-block {
    background-color: var(--color-rojo);
    padding-block: var(--space-24);
    box-shadow: inset 0 2px 40px rgba(0, 0, 0, .15), 0 8px 40px rgba(200, 16, 46, .3);
}

.cta-block__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-10);
}

.cta-block__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-4xl), 7vw, var(--text-6xl));
    color: var(--color-blanco);
    line-height: 1.0;
    max-width: 14ch;
}

.cta-block__actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

.cta-block .btn-outline {
    color: var(--color-blanco);
    border-color: var(--color-blanco);
}

.cta-block .btn-outline:hover {
    background-color: var(--color-blanco);
    color: var(--color-rojo);
}

/* ─────────────────────────────────────────────────────────────────────────────
   6. UBICACIÓN
   ───────────────────────────────────────────────────────────────────────────── */

.ubicacion {
    padding-block: var(--space-24);
}

.ubicacion__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-12);
    align-items: start;
}

@media (min-width: 900px) {
    .ubicacion__inner { grid-template-columns: 1fr 1.4fr; gap: var(--space-16); }
}

.ubicacion__title {
    font-family: var(--font-display);
    font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl));
    margin-bottom: var(--space-8);
}

.ubicacion__horarios {
    margin: 0 0 var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.ubicacion__horarios li {
    display: flex;
    justify-content: space-between;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--color-gris-300);
    font-size: var(--text-base);
}

.ubicacion__horarios li strong { color: var(--color-negro); }
.ubicacion__horarios li span   { color: var(--color-gris-600); }
.ubicacion__closed strong,
.ubicacion__closed span        { color: var(--color-gris-300); }

.ubicacion__address {
    font-style: normal;
    color: var(--color-gris-600);
    font-size: var(--text-base);
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.ubicacion__tel {
    display: block;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-negro);
    margin-bottom: var(--space-6);
    transition: color var(--transition-fast);
}

.ubicacion__tel:hover { color: var(--color-rojo); }

.ubicacion__cta {
    width: 100%;
    justify-content: center;
    padding: var(--space-4);
}

@media (min-width: 640px) {
    .ubicacion__cta { width: auto; padding: var(--space-3) var(--space-8); }
}

.ubicacion__mapa {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.ubicacion__mapa iframe {
    display: block;
    width: 100%;
    min-height: 350px;
}

@media (min-width: 900px) {
    .ubicacion__mapa iframe { min-height: 480px; }
}

/* ─────────────────────────────────────────────────────────────────────────────
   7. ANIMACIONES (IntersectionObserver vía animations.js)
   ───────────────────────────────────────────────────────────────────────────── */

.js-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js-fade-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.js-fade-up:nth-child(2) { transition-delay: 0.1s; }
.js-fade-up:nth-child(3) { transition-delay: 0.2s; }
.js-fade-up:nth-child(4) { transition-delay: 0.3s; }

/* ─────────────────────────────────────────────────────────────────────────────
   8. PORTADA — filtros estilo PILL (activa roja, inactivas blancas)
   ───────────────────────────────────────────────────────────────────────────── */

.home .hero-poster__inner {
    min-height: 450px;
}

.home .hero-poster__photo {
    min-height: 450px;
}

.home .shop-filters {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: none !important;
    padding: var(--space-5) var(--space-8) 0 !important;
    box-shadow: none;
    position: static;
}

.home .shop-filters__list {
    gap: 4px !important;
    padding: 0 !important;
    flex-wrap: wrap !important;
    overflow-x: visible !important;
    align-items: flex-end;
}

/* Pestaña base — redondeada solo arriba */
.home .shop-filters__chip {
    border: none !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 12px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    color: var(--color-negro) !important;
    background: var(--color-blanco) !important;
    box-shadow: 0 -2px 6px rgba(0,0,0,0.05) !important;
    transition: background var(--transition-fast), color var(--transition-fast) !important;
    margin-bottom: 0 !important;
    position: relative;
    z-index: 1;
}

.home .shop-filters__chip svg {
    display: none !important;
}

.home .shop-filters__chip:hover:not(.is-active) {
    background: var(--color-gris-100) !important;
}

/* Pestaña activa — roja, sobresale abajo, conectada al bloque */
.home .shop-filters__chip.is-active,
.home a.shop-filters__chip.is-active {
    background: var(--color-rojo) !important;
    color: var(--color-blanco) !important;
    border: none !important;
    font-weight: 700 !important;
    box-shadow: 0 -3px 10px rgba(200,16,46,0.22) !important;
    padding: 14px 22px 16px !important;
    margin-bottom: -2px !important;
    z-index: 2;
}

/* Tira roja de 4px que conecta la pestaña activa con el bloque */
.home .shop-filters__chip.is-active::after,
.home a.shop-filters__chip.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -3px;
    height: 5px;
    background: var(--color-rojo);
    z-index: 4;
}

.home .shop-filters__chip::before {
    display: none !important;
}

/* Bloque blanco unificado — border-radius 0 arriba-izquierda */
.home .home-shop-section {
    background: var(--color-blanco) !important;
    border-radius: 0 12px 12px 12px !important;
    padding: var(--space-4) !important;
    margin: 0 var(--space-8) !important;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06) !important;
    position: relative;
    z-index: 1;
}

.home .home-shop-section__inner {
    padding: 0 !important;
    max-width: none !important;
}

/* Cards: fondo gris suave, sin sombra propia */
.home .product-card,
.home li.product-card {
    background: var(--color-gris-100) !important;
    box-shadow: none !important;
    border: none !important;
}

.home .product-card:hover {
    background: var(--color-blanco) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08) !important;
    transform: translateY(-2px);
}

/* Tabs JS — ocultar/mostrar */
.home-shop-tab {
    display: none;
}
.home-shop-tab.is-visible {
    display: block;
}

/* Etiqueta de categoría dentro de "Todos" */
.home-shop-tab__label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-gris-600);
    padding: 12px 4px 6px;
    margin: 0;
}

@media (max-width: 700px) {
    .home .shop-filters {
        padding: var(--space-4) var(--space-4) 0 !important;
    }
    .home .shop-filters__list {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 4px !important;
        overflow-x: visible !important;
    }
    .home .shop-filters__chip {
        padding: 10px 8px !important;
        font-size: 12px !important;
        text-align: center;
        justify-content: center;
    }
    .home .shop-filters__chip.is-active {
        padding: 12px 8px 14px !important;
    }
    .home .home-shop-section {
        margin: 0 var(--space-4) !important;
    }
}
