* --- Variables y Reset --- */
:root {
    --primary-purple: #2E1A5F;
    --btn-purple: #2E1A5F;
    --btn-green: #25D366;
    --bg-gradient-top: #e0f7fa;
    --bg-gradient-bottom: #d1c4e9;
    --text-dark: #333;
    --white: #ffffff;

    --shadow-light: rgba(0, 0, 0, 0.08);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --transition-speed: 0.4s;
}

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

body {
    background: linear-gradient(to bottom, var(--bg-gradient-top), var(--bg-gradient-bottom));
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

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

@media (max-width: 1366px) {
    .container { max-width: 1000px; }
}

.padding-top {
    padding-top: 50px;
}

.text-center {
    text-align: center;
}

/* --- HERO SECTION --- */
.hero-sucamec {
    margin-top: 100px;
    position: relative;
    background: linear-gradient(rgba(200, 230, 255, 0.85), rgba(230, 230, 255, 0.9)),
        url('https://res.cloudinary.com/dtozni6ik/image/upload/f_auto,q_auto/v1769734704/Gemini_Generated_Image_m07niim07niim07n_cgssap.png');
    background-size: cover;
    background-position: center;
    padding: 30px 0 80px;
    text-align: center;
}

.hero-sucamec h1 {
    font-size: 4.5rem;
    color: var(--primary-purple)
}

.hero-content h1 {
    color: var(--primary-purple);
    font-weight: 800;
    font-size: 4.5rem;
}

/* --- Botones --- */
.hero-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.btn {
    padding: 16px 45px;
    font-size: 1.3rem;
    border-radius: 8px;
    text-decoration: none;
    color: white;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-transform: uppercase;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: all var(--transition-speed) ease;
}

.btn-purple {
    background-color: #2E1A5F !important;
    color: white !important;
}

.btn-green {
    background-color: #25D366 !important;
    color: white !important;
}

.btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 25px var(--shadow-medium);
}

.btn-green-large {
    background-color: #25D366 !important;
    color: white !important;
    padding: 15px 40px;
    border-radius: 30px;
    font-size: 1.2rem;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    margin-top: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: all var(--transition-speed) ease;
}

.btn-green-large:hover {
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* --- Estadísticas --- */
.stats-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    display: flex;
    justify-content: space-around;
    padding: 30px 40px;
    margin: 0 auto;
    margin-top: 40px;
    align-items: center;
    flex-wrap: wrap;
    max-width: 900px;
    position: relative;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-size: 4.6rem;
    font-weight: 700;
    color: #2dc4ad;
    display: inline-block;
    min-width: 50px;
    transition: all 0.5s ease;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}

.stat-desc {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
    max-width: 150px;
    margin: 0 auto;
    font-family: 'Poppins', sans-serif;
}

.divider {
    width: 2px;
    height: 45px;
    background-color: #eee;
}

/* --- SECCIONES COMUNES --- */
.section-title {
    color: var(--primary-purple);
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 10px;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--btn-green);
    margin: 10px auto 0;
    border-radius: 2px;
}

.section-desc {
    text-align: center;
    color: #555;
    max-width: 700px;
    margin: 0 auto 40px;
}

/* --- SECCION MODALIDADES CON FONDO --- */
.modalities-section {
    position: relative;
    padding: 60px 0;
    background: linear-gradient(135deg, rgba(248, 249, 252, 0.95) 0%, rgba(240, 235, 255, 0.93) 100%),
                url('https://res.cloudinary.com/dtozni6ik/image/upload/f_auto,q_auto/v1770040501/imagen_2026-02-02_085501377_kitinb.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- GRID DE MODALIDADES --- */
.modalities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding-bottom: 50px;
}

.modality-card {
    position: relative;
    background: white;
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px var(--shadow-light);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.modality-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px var(--shadow-medium);
}

.icon-circle {
    width: 60px;
    height: 60px;
    background-color: var(--primary-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    font-size: 1.5rem;
}

.modality-card h3 {
    color: var(--btn-purple);
    font-size: 1.1rem;
    margin-bottom: 10px;
}

.modality-card p {
    font-size: 0.9rem;
    color: #666;
}

/* --- SECCION REQUIREMENTS CON FONDO --- */
.requirements-section {
    position: relative;
    padding: 80px 0;
    background: linear-gradient(135deg, rgba(224, 247, 250, 0.96) 0%, rgba(209, 196, 233, 0.94) 100%),
                url('https://res.cloudinary.com/dtozni6ik/image/upload/f_auto,q_auto/v1770040501/imagen_2026-02-02_085501377_kitinb.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

/* --- SUPER TARJETA SUCAMEC (ESTILO MEJORADO) --- */

.sucamec-super-card {
    background: white;
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
    /* Sombra más suave y difusa */
    margin: 60px auto 40px auto;
    /* Margen superior para el icono */
    position: relative;
    max-width: 1100px;
    z-index: 1;
}

/* 1. ICONO FLOTANTE (SELLO) */
.floating-badge {
    position: absolute;
    top: -35px;
    /* Sube la mitad */
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: var(--primary-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 20px rgba(74, 20, 140, 0.4);
    /* Sombra morada */
    border: 4px solid white;
    /* Borde blanco grueso para separarlo */
    z-index: 10;
}

/* 2. LAYOUT (Contenedor Interno) */
.card-layout {
    display: flex;
    align-items: stretch;
    /* Importante: Estira ambos lados igual */
    border-radius: 25px;
    overflow: hidden;
    /* Esto recorta la imagen en las esquinas redondas */
    background: white;
}

/* COLUMNA TEXTO */
.card-info {
    flex: 1;
    /* Ocupa 50% */
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centra el contenido verticalmente */
}

.section-title {
    color: var(--primary-purple);
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 10px;
    line-height: 1.2;
}

.lead-text {
    font-size: 1.1rem;
    color: var(--btn-green);
    /* Verde para resaltar */
    font-weight: 700;
    margin-bottom: 20px;
}

.divider-left {
    width: 40px;
    height: 4px;
    background: #eee;
    margin-bottom: 20px;
    border-radius: 2px;
}

.detail-text {
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* COLUMNA IMAGEN */
.card-image {
    flex: 1;
    /* Ocupa 50% */
    position: relative;
    min-height: 400px;
    /* Altura mínima asegurada */
}

.card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* La imagen rellena todo sin deformarse */
    object-position: center;
}

/* 3. CTA INTEGRADO (Botón) - Diseño Limpio */
.cta-integrated {

    /* --- ANIMACIONES DE ENTRADA --- */
    .fade-in,
    .slide-up {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
    }

    .fade-in.visible,
    .slide-up.visible {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- BOTÓN FLOTANTE DE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #25D366;
    /* Color oficial WhatsApp */
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 9999;
    /* Para que flote sobre todo lo demás */
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20BA56;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

/* Ajuste para tablets */
@media (max-width: 1024px) {
    .hero-sucamec h1,
    .hero-content h1 {
        font-size: 3.2rem;
    }

    .stats-box {
        margin: 0 20px;
        margin-top: 30px;
        gap: 20px;
    }
}

/* Ajuste para celulares */
@media (max-width: 768px) {
    .hero-sucamec h1,
    .hero-content h1 {
        font-size: 2.4rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 320px;
        text-align: center;
    }

    .stats-box {
        margin: 0 15px;
        margin-top: 25px;
        flex-direction: column;
    }

    .divider {
        display: none;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        font-size: 28px;
        bottom: 20px;
        right: 20px;
    }
}