/* ============================================================
   css/historia.css – Brand Story Timeline + Testimonials
   ============================================================ */

.historia-section {
    padding: 80px 0 60px;
}

/* ── Two-column layout ── */
.historia-layout {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 64px;
    margin-bottom: 80px;
}

/* ── Timeline ── */
.timeline h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 32px;
}

.timeline-track {
    position: relative;
    padding-left: 28px;
}

.timeline-track::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--gold) 0%, transparent 100%);
}

.tl-event {
    position: relative;
    margin-bottom: 32px;
}

.tl-dot {
    position: absolute;
    left: -28px;
    top: 4px;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: var(--navy-mid);
    border: 2.5px solid var(--gold);
    box-shadow: 0 0 10px rgba(212, 168, 67, .35);
}

.tl-year {
    font-size: .75rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: .1em;
    margin-bottom: 4px;
}

.tl-event h4 {
    font-size: .97rem;
    font-weight: 700;
    margin-bottom: 5px;
}

.tl-event p {
    font-size: .85rem;
    color: var(--text-dim);
    line-height: 1.6;
}

.tl-emoji {
    font-size: 1.1rem;
    margin-bottom: 4px;
    display: block;
}

/* ── Origin Story Prose ── */
.origin-story {}

.origin-story h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--gold);
    margin-bottom: 20px;
}

.origin-quote {
    border-left: 3px solid rgba(212, 168, 67, .4);
    padding: 8px 0 8px 20px;
    margin: 20px 0;
    font-style: italic;
    color: var(--text-dim);
    font-size: 1rem;
    line-height: 1.7;
}

.origin-story p {
    font-size: .92rem;
    color: var(--text-dim);
    line-height: 1.75;
    margin-bottom: 14px;
}

/* ── Testimonials ── */
.testimonios {}

.testimonios-title {
    font-size: clamp(1.3rem, 3vw, 2rem);
    font-weight: 800;
    text-align: center;
    margin-bottom: 40px;
}

.testi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.testi-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 24px 22px;
    transition: var(--transition);
}

.testi-card:hover {
    border-color: rgba(212, 168, 67, .2);
    background: var(--card-bg);
}

.testi-stars {
    color: var(--gold);
    font-size: .95rem;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.testi-text {
    font-size: .9rem;
    color: var(--text);
    line-height: 1.7;
    margin-bottom: 18px;
    font-style: italic;
}

.testi-text::before {
    content: '"';
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 0;
    vertical-align: -0.3em;
}

.testi-text::after {
    content: '"';
    color: var(--gold);
    font-size: 1.3rem;
    line-height: 0;
    vertical-align: -0.3em;
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testi-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex-shrink: 0;
    background: var(--navy-light);
    border: 2px solid rgba(212, 168, 67, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .75rem;
    font-weight: 800;
    color: var(--gold);
}

.testi-name {
    font-size: .88rem;
    font-weight: 700;
}

.testi-from {
    font-size: .76rem;
    color: var(--text-dim);
}

/* ── Numbers bar ── */
.historia-numbers {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 48px;
}

.num-card {
    text-align: center;
    padding: 24px 16px;
    background: rgba(212, 168, 67, .04);
    border: 1px solid rgba(212, 168, 67, .15);
    border-radius: var(--radius);
}

.num-val {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--gold);
    line-height: 1;
}

.num-label {
    font-size: .8rem;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .historia-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .historia-numbers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .historia-numbers {
        grid-template-columns: 1fr 1fr;
    }

    .testi-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Full Width Timeline with Images ── */
.timeline-full-width {
    width: 100%;
    margin: 80px 0;
}

.timeline-track-full {
    display: flex;
    flex-direction: column;
    gap: 80px;
    position: relative;
    padding: 20px 0;
}

.tl-event-full {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.tl-event-full:nth-child(even) {
    direction: rtl;
}

.tl-event-full:nth-child(even) .tl-event-text {
    direction: ltr;
}

.tl-event-text {
    border-left: 3px solid var(--gold);
    padding-left: 32px;
}

.tl-year {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.tl-emoji {
    font-size: 1.5rem;
    margin-bottom: 10px;
    display: inline-block;
}

.tl-event-text h4 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text);
    font-family: var(--font-title);
}

.tl-event-text p {
    font-size: 1.05rem;
    color: var(--text-dim);
    line-height: 1.7;
}

.tl-event-media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
    border: 1px solid var(--card-border);
    background-color: var(--navy);
    height: 250px;
    width: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    justify-self: center;
    border: 3px solid #FFFF;
}

.tl-event-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform var(--transition);
}

.tl-event-media:hover img {
    transform: scale(1.03);
}

@media (max-width: 900px) {
    .tl-event-full {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .tl-event-full:nth-child(even) {
        direction: ltr;
    }

    .tl-event-text {
        padding-left: 20px;
    }

    .tl-event-media {
        width: 100%;
        max-width: 320px;
        height: 200px;
    }
}

.event-media-idea img {
    object-position: center 40%;
}

.event-media-primera img {
    object-position: center 40%;
}

/* ── Video Short + Reviews Section ── */
.video-reviews-container {
    width: 100%;
    margin-top: 60px;
}

.video-reviews-grid {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 50px;
    align-items: center;
}

.video-short-wrapper {
    display: flex;
    justify-content: center;
}

.video-short-card {
    position: relative;
    width: 100%;
    max-width: 290px;
    aspect-ratio: 9 / 16;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 3px solid #ffffff;
    background: #000000;
}

.short-video-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.short-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(26, 58, 92, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 6px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 20px;
    pointer-events: none;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.testimonials-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testi-card-clean {
    background: var(--navy);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 12px 18px;
    box-shadow: var(--shadow-card);
    transition: transform var(--transition);
}

.testi-card-clean:hover {
    transform: translateY(-2px);
}

.testi-stars {
    color: var(--gold);
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.testi-text {
    font-size: 0.82rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-bottom: 10px;
    font-style: italic;
}

.testi-author-clean {
    display: flex;
    align-items: center;
    gap: 10px;
}

.testi-avatar-mini {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.7rem;
}

.testi-name-mini {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
}

.testi-from-mini {
    display: block;
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 2px;
}

@media (max-width: 900px) {
    .video-reviews-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .video-short-card {
        max-width: 280px;
        margin: 0 auto;
    }
}

/* ── Alternating Background Section Wrappers ── */
.team-section-wrapper {
    background-color: var(--navy);
    padding: 0 0 100px;
}

.timeline-section-wrapper {
    background-color: var(--navy-mid);
    padding: 100px 0;
}

.video-reviews-section-wrapper {
    background-color: var(--navy);
    padding: 100px 0;
}