:root {
    /* Color Palette - Deep & Premium */
    --primary-dark: #4a2c5e;
    --primary-main: #CF80A9;
    --primary-light: #e6cce0;
    --accent-pink: #CF80A9;
    --accent-gold: #e2c17b;
    --accent-green: #25D366;

    --bg-light: #fdfbfd;
    --bg-alt: #f4ecf8;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;

    /* Typography */
    --font-heading: 'Open Sans', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Effects */
    --shadow-soft: 0 10px 40px -10px rgba(74, 44, 94, 0.15);
    --shadow-hover: 0 20px 50px -10px rgba(74, 44, 94, 0.25);
    --hover-lift: translateY(-5px);
    --radius-card: 20px;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    color: var(--primary-main);
    margin-top: 0;
    font-weight: 700;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
header {
    margin-bottom: 0;
}

/* HERO */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(74, 44, 94, 0.6)), url('img/portada.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
    position: relative;
}

.hero-sub {
    background: var(--accent-pink);
    color: #fff;
    display: inline-block;
    padding: 5px 20px;
    font-size: 0.85rem;
    font-weight: bold;
    margin-bottom: 25px;
    border-radius: 50px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-section h1 {
    color: white;
    font-size: 3rem;
    max-width: 900px;
    margin: 0 auto 30px;
    line-height: 1.2;
}

.video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16/9;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* SECTION: Audience (Profile Cards) */
.audience-section {
    padding: 100px 20px;
    background: var(--bg-light);
    text-align: center;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.profile-card {
    background: white;
    border-radius: var(--radius-card);
    padding: 40px 30px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
    text-align: left;
}

.profile-card:hover {
    transform: var(--hover-lift);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-light);
}

.card-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: var(--accent-pink);
    background: #fff0f5;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.profile-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* SECTION: Journey (Module Path) */
.journey-section {
    background: var(--primary-main);
    /* Pink Background */
    color: white;
    padding: 100px 20px;
    position: relative;
    overflow: hidden;
}

.journey-intro {
    text-align: center;
    margin-bottom: 60px;
    color: white;
}

.journey-intro h2 {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 15px;
}

/* Grid Layout for Desktop */
.modules-path-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

@media (min-width: 900px) {
    .modules-path-container {
        grid-template-columns: repeat(4, 1fr);
        /* 4 columns */
        gap: 40px;
    }
}

.module-step {
    background: #ffffff;
    border: 1px solid #f8e1ee;
    border-radius: 25px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 10px 25px rgba(207, 128, 169, 0.1);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    z-index: 1;
}

/* Connector Line (Default: Vertical for Mobile) */
.module-step::after {
    content: '';
    position: absolute;
    background: #CF80A9;
    /* Accent pink */
    z-index: -1;
}

/* Mobile: Connect down */
.module-step::after {
    width: 2px;
    height: 30px;
    /* Gap size */
    bottom: -32px;
    /* Extend into gap */
    left: 50%;
    transform: translateX(-50%);
}

/* Cleanup last item line */
.module-step:last-child::after {
    display: none;
}

@media (min-width: 900px) {

    /* Desktop: Connect right */
    .module-step::after {
        width: 42px;
        /* Gap size + overlap */
        height: 2px;
        top: 42px;
        /* Align deeply with Module X label */
        bottom: auto;
        left: auto;
        right: -42px;
        transform: none;
    }

    /* Hide connector on the last item of each row (4th) */
    .module-step:nth-child(4n)::after {
        display: none;
    }

    /* Ensure last child hidden regardless */
    .module-step:last-child::after {
        display: none;
    }
}

.module-step:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(207, 128, 169, 0.2);
    border-color: var(--primary-main);
}

.module-img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin-bottom: 15px;
    margin-top: 15px;
    filter: none;
    transition: 0.3s;
}

.module-step:hover .module-img {
    transform: scale(1.05);
}

.module-number {
    display: block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    color: var(--primary-main);
    background: #fff0f5;
    padding: 5px 15px;
    border-radius: 20px;
}

.module-step h3 {
    color: var(--primary-dark);
    font-size: 1.25rem;
    margin: 0;
    line-height: 1.3;
}

/* Connectors for "Path" feel (Optional dashed line logic could go here) */


/* SECTION: Deliverables (Premium Box) */
.deliverables-section {
    padding: 100px 20px;
    background: url('../imagenes/generales/pattern-light.jpg');
    /* optional texture */
}

.premium-box {
    background: white;
    max-width: 900px;
    margin: 0 auto;
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 800px) {
    .premium-box {
        grid-template-columns: 1.5fr 1fr;
    }
}

.box-content {
    padding: 50px;
}

.deliverable-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.deliverable-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.check-icon {
    color: var(--white);
    background: var(--accent-green);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    margin-top: 3px;
    flex-shrink: 0;
}

.box-image {
    background: var(--primary-main);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 40px;
    text-align: center;
}

/* TESTIMONIALS */
.testimonials-section {
    padding: 80px 20px;
    background: #fafafa;
    text-align: center;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 40px;
}

.video-placeholder {
    aspect-ratio: 9/16;
    background: #000;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.video-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.video-placeholder i {
    position: absolute;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* FOOTER BIO */
.bio-section {
    padding: 80px 20px;
    background: white;
}

.bio-container {
    max-width: 1100px;
    /* Increased max width */
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 60px;
    /* Increased gap */
}

@media (max-width: 768px) {
    .bio-container {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
}

.bio-img {
    width: 100%;
    max-width: 450px;
    /* Larger image */
    height: auto;
    border-radius: 20px;
    /* Modern rounded corners */
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    /* Premium shadow */
    border: none;
    /* Remove border */
}

.bio-content {
    flex: 1;
    /* Take remaining space */
}

.bio-content h2 {
    color: var(--accent-pink);
    margin-bottom: 25px;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    /* Match other headings */
}

.bio-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin-bottom: 20px;
    color: #444;
}

/* Final Footer */
footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 50px 20px;
    text-align: center;
    font-size: 0.9rem;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-socials i {
    font-size: 1.5rem;
    color: white;
    transition: 0.3s;
}

.footer-socials i:hover {
    color: var(--accent-pink);
}

/* SECTION: Deliverables (New Design) */
.deliverables-section {
    padding: 100px 20px;
    background: white !important;
}

.btn-download-program {
    background: #CF80A9;
    /* Pink background */
    color: white;
    text-decoration: none;
    padding: 20px 50px;
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 1px;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 50px;
    box-shadow: 0 6px 20px rgba(207, 128, 169, 0.4);
}

.btn-download-program:hover {
    background: #a65d83;
    /* Darker pink */
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(207, 128, 169, 0.4);
}

.deliverable-list-new {
    list-style: none;
    padding: 0;
    margin: 0;
}

.deliverable-list-new li {
    display: flex;
    align-items: flex-start;
    gap: 25px;
    margin-bottom: 30px;
}

.deliverable-list-new li img {
    width: 35px !important;
    /* Force small size */
    height: auto;
    flex-shrink: 0;
    margin-top: 5px;
    /* Align with first line of text */
    opacity: 0.8;
}

.deliverable-list-new li p {
    font-size: 1.1rem;
    color: #555;
    margin: 0;
    line-height: 1.6;
}


/* TESTIMONIALS GRID (Lazy Load) */
.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* 1 Column Mobile */
    gap: 20px;
    margin-top: 40px;
}

@media (min-width: 768px) {
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        /* 2 Columns Desktop */
        gap: 30px;
    }
}

.video-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #000;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.video-card:hover .video-thumbnail {
    opacity: 0.6;
}

.play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(207, 128, 169, 0.9);
    /* Primary Pink */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.video-card:hover .play-overlay {
    background: white;
    color: #CF80A9;
    transform: translate(-50%, -50%) scale(1.1);
}

.video-card video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.video-card video {
    pointer-events: none;
    /* Let clicks pass to the card handler initially */
}

/* Audience Visual Grid (Moved from inline) */
.audience-grid-visual {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    width: 70%;
    margin: 0 auto;
}

.audience-item-visual {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    background: #ffffff;
    padding: 30px;
    border-radius: 30px;
    box-shadow: 0 10px 40px rgba(207, 128, 169, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #fdfdfd;
}

.audience-item-visual:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(207, 128, 169, 0.2);
    border-color: #fbebf4;
}

.audience-item-visual img {
    width: 60px;
    height: auto;
    flex-shrink: 0;
    opacity: 1;
    filter: drop-shadow(0 4px 6px rgba(207, 128, 169, 0.2));
}

.audience-item-visual p {
    font-size: 1.4rem;
    margin: 0;
    color: #555;
    line-height: 1.6;
    font-weight: 400;
}

/* Modifier for 3 columns */
.audience-grid-visual.cols-3 {
    grid-template-columns: repeat(3, 1fr);
    width: 95%;
    /* Use more width */
    max-width: 1200px;
}

.audience-grid-visual.cols-3 .audience-item-visual {
    flex-direction: column;
    text-align: center;
    align-items: center;
    gap: 15px;
}

@media (max-width: 768px) {
    .audience-grid-visual {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .audience-item-visual {
        padding: 18px;
        border-radius: 20px;
        gap: 12px;
    }

    .audience-item-visual img {
        width: 45px;
    }

    .audience-item-visual p {
        font-size: 1.2rem;
    }
}

/* Footer CTA 2-Column Layout */
.footer-cta-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    gap: 40px;
}

@media (max-width: 768px) {
    .footer-cta-layout {
        flex-direction: column;
        text-align: center;
    }
}

/* Mobile Typography Adjustments (Hero) */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 15px;
    }

    .hero-sub {
        font-size: 1rem !important;
        /* Force override of inline style */
        margin-bottom: 20px !important;
    }

    .methodology-title {
        font-size: 1.3rem !important;
        margin-bottom: 20px !important;
    }

    .journey-title-main {
        font-size: 1.6rem !important;
    }

    .journey-title-sub {
        font-size: 1.4rem !important;
    }
}