/* ============================================================
   nuestra-historia-mobile.css
   1. Hero rediseñado — dinámico, editorial, foto del local
   2. Responsive mobile completo
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   HERO REDISEÑO — aplica en todos los tamaños
   Idea: foto del local de fondo, contenido abajo-izquierda,
   overlay diagonal dramático, línea dorada lateral
   ══════════════════════════════════════════════════════════ */

.story-hero {
    min-height: 100vh !important;
    align-items: flex-end !important;
    /* contenido pegado abajo */
    justify-content: flex-start !important;
    background-position: center 30% !important;
    background-attachment: fixed !important;
}

/* Overlay multicapa — diagonal dramático */
.story-hero-overlay {
    background:
        linear-gradient(150deg,
            rgba(0, 0, 0, .1) 0%,
            rgba(10, 8, 0, .55) 45%,
            rgba(0, 0, 0, .96) 100%),
        linear-gradient(to top,
            rgba(0, 0, 0, .98) 0%,
            rgba(0, 0, 0, .6) 35%,
            transparent 60%) !important;
}

/* Línea dorada vertical izquierda */
.story-hero-overlay::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 3px;
    background: linear-gradient(to bottom,
            transparent,
            rgba(212, 175, 55, .8) 25%,
            rgba(212, 175, 55, 1) 60%,
            transparent);
    pointer-events: none;
}

/* Grain sutil */
.story-hero-overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    opacity: .025;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
    pointer-events: none;
}

/* Contenido: pegado abajo-izquierda */
.story-hero-content {
    text-align: left !important;
    padding: 5rem 2.5rem 4.5rem !important;
    max-width: 680px !important;
    margin: 0 !important;
    /* Entrada animada */
    animation: storyIn 1.1s cubic-bezier(.22, 1, .36, 1) both;
}

@keyframes storyIn {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Label con línea izquierda */
.story-hero-content .section-label {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: .85rem;
}

.story-hero-content .section-label::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 2px;
    background: var(--primary, #D4AF37);
    flex-shrink: 0;
}

/* Título más grande y alineado izquierda */
.story-hero-title {
    font-size: clamp(2.2rem, 7vw, 5rem) !important;
    text-align: left !important;
    margin-bottom: 1.25rem !important;
    line-height: 1.05 !important;
}

/* Accent con shimmer */
.story-hero-accent {
    background: linear-gradient(90deg,
            #b8902a 0%, #f1d279 40%, #D4AF37 60%, #b8902a 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: goldShimmerHero 4s linear infinite;
    font-style: italic !important;
}

@keyframes goldShimmerHero {
    from {
        background-position: 200% center;
    }

    to {
        background-position: -200% center;
    }
}

.story-hero-desc {
    text-align: left !important;
    margin: 0 !important;
    font-size: clamp(.85rem, 2.5vw, 1.1rem) !important;
    max-width: 500px !important;
    opacity: .85;
}

/* Scroll indicator animado */
.story-hero::after {
    content: '';
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, rgba(212, 175, 55, .8), transparent);
    animation: scrollLine 2s ease-in-out infinite;
    z-index: 3;
}

@keyframes scrollLine {
    0% {
        opacity: 0;
        transform: translateX(-50%) scaleY(0);
        transform-origin: top;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0;
        transform: translateX(-50%) scaleY(1);
        transform-origin: top;
    }
}

/* ══════════════════════════════════════════════════════════
   MOBILE — max 767px
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {

    /* Hero: parallax off en mobile (performance) */
    .story-hero {
        background-attachment: scroll !important;
        min-height: 100svh !important;
    }

    .story-hero-content {
        padding: calc(65px + 1.5rem) 1.25rem 3rem !important;
    }

    .story-hero-title {
        font-size: clamp(1.9rem, 9vw, 2.6rem) !important;
    }

    .story-hero-desc {
        font-size: .85rem !important;
        line-height: 1.65 !important;
    }

    /* ── Chemistry section ────────────────────────────── */
    .story-chemistry-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }

    .story-chemistry-img-wrap {
        aspect-ratio: 4/3 !important;
        /* menos alta en mobile */
    }

    .story-chemistry-text {
        font-size: .9rem !important;
        margin-bottom: 1.25rem !important;
    }

    .story-stats-grid {
        gap: .75rem !important;
        margin-bottom: 1.5rem !important;
    }

    .story-stat-card {
        padding: .85rem !important;
    }

    .story-stat-card h4 {
        font-size: 1.25rem !important;
    }

    .story-stat-card p {
        font-size: .68rem !important;
    }

    /* ── Behind section ───────────────────────────────── */
    .story-behind-header {
        margin-bottom: 2rem !important;
        padding: 0 .25rem;
    }

    .story-behind-header .section-title {
        font-size: 1.5rem !important;
    }

    .story-behind-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .story-behind-img-wrap {
        aspect-ratio: 16/9 !important;
    }

    .story-behind-card h4 {
        font-size: 1rem !important;
    }

    .story-behind-card p {
        font-size: .82rem !important;
    }

    /* ── Timeline ─────────────────────────────────────── */
    .timeline {
        padding: 0 .25rem !important;
    }

    .timeline-item {
        grid-template-columns: 2.25rem 1fr !important;
        gap: 0 1rem !important;
    }

    .timeline-icon .material-symbols-outlined {
        font-size: 1.15rem !important;
    }

    .timeline-content {
        padding-bottom: 2rem !important;
    }

    .timeline-content h4,
    .timeline-title {
        font-size: 1rem !important;
        margin-bottom: .35rem !important;
    }

    .timeline-content p,
    .timeline-desc,
    .timeline-date {
        font-size: .8rem !important;
        line-height: 1.6 !important;
    }

    .timeline-date {
        margin-bottom: .4rem;
    }

    /* ── Secciones generales ──────────────────────────── */
    .story-chemistry.section,
    .story-behind.section,
    .story-timeline.section {
        padding: 3rem 0 !important;
    }

    .container {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
}

/* ── Tablet ───────────────────────────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {

    .story-hero-content {
        padding: calc(65px + 2rem) 2rem 4rem !important;
    }

    .story-chemistry-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 2.5rem !important;
    }

    .story-behind-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}