@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@400;700&display=swap');

body {
    font-family: Barlow, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
    color: #333;
}

.header {
    text-align: center;
    padding: 5px 0 10px 0;
    background-color: #fff;
    border-bottom: 1px solid #eee;
}

.logo img {
    max-width: 600px;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* --- FUNCIÓN ENTRANH: IMAGEN RESPONSIVA (Desktop) --- */
.entradanh {
    /* Mantiene el contenedor a 1200px para proporcionalidad con el resto de la página */
    width: 100%;
    max-width: 1200px; 
    
    /* Altura proporcional para Desktop (700/1920 ≈ 36.46%) */
    padding-bottom: 36.5%; 
    
    background-size: contain; /* Muestra imagen completa */
    background-position: center center;
    background-repeat: no-repeat;
    margin: 0 auto 0 auto;
    overflow: hidden;
}

.main-content {
    max-width: 1200px;
    margin: 0 auto 0 auto;
    padding: 0 20px;
}

.hero-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0px;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.cyber-form-container {
    background-color: #E0F7FA;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 350px;
    position: relative;
    overflow: hidden;
}

.form-header h2 {
    color: #005A70;
    margin-top: 0;
    font-size: 24px;
    text-align: center;
}

.form-header p {
    font-size: 15px;
    color: #333;
    text-align: center;
    margin-bottom: 25px;
}

.cyber-form .form-group {
    margin-bottom: 20px;
}

.cyber-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #005A70;
}

.cyber-form input[type="text"],
.cyber-form input[type="email"] {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #B2EBF2;
    border-radius: 6px;
    background-color: #fff;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.cyber-form input[type="text"]:focus,
.cyber-form input[type="email"]:focus {
    border-color: #00BCD4;
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
}

.checkbox-group input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.checkbox-group label {
    margin-bottom: 0;
    color: #333;
    font-weight: normal;
}

.submit-button {
    background-color: #E91E63;
    color: #fff;
    padding: 14px 25px;
    border: none;
    border-radius: 30px;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    display: block;
    width: fit-content;
    margin: 0 auto;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.submit-button:hover {
    background-color: #D81B60;
    transform: translateY(-2px);
}

.form-decoration {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 100px;
    height: 100px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(229,115,115);stop-opacity:1" /><stop offset="100%" style="stop-color:rgb(255,205,210);stop-opacity:1" /></linearGradient><linearGradient id="grad2" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:rgb(255,205,210);stop-opacity:1" /><stop offset="100%" style="stop-color:rgb(244,143,177);stop-opacity:1" /></linearGradient></defs><g transform="translate(50,50)"><circle cx="0" cy="0" r="10" fill="#fff" /><path d="M 0 0 L 20 5 A 25 25 0 0 1 10 20 L 0 0" fill="url(#grad1)" /><path d="M 0 0 L 5 20 A 25 25 0 0 1 20 10 L 0 0" fill="url(#grad2)" /><g transform="rotate(45)"><path d="M 0 0 L 20 5 A 25 25 0 0 1 10 20 L 0 0" fill="url(#grad1)" /><path d="M 0 0 L 5 20 A 25 25 0 0 1 20 10 L 0 0" fill="url(#grad2)" /></g><g transform="rotate(90)"><path d="M 0 0 L 20 5 A 25 25 0 0 1 10 20 L 0 0" fill="url(#grad1)" /><path d="M 0 0 L 5 20 A 25 25 0 0 1 20 10 L 0 0" fill="url(#grad2)" /></g><g transform="rotate(135)"><path d="M 0 0 L 20 5 A 25 25 0 0 1 10 20 L 0 0" fill="url(#grad1)" /><path d="M 0 0 L 5 20 A 25 25 0 0 1 20 10 L 0 0" fill="url(#grad2)" /></g><g transform="rotate(180)"><path d="M 0 0 L 20 5 A 25 25 0 0 1 10 20 L 0 0" fill="url(#grad1)" /><path d="M 0 0 L 5 20 A 25 25 0 0 1 20 10 L 0 0" fill="url(#grad2)" /></g><g transform="rotate(225)"><path d="M 0 0 L 20 5 A 25 25 0 0 1 10 20 L 0 0" fill="url(#grad1)" /><path d="M 0 0 L 5 20 A 25 25 0 0 1 20 10 L 0 0" fill="url(#grad2)" /></g><g transform="rotate(270)"><path d="M 0 0 L 20 5 A 25 25 0 0 1 10 20 L 0 0" fill="url(#grad1)" /><path d="M 0 0 L 5 20 A 25 25 0 0 1 20 10 L 0 0" fill="url(#grad2)" /></g><g transform="rotate(315)"><path d="M 0 0 L 20 5 A 25 25 0 0 1 10 20 L 0 0" fill="url(#grad1)" /><path d="M 0 0 L 5 20 A 25 25 0 0 1 20 10 L 0 0" fill="url(#grad2)" /></g></g></svg>');
    background-size: contain;
    background-repeat: no-repeat;
    opacity: 0.6;
    transform: rotate(15deg);
    z-index: 0;
}

.sections-container {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.faq-section, .recommendations-section {
    flex: 1;
    min-width: 350px;
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.faq-section h3, .recommendations-section h3 {
    color: #333;
    font-size: 22px;
    margin-bottom: 25px;
    text-align: center;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    overflow: hidden;
}

.accordion-header {
    background-color: #f7f7f7;
    color: #333;
    padding: 15px 20px;
    width: 100%;
    text-align: left;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.accordion-header:hover {
    background-color: #ececec;
}

.accordion-header::after {
    content: '+';
    font-size: 20px;
    transition: transform 0.3s ease;
}

.accordion-header.active::after {
    content: '-';
    transform: rotate(180deg);
}

.accordion-content {
    padding: 0 20px;
    background-color: #fff;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion-content.active {
    max-height: 500px;
    padding: 15px 20px;
}

/* --- SECCIÓN DEL SLIDER CORREGIDA --- */

/* Ajustamos el contenedor principal */
.slider-container {
    background-color: #E0F7FA;
    border-radius: 6px;
    position: relative;
    /* ELIMINAMOS TODOS LOS PADDINGS O MARGENES CONFLICTIVOS */
    padding: 0; 
    overflow: hidden; 
}
.slider-wrapper {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    /* Necesitamos que el wrapper no se desborde horizontalmente */
    width: 100%;
}

.slide {
    /* Nos aseguramos que el slide ocupe el 100% y no tenga padding */
    min-width: 100%;
    width: 100%; 
    flex-shrink: 0;
    padding: 0; 
    box-sizing: border-box;
}
/* AJUSTE CLAVE: Aplicamos el margen y padding para el texto */
.slide-content {
    /* Padding vertical (superior e inferior) */
    padding-top: 25px;
    padding-bottom: 25px; 
    
    /* PADDING HORIZONTAL QUE NECESITAS (40px) */
    padding-left: 0px;
    padding-right: 0px;
    
    /* Aseguramos que el padding se reste del ancho total (100%) */
    box-sizing: border-box;
    width: 100%; 
    margin: 0;
}

/* Ajuste del título H4 (para que respete el padding del .slide-content) */
.slide h4 {
    margin: 40px 40px 10px 40px;
}

.slide p {
    /* Solo dejamos un pequeño margen inferior para separar los párrafos */
    margin: 10px 40px 10px 40px; 
    white-space: normal;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.slider-dots {
    text-align: center;
    margin-top: 15px;
    padding-bottom: 25px;
}

.dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 0 5px;
    background-color: #B2EBF2;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #00BCD4;
}

/* Media Queries para responsividad */
/* --- INICIA CÓDIGO DE RESPONSIVIDAD PARA MÓVILES --- */

/* --- Estilos para Tablets y Móviles en general (hasta 991px) --- */
@media (max-width: 991px) {
    /* 1. Oculta FotoNina.jpg y centra el formulario */
    .hero-image {
        display: none;
    }
    .hero-section {
        justify-content: center;
    }

    /* 2. Reglas de Imagen de Entrada */
    .entradanh {
        /* Altura proporcional para Mobile (1101x1101 = 100%) */
        padding-bottom: 100%; 
        background-position: center center;
    }

    /* 3. Estructura y Espaciado */
    .hero-section,
    .sections-container {
        flex-direction: column;
        align-items: center;
        gap: 30px; 
    }
    .hero-image,
    .cyber-form-container,
    .faq-section,
    .recommendations-section {
        width: 100%;
        min-width: unset;
    }
    .logo img {
        max-width: 90%;
    }
}

/* --- Estilos para Teléfonos pequeños (hasta 480px) --- */
@media (max-width: 480px) {
    .main-content {
        padding: 0 15px;
    }
    .form-header h2,
    .faq-section h3,
    .recommendations-section h3 {
        font-size: 20px;
    }
    .form-header p,
    .cyber-form label,
    .checkbox-group label {
        font-size: 14px;
    }
    .cyber-form input {
        padding: 10px;
        font-size: 14px;
    }
    .submit-button {
        padding: 12px 20px;
        font-size: 15px;
    }
    .accordion-header {
        font-size: 14px;
        padding: 12px 15px;
    }
    .accordion-content p {
        font-size: 14px;
    }
    .slide h4 {
        font-size: 16px;
    }
    .slide p {
        font-size: 13px;
    }
}