/* ============================================
   ROAD MAP / JOURNEY PATH - Quiénes Somos
   Iglesia Casa del Gran REY
   Paleta unificada: Dorado + Azul oscuro
   ============================================ */

/* --- Hero Section --- */
.about-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0f172a 0%, #1e293b 40%, #334155 100%);
    color: #fff;
    text-align: center;
    padding: 130px 20px 70px;
    overflow: hidden;
}

.about-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.07) 0%, transparent 50%),
                radial-gradient(circle at 70% 30%, rgba(212, 175, 55, 0.04) 0%, transparent 40%);
    animation: heroGlow 12s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes heroGlow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(3%, -2%) scale(1.05); }
}

.about-hero .hero-badge {
    display: inline-block;
    padding: 8px 22px;
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 50px;
    color: var(--accent-gold);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.2rem;
    background: rgba(212, 175, 55, 0.05);
}

.about-hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.about-hero .text-gold-gradient {
    background: linear-gradient(135deg, #d4af37, #f5d76e, #d4af37);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-hero .hero-desc {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .about-hero { min-height: 45vh; padding: 120px 15px 50px; }
    .about-hero h1 { font-size: 2.3rem; }
}


/* --- Chapter Headers --- */
.chapter-header {
    text-align: center;
    padding: 70px 20px 10px;
}

.chapter-header .chapter-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
    background: rgba(212, 175, 55, 0.08);
    color: var(--accent-gold);
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.chapter-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 0.6rem;
}

.chapter-header p {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.6;
}


/* =============================================
   ROAD MAP - THE WINDING PATH
   ============================================= */
.road-map-section {
    padding: 40px 0 60px;
    position: relative;
    overflow: hidden;
}

.road-map-section.bg-warm {
    background: linear-gradient(180deg, #fefcf7 0%, #faf8f2 50%, #f8f6f0 100%);
}

.road-map {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Road Row (3 stops per row) --- */
.road-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    position: relative;
    padding: 10px 0;
}

@media (min-width: 992px) {
    .road-row.reverse #stop-7 { order: 3; }
    .road-row.reverse #stop-8 { order: 2; }
    .road-row.reverse #stop-9 { order: 1; }
}

/* Horizontal path line — THICK AND VISIBLE */
.road-row::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 16.66%;
    right: 16.66%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-gold), rgba(212, 175, 55, 0.6), var(--accent-gold));
    border-radius: 4px;
    z-index: 0;
    box-shadow: 0 1px 6px rgba(212, 175, 55, 0.25);
}

/* Direction arrows on the path */
.road-row .road-arrow {
    position: absolute;
    top: 18px;
    color: var(--accent-gold);
    font-size: 1rem;
    z-index: 1;
    opacity: 0.7;
}

.road-row .road-arrow.arrow-1 { left: 36%; }
.road-row .road-arrow.arrow-2 { left: 62%; }


/* --- Turn Connectors — THICK AND VISIBLE --- */
.road-turn {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    height: 50px;
}

.road-turn .turn-line {
    width: 4px;
    background: linear-gradient(180deg, var(--accent-gold), rgba(212, 175, 55, 0.7));
    border-radius: 4px;
    height: 100%;
    margin: 0 auto;
    position: relative;
    box-shadow: 0 1px 6px rgba(212, 175, 55, 0.25);
}

.road-turn .turn-line::after {
    content: '↓';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--accent-gold);
    font-size: 0.85rem;
    font-weight: 700;
    opacity: 0.7;
}

.road-turn.turn-right .turn-line {
    grid-column: 3;
}

.road-turn.turn-left .turn-line {
    grid-column: 1;
}


/* --- Road Stop --- */
.road-stop {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 8px;
    opacity: 0;
    transform: translateY(30px);
}

.road-stop.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Pin / Marker — ALL GOLD, UNIFIED */
.stop-pin {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(145deg, var(--accent-gold), #c5a030);
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35),
                0 0 0 5px rgba(212, 175, 55, 0.12);
    position: relative;
    z-index: 3;
    transition: all 0.4s ease;
}

.stop-pin:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.45),
                0 0 0 7px rgba(212, 175, 55, 0.18);
}

/* Pulse on the "current" pin */
.stop-pin.active::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.4);
    animation: pinPulse 2s ease-out infinite;
}

@keyframes pinPulse {
    0% { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(1.7); opacity: 0; }
}


/* --- Stop Card --- */
.stop-card {
    background: #fff;
    border-radius: 16px;
    padding: 20px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05),
                0 8px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stop-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-gold), #f5d76e);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(212, 175, 55, 0.12);
}

.stop-card:hover::before {
    opacity: 1;
}

/* Era badge — ALL SAME GOLD STYLE */
.stop-card .card-era {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
    background: rgba(212, 175, 55, 0.1);
    color: #b3932f;
}

.stop-card h4 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 6px;
    line-height: 1.3;
}

.stop-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.stop-card .scripture-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 10px;
    padding: 4px 10px;
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
}

.stop-card .scripture-tag i {
    color: var(--accent-gold);
    font-size: 0.7rem;
}

/* Card with single image */
.stop-card .card-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Card with two images side by side */
.card-img-row {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.card-img-row .card-img-half {
    flex: 1;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.06);
}

/* Dark card variant (for "Hoy") */
.stop-card.card-dark {
    background: linear-gradient(145deg, var(--primary-dark), #334155);
    border-color: transparent;
}

.stop-card.card-dark h4,
.stop-card.card-dark p {
    color: rgba(255,255,255,0.9);
}

.stop-card.card-dark .card-era {
    background: rgba(212, 175, 55, 0.15);
    color: var(--accent-gold);
}

.stop-card.card-dark::before {
    background: linear-gradient(90deg, var(--accent-gold), #f5d76e);
    opacity: 1;
}


/* Date tag */
.stop-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}


/* =============================================
   RESPONSIVE
   ============================================= */

/* ---------- TABLET (601px – 991px) ---------- */
@media (max-width: 991px) and (min-width: 601px) {
    /* Road map: 2 columns */
    .road-row {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .road-row::before {
        left: 25%;
        right: 25%;
        top: 30px;
    }

    .road-turn {
        grid-template-columns: 1fr 1fr;
        height: 40px;
    }

    .road-turn.turn-right .turn-line { grid-column: 2; }
    .road-turn.turn-left .turn-line { grid-column: 1; }

    /* Third item spans full width, centered */
    .road-stop:nth-child(n+4) ~ .road-arrow,
    .road-row .road-arrow.arrow-2 { display: none; }

    .road-stop:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 55%;
        margin: 10px auto 0;
    }

    /* Smaller pins */
    .stop-pin { width: 46px; height: 46px; font-size: 1rem; }

    /* Image cards */
    .stop-card .card-img { height: 100px; }
    .card-img-row .card-img-half { height: 85px; }

    /* Chapter headers */
    .chapter-header { padding: 50px 20px 10px; }
    .chapter-header h2 { font-size: 1.9rem; }

    /* Pastor card */
    .pastor-card { max-width: 95%; }
    .pastor-img-wrapper img { height: 260px; }
    .pastor-info { padding: 24px; }
    .pastor-info h3 { font-size: 1.3rem; }

    /* Sections spacing */
    .pastors-section,
    .testimonials-section { padding: 60px 0; }

    .cta-section { padding: 70px 20px; }
    .cta-section h2 { font-size: 2.2rem; }
}


/* ---------- MOBILE (≤600px) ---------- */
@media (max-width: 600px) {

    /* --- Road Map: Single column, vertical trail --- */
    .road-map { padding: 0 15px; }

    .road-row {
        grid-template-columns: 1fr;
        gap: 0;
        padding-left: 55px;
        position: relative;
    }

    /* Vertical trail line on the left */
    .road-row::before {
        top: 0;
        bottom: 0;
        left: 18px;
        right: auto;
        width: 4px;
        height: auto;
        background: linear-gradient(180deg, var(--accent-gold), rgba(212, 175, 55, 0.4));
        border-radius: 4px;
    }

    /* Hide horizontal arrows */
    .road-row .road-arrow { display: none; }

    /* Stop cards stack vertically */
    .road-stop {
        text-align: left;
        padding: 0 0 28px 0;
        position: relative;
    }

    /* Pin on the left rail */
    .stop-pin {
        position: absolute;
        left: -55px;
        top: 0;
        width: 38px;
        height: 38px;
        font-size: 0.85rem;
        margin: 0;
        box-shadow: 0 3px 10px rgba(212, 175, 55, 0.3),
                    0 0 0 3px rgba(212, 175, 55, 0.1);
    }

    .stop-pin.active::after { inset: -5px; }

    .stop-date { text-align: left; margin-bottom: 8px; }

    /* Hide turn connectors (vertical trail is continuous) */
    .road-turn { display: none; }

    /* Cards */
    .stop-card { padding: 16px 14px; border-radius: 14px; }
    .stop-card h4 { font-size: 0.95rem; }
    .stop-card p { font-size: 0.82rem; }
    .stop-card .card-era { font-size: 0.6rem; }
    .stop-card .scripture-tag { font-size: 0.68rem; }

    /* Images in cards */
    .stop-card .card-img { height: 110px; border-radius: 8px; }

    .card-img-row {
        flex-direction: column;
        gap: 6px;
    }
    .card-img-row .card-img-half {
        height: 100px;
        width: 100%;
    }


    /* --- Chapter Headers --- */
    .chapter-header { padding: 45px 15px 8px; }
    .chapter-header h2 { font-size: 1.6rem; }
    .chapter-header p { font-size: 0.9rem; }
    .chapter-header .chapter-badge { font-size: 0.7rem; padding: 5px 14px; }


    /* --- Hero --- */
    .about-hero { min-height: 40vh; padding: 110px 15px 45px; }
    .about-hero h1 { font-size: 2rem; }
    .about-hero .hero-desc { font-size: 0.95rem; }
    .about-hero .hero-badge { font-size: 0.72rem; padding: 6px 16px; }


    /* --- Road Map Section --- */
    .road-map-section { padding: 25px 0 40px; }


    /* --- Pastor Section --- */
    .pastors-section { padding: 50px 0; }

    .pastor-card { border-radius: 16px; }
    .pastor-img-wrapper img { height: 200px; }
    .pastor-info { padding: 20px 18px 24px; }
    .pastor-info h3 { font-size: 1.2rem; }
    .pastor-info .pastor-role { font-size: 0.7rem; margin-bottom: 12px; }
    .pastor-info .pastor-quote { font-size: 0.9rem; padding-left: 14px; }


    /* --- Testimonials --- */
    .testimonials-section { padding: 50px 0; }
    .testimonial-card { padding: 22px 18px; }
    .testimonial-card::before { font-size: 2.8rem; top: 8px; left: 14px; }
    .testimonial-card p { font-size: 0.9rem; }


    /* --- CTA --- */
    .cta-section { padding: 60px 15px; }
    .cta-section h2 { font-size: 1.7rem; }
    .cta-section p { font-size: 0.95rem; }
    .cta-verse { font-size: 0.88rem; padding: 12px 18px; }
}


/* ---------- EXTRA SMALL (≤400px) ---------- */
@media (max-width: 400px) {
    .about-hero h1 { font-size: 1.7rem; }
    .about-hero .hero-desc { font-size: 0.88rem; }

    .road-row { padding-left: 48px; }
    .stop-pin {
        left: -48px;
        width: 34px;
        height: 34px;
        font-size: 0.78rem;
    }

    .chapter-header h2 { font-size: 1.4rem; }

    .stop-card { padding: 14px 12px; }
    .stop-card h4 { font-size: 0.88rem; }
    .stop-card p { font-size: 0.78rem; }

    .pastor-img-wrapper img { height: 170px; }
    .pastor-info { padding: 16px 14px 20px; }
    .pastor-info h3 { font-size: 1.05rem; }

    .cta-section h2 { font-size: 1.5rem; }
    .cta-verse { font-size: 0.82rem; padding: 10px 14px; }
}


/* =============================================
   PASTORS SECTION
   ============================================= */
.pastors-section {
    padding: 90px 0;
    background: #fff;
}

.pastor-card {
    max-width: 850px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px -8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.5s ease;
}

.pastor-card:hover {
    box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-4px);
}

.pastor-img-wrapper {
    position: relative;
    overflow: hidden;
}

.pastor-img-wrapper img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.pastor-card:hover .pastor-img-wrapper img {
    transform: scale(1.03);
}

.pastor-img-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(30, 41, 59, 0.5), transparent);
    pointer-events: none;
}

.pastor-info {
    padding: 32px 36px 36px;
}

.pastor-info h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.pastor-info .pastor-role {
    color: var(--accent-gold);
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin-bottom: 16px;
}

.pastor-info .pastor-quote {
    font-size: 1rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.7;
    padding-left: 18px;
    border-left: 3px solid var(--accent-gold);
}


/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials-section {
    padding: 90px 0;
    background: var(--bg-color);
}

.testimonial-card {
    background: #fff;
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.4s ease;
    height: 100%;
    position: relative;
}

.testimonial-card::before {
    content: '\201C';
    position: absolute;
    top: 12px; left: 20px;
    font-size: 3.5rem;
    font-family: 'Georgia', serif;
    color: rgba(212, 175, 55, 0.12);
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px -6px rgba(0,0,0,0.1);
}

.testimonial-card p {
    font-style: italic;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}

.testimonial-card .author {
    font-weight: 700;
    color: var(--primary-dark);
    font-size: 0.9rem;
}


/* =============================================
   CTA SECTION
   ============================================= */
.cta-section {
    position: relative;
    padding: 90px 20px;
    background: linear-gradient(160deg, #0f172a, #1e293b);
    color: #fff;
    text-align: center;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(212, 175, 55, 0.04) 0%, transparent 50%);
    pointer-events: none;
}

.cta-section h2 { font-size: 2.5rem; font-weight: 900; color: #fff; margin-bottom: 1rem; }

.cta-section p {
    font-size: 1.05rem;
    color: rgba(255,255,255,0.6);
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.cta-verse {
    display: inline-block;
    padding: 14px 24px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    font-style: italic;
    line-height: 1.6;
    max-width: 600px;
    margin-bottom: 2rem;
}

.cta-verse .verse-ref {
    display: block;
    margin-top: 6px;
    font-style: normal;
    font-weight: 700;
    color: var(--accent-gold);
    font-size: 0.82rem;
}

@media (max-width: 768px) { .cta-section h2 { font-size: 2rem; } }


/* =============================================
   PARTICLES
   ============================================= */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(212, 175, 55, 0.3);
    border-radius: 50%;
}
