:root {
    --color-dark: #2A3644;
    --color-teal: #10C3C9;
    --color-gray: #6B7280;
    --color-bg: #F8F9FA;
    --font-main: 'Poppins', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--color-bg);
    overflow-x: hidden;
}

.landing-container {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background-color: #f7f7f7;
    padding: 80px 0;
}

/* Background image handling for the right side */
.bg-image {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    background-image: url('../assets/images/hero_two_models_definitivo.jpg?v=4.0');
    background-size: cover;
    background-position: center top;
    z-index: 1;
}

/* A gradient overlay to fade the image into the background color smoothly */
.bg-gradient-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 65%;
    height: 100%;
    background: linear-gradient(to right, #f7f7f7 10%, rgba(247, 247, 247, 0.8) 25%, rgba(247,247,247, 0) 40%);
    z-index: 2;
}

.content-wrapper {
    position: relative;
    z-index: 3;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

header.logos {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
}

/* Hero Logos */
.hero-logo-turqueza {
    width: auto;
    height: 100px;
    object-fit: contain;
}
.logo-separator {
    width: 2px;
    height: 60px;
    background-color: #333;
    opacity: 0.8;
}
.hero-logo-coodelsur {
    height: 80px;
    width: auto;
    object-fit: contain;
}

/* Coodelsur Logo Mock */
.coodelsur-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.leaf-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 5px;
}
.c-text {
    font-size: 24px;
    font-weight: 800;
    color: #202D68; /* deep blue */
    letter-spacing: -0.5px;
}

.main-content {
    max-width: 550px;
}

.headline {
    font-size: 52px;
    line-height: 1.15;
    margin-bottom: 30px;
}
.text-dark {
    color: var(--color-dark);
    font-weight: 800;
}
.text-teal {
    color: var(--color-teal);
    font-weight: 800;
}

.description {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.6;
    margin-bottom: 40px;
    font-weight: 600;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background-color: var(--color-teal);
    color: white;
    text-decoration: none;
    padding: 16px 36px;
    border-radius: 50px;
    font-size: 18px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 195, 201, 0.3);
}
.cta-button i {
    font-size: 22px;
}

.cta-button:hover {
    background-color: #0eabad;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 195, 201, 0.4);
}

/* Utilitarios */
.text-center { text-align: center; }
.text-italic { font-family: 'Playfair Display', serif; font-style: italic; }
.text-uppercase { text-transform: uppercase; }
.text-white { color: #fff; }
.mt-4 { margin-top: 2rem; }
.pb-4 { padding-bottom: 2rem; }
.block { display: block; }
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.badge-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 10px;
}
.section-heading {
    font-size: 32px;
    font-family: 'Playfair Display', serif;
    color: var(--color-dark);
    margin-bottom: 15px;
}
.section-paragraph {
    font-size: 16px;
    color: var(--color-gray);
    line-height: 1.6;
}

/* Sección Nuestro Convenio */
.convenio-section {
    padding: 80px 0;
    background-color: #f7f7f7;
}
.convenio-title {
    font-size: 56px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    margin-bottom: 15px;
}
.convenio-subtitle {
    font-size: 18px;
    color: var(--color-gray);
    max-width: 600px;
    margin: 0 auto 50px auto;
    line-height: 1.5;
}
.convenio-content {
    display: flex;
    align-items: center;
    gap: 50px;
}
.convenio-text-col {
    flex: 1;
}
.convenio-img-col {
    flex: 1;
}
.image-wrapper {
    position: relative;
    border-radius: 20px;
}
.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 20px;
}
.badge {
    position: absolute;
    background: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.badge-turqueza-coodelsur {
    top: 20px;
    right: -30px;
    color: var(--color-dark);
}
.badge-24h {
    bottom: 20px;
    left: -60px;
    background-color: var(--color-teal);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 15px;
}
.badge-24h .b-title {
    font-size: 24px;
    line-height: 1;
}
.badge-24h .b-sub {
    font-size: 12px;
    font-weight: 400;
}
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 20px;
}
.benefit-item {
    display: flex;
    align-items: center;
    gap: 15px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}
.icon-box {
    width: 40px;
    height: 40px;
    background-color: #E6F8F9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.benefit-item span {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-dark);
}

/* Sección Requisitos */
.requisitos-section {
    padding: 60px 0;
    background-color: #f0f2f5;
}
.requisitos-card {
    background: white;
    border-radius: 20px;
    padding: 50px;
    display: flex;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.req-title-col {
    flex: 1;
}
.req-list-col {
    flex: 1.5;
}
.req-list {
    list-style: none;
}
.req-list li {
    font-size: 16px;
    color: var(--color-dark);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}
.req-list li i {
    font-size: 22px;
}
.req-footnote {
    font-size: 12px;
    color: var(--color-gray);
    margin-top: 30px;
    font-style: italic;
}

/* Sección Paso a Paso */
.paso-paso-section {
    padding: 80px 0;
    background-color: white;
}
.paso-title {
    font-size: 42px;
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
}
.paso-subtitle {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.9;
}
.steps-grid {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
}
.step-card {
    background: white;
    border-radius: 15px;
    padding: 30px 20px;
    flex: 1;
    color: var(--color-gray);
    text-align: left;
    min-height: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    border-top: 4px solid var(--color-teal);
    position: relative;
    transition: transform 0.3s ease;
}
.step-card:hover {
    transform: translateY(-5px);
}
.step-number {
    font-size: 48px;
    font-weight: 800;
    color: var(--color-teal);
    opacity: 0.15;
    margin-bottom: 10px;
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 20px;
}
.step-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--color-dark);
    margin-top: 25px;
}
.step-desc {
    font-size: 14px;
    line-height: 1.5;
}
.step-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 250px;
    color: var(--color-gray);
    font-size: 24px;
    opacity: 0.5;
}
.cta-dark {
    background-color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(42, 54, 68, 0.3);
}
.cta-dark:hover {
    background-color: #1a2330;
    box-shadow: 0 6px 20px rgba(42, 54, 68, 0.4);
}

/* Sección Catálogo */
.catalogo-section {
    padding: 80px 0;
    background-color: white;
}
.carousel-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}
.carousel-track-container {
    overflow: hidden;
    width: 100%;
    padding: 20px 0;
}
.carousel-track {
    display: flex;
    list-style: none;
    transition: transform 0.4s ease-in-out;
    margin: 0;
    padding: 0;
}
.carousel-slide {
    flex: 0 0 33.333%;
    padding: 0 10px;
    position: relative;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.5;
    transform: scale(0.9);
}
.carousel-slide.current-slide {
    opacity: 1;
    transform: scale(1.05);
    z-index: 2;
}
.carousel-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.slide-logo {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    text-align: center;
}
.slide-logo .t-text {
    font-family: 'Brush Script MT', 'Comic Sans MS', cursive;
    font-size: 28px;
    color: white;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    transform: rotate(-5deg);
    display: inline-block;
}
.carousel-btn {
    background: none;
    border: none;
    font-size: 40px;
    color: var(--color-gray);
    cursor: pointer;
    transition: color 0.3s;
    z-index: 10;
}
.carousel-btn:hover {
    color: var(--color-teal);
}

/* Hero Promo Banner */
.promo-banner {
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.6) 100%);
    border: 1px solid rgba(16, 195, 201, 0.4);
    border-left: 5px solid var(--color-teal);
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 30px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}
.promo-header {
    margin-bottom: 8px;
}
.promo-badge {
    background-color: var(--color-teal);
    color: white;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 5px;
}
.promo-price {
    font-size: 30px;
    font-weight: 800;
    color: var(--color-dark);
    margin: 0;
    font-family: 'Poppins', sans-serif;
}
.promo-desc {
    font-size: 14px;
    color: var(--color-gray);
    line-height: 1.5;
    margin: 0;
}

/* Promo Details Section Redesign (Overlapping Images) */
.promo-details-section {
    padding: 120px 0;
    background-color: #f7f7f7;
    position: relative;
    /* Removed overflow: hidden so images don't get cut off */
}
.floating-img {
    position: absolute;
    width: 320px;
    height: 420px;
    object-fit: cover;
    border-radius: 20px;
    z-index: 1;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    opacity: 0;
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}
/* Initial states */
.floating-tl {
    top: 40px;
    left: -120px;
    transform: rotate(-20deg) scale(0.85);
}
.floating-br {
    bottom: 40px;
    right: -120px;
    transform: rotate(20deg) scale(0.85);
}

/* In-view states */
.promo-details-section.in-view .floating-tl {
    top: 40px;
    left: -40px;
    transform: rotate(-10deg) scale(1);
    opacity: 0.9;
}
.promo-details-section.in-view .floating-br {
    bottom: 40px;
    right: -40px;
    transform: rotate(10deg) scale(1);
    opacity: 0.9;
}

.promo-centered-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 25px;
    padding: 60px;
    position: relative;
    z-index: 2;
    max-width: 1000px;
    box-shadow: 0 25px 60px rgba(16, 195, 201, 0.1);
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.25, 0.8, 0.25, 1) 0.3s;
}
.promo-details-section.in-view .promo-centered-card {
    opacity: 1;
    transform: translateY(0);
}
.promo-details-title {
    font-size: 38px;
    color: var(--color-dark);
    margin-bottom: 20px;
    line-height: 1.2;
    font-weight: 800;
}
.promo-details-subtitle {
    font-size: 18px;
    color: var(--color-gray);
    margin-bottom: 40px;
    line-height: 1.6;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.promo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}
.promo-benefits-box, .promo-important-box {
    background: rgba(255, 255, 255, 0.7);
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(0,0,0,0.05);
}
.promo-benefits-box:hover, .promo-important-box:hover {
    transform: translateY(-5px);
}
.promo-benefits-box {
    border-top: 4px solid var(--color-teal);
}
.promo-important-box {
    border-top: 4px solid var(--color-dark);
}
.box-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}
.benefits-list, .important-list {
    list-style: none;
}
.benefits-list li, .important-list li {
    font-size: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    line-height: 1.5;
    color: var(--color-dark);
}
.benefits-list li i, .important-list li i {
    font-size: 20px;
    line-height: 1;
    margin-top: 2px;
}

@media (max-width: 992px) {
    .landing-container {
        flex-direction: column;
        padding: 0;
    }
    .content-wrapper {
        display: contents;
    }
    .bg-image {
        position: relative;
        order: 1;
        width: 100%;
        height: 400px;
        opacity: 1;
        border-radius: 0;
        margin-bottom: 0;
        -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
        mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0) 100%);
    }
    header.logos {
        order: 2;
        justify-content: center;
        width: 100%;
        margin-top: 10px;
        margin-bottom: 20px;
        padding: 0 20px;
        position: relative;
        z-index: 10;
    }
    .bg-gradient-overlay {
        display: none;
    }
    .main-content {
        order: 3;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 20px 40px 20px;
    }
    .promo-grid {
        grid-template-columns: 1fr;
    }
    .promo-details-section {
        padding-top: 400px; /* Ensure enough space so they never overlap the text */
        padding-bottom: 60px;
    }
    .floating-img {
        display: block;
        position: absolute;
        border: 5px solid white;
        border-radius: 16px;
        box-shadow: 0 15px 40px rgba(0,0,0,0.12);
        opacity: 1 !important;
        object-fit: cover;
    }
    .promo-details-section.in-view .floating-tl,
    .floating-tl {
        top: 30px;
        right: 50%;
        left: auto;
        margin-right: 5px;
        width: 45vw;
        max-width: 260px;
        aspect-ratio: 3/4;
        height: auto;
        margin-left: 0;
        transform: rotate(-4deg) !important;
        z-index: 5;
    }
    .promo-details-section.in-view .floating-br,
    .floating-br {
        top: 30px;
        left: 50%;
        right: auto;
        bottom: auto;
        margin-left: 5px;
        width: 45vw;
        max-width: 260px;
        aspect-ratio: 3/4;
        height: auto;
        transform: rotate(4deg) !important;
        z-index: 6;
    }
    .promo-centered-card {
        padding: 30px 20px;
    }
    .promo-details-title {
        font-size: 30px;
    }
    
    /* Center promo list items */
    .box-title {
        justify-content: center;
        text-align: center;
    }
    .benefits-list li, .important-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .convenio-content {
        flex-direction: column;
        align-items: center;
    }
    .convenio-text-col {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .benefit-item {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .benefits-grid {
        grid-template-columns: 1fr;
        width: 100%;
    }

    .requisitos-card {
        flex-direction: column;
        padding: 30px;
        align-items: center;
        text-align: center;
    }
    .req-title-col {
        text-align: center;
    }
    .req-list li {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .steps-grid {
        flex-direction: column;
        align-items: center;
    }
    .step-card {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    .step-number {
        position: relative;
        top: 0;
        right: 0;
        margin-bottom: 15px;
    }
    .step-arrow {
        display: none;
    }
    
    /* Adjust badges for mobile so they don't get cut off */
    .badge-24h {
        left: -10px;
        transform: scale(0.85);
        transform-origin: bottom left;
    }
    .badge-turqueza-coodelsur {
        right: -10px;
        transform: scale(0.85);
        transform-origin: top right;
    }
    .image-wrapper {
        margin-top: 30px;
    }
    .carousel-slide {
        flex: 0 0 100%;
    }
    .carousel-slide.current-slide {
        transform: scale(1);
    }
}
@media (max-width: 576px) {
    .headline {
        font-size: 36px;
    }
    header.logos {
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 25px;
    }
    .hero-logo-turqueza {
        height: 60px;
    }
    .logo-separator {
        width: 2px;
        height: 40px;
    }
    .hero-logo-coodelsur {
        height: 50px;
    }
    .paso-title {
        font-size: 32px;
    }
    .convenio-title {
        font-size: 32px;
    }
}

.title-link-hover {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}
.title-link-hover:hover {
    color: var(--color-teal);
    transform: translateY(-2px);
}
