﻿/* Variables de colores y estilos */
:root {
    --primary: #3f51b5;
    --primary-dark: #303f9f;
    --primary-light: #c5cae9;
    --accent: #ff4081;
    --text-primary: #212121;
    --text-secondary: #757575;
    --light-bg: #f5f5f5;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 10px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Contenedor principal con degradado moderno */
.cl-content {
    max-width: 1200px;
    margin: 0 auto;
    background: linear-gradient(135deg, #4e54c8, #8f94fb); /* degradado azul → lila */
    border-radius: 12px;
    box-shadow: var(--shadow-heavy);
    padding: 40px;
    position: relative;
    overflow: hidden;
    color: var(--white);
}

    /* Efecto de decoración de fondo */
    .cl-content::before {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        width: 200px;
        height: 200px;
        background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath fill='%23ffffff' fill-opacity='0.15' d='M42.7,57.2l58.1,58.1l58.1-58.1l-58.1-58.1L42.7,57.2z'/%3E%3C/svg%3E") no-repeat;
        background-size: contain;
        opacity: 0.5;
        z-index: 0;
    }

/* Texto de introducción */
.cl-intro-text {
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
}

    .cl-intro-text p {
        font-size: 18px;
        color: var(--white);
        text-align: center;
        max-width: 800px;
        margin: 0 auto;
    }

    .cl-intro-text:first-child p {
        font-weight: 600;
        font-size: 22px;
    }

/* Características */
.cl-features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
}

.cl-feature {
    flex: 1;
    min-width: 250px;
    max-width: 350px;
    background: rgba(255, 255, 255, 0.1); /* semi-transparente para ver el fondo */
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-top: 4px solid var(--primary);
    color: var(--white);
}

    .cl-feature:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-heavy);
    }

    .cl-feature::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, var(--primary-light) 0%, transparent 70%);
        opacity: 0;
        transition: var(--transition);
        z-index: -1;
    }

    .cl-feature:hover::before {
        opacity: 0.1;
    }

    .cl-feature h3 {
        color: var(--white);
        margin-bottom: 15px;
        font-size: 20px;
        position: relative;
        display: inline-block;
    }

        .cl-feature h3::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 40px;
            height: 3px;
            background-color: var(--accent);
            transition: var(--transition);
        }

    .cl-feature:hover h3::after {
        width: 100%;
    }

    .cl-feature p {
        color: var(--white);
    }

/* Contenedor de botones */
.cl-buttons-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 40px;
}

.cl-btn {
    padding: 14px 28px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    outline: none;
    box-shadow: var(--shadow);
    z-index: 1;
}

    .cl-btn::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.2) 100%);
        z-index: -1;
        transition: var(--transition);
        opacity: 0;
    }

    .cl-btn:hover::before {
        opacity: 1;
    }

    .cl-btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    }

    .cl-btn:active {
        transform: translateY(0);
        box-shadow: var(--shadow);
    }

.cl-btn-intro {
    background-color: rgba(63, 81, 181, 0.8);
    color: #fff;
}

.cl-btn-propuesta {
    background-color: rgba(255, 64, 129, 0.8);
    color: #fff;
}

.cl-btn-beneficios {
    background-color: rgba(76, 175, 80, 0.8);
    color: #fff;
}

/* Texto final */
.cl-intro-text:last-child {
    margin-top: 30px;
}

    .cl-intro-text:last-child p {
        font-style: italic;
        font-weight: 500;
    }

/* Estilos para los modales */
.cl-modal {
    display: none;
    position: fixed;
    z-index: 9999; /* más alto que el header */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(5px);
}

.cl-modal-content {
    background-color: var(--white);
    margin: auto;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    z-index: 10000; /* asegura que el contenido quede sobre el overlay */
    animation: modalFadeIn 0.4s ease;
    max-height: 90vh;
    overflow-y: auto;
}







    .cl-modal.active {
        display: flex;
        justify-content: center;
        align-items: center;
        opacity: 1;
    }



@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cl-modal-header {
    padding: 8px 15px; /* más compacto */
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .cl-modal-header h2 {
        font-size: 1rem; /* más pequeño */
        margin: 0; /* quita espacio extra */
    }

.cl-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
    padding: 0 5px;
}

    .cl-close:hover {
        color: var(--accent);
        transform: rotate(90deg);
    }

.cl-modal-body {
    padding: 30px;
}

.cl-modal-section {
    margin-bottom: 30px;
}

    .cl-modal-section h3 {
        color: var(--primary);
        margin-bottom: 15px;
        font-size: 20px;
        border-left: 4px solid var(--accent);
        padding-left: 10px;
    }

    .cl-modal-section p {
        margin-bottom: 15px;
        color: var(--text-secondary);
        line-height: 1.7;
    }

.cl-highlight {
    background-color: rgba(63, 81, 181, 0.05);
    border-left: 4px solid var(--accent);
    padding: 20px;
    border-radius: 0 8px 8px 0;
    margin: 25px 0;
}

    .cl-highlight h3 {
        color: var(--primary-dark);
        margin-bottom: 15px;
    }

/* Responsive */
@media (max-width: 768px) {
    .cl-content {
        padding: 25px;
    }

    .cl-features {
        flex-direction: column;
        align-items: center;
    }

    .cl-feature {
        width: 100%;
    }

    .cl-buttons-container {
        flex-direction: column;
    }

    .cl-btn {
        width: 100%;
    }

    .cl-modal-content {
        width: 95%;
    }

    .cl-modal-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .cl-modal-body {
        padding: 20px;
    }
}





        
        .hero-text {
            flex: 1;
            min-width: 300px;
        }

.hero {
    display: flex;
    align-items: center; /* centra verticalmente */
    gap: 2rem; /* espacio entre texto e imagen */
}

.hero-image {
    display: inline-flex; /* que se ajuste al contenido */
    width: auto;
    height: auto;
    justify-content: center;
    align-items: center;
}
        
                
        .features {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 1.5rem;
            margin-bottom: 2rem;
        }
        
        .feature {
            background: #f8f9fa;
            padding: 1.5rem;
            border-radius: 10px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease;
        }
        
        .feature:hover {
            transform: translateY(-5px);
        }
        
        .feature i {
            font-size: 2rem;
            color: #3498db;
            margin-bottom: 1rem;
        }
