/* --- seccion-beneficios.css (Versión con Responsive Mejorado) --- */

.beneficios-registro {
    background: linear-gradient(135deg, #19A553, #138040);
    color: #ffffff;
    padding-top: 80px;
    padding-bottom: 80px;
}

.beneficios-registro .beneficios-header {
    text-align: center;
    margin-bottom: 50px;
}

.beneficios-registro .beneficios-header .titulo-seccion {
    font-size: 2.6rem;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: 700;
}

.beneficios-registro .beneficios-header h2 {
    color: #6aff9e;
}

.beneficios-registro .beneficios-header p {
    font-size: 1.05rem;
    line-height: 1.7;
    max-width: 850px;
    margin: 0 auto;
    opacity: 0.95;
    font-weight: 300;
}

.beneficios-registro .beneficios-grid {
    display: flex;
    padding: 30px;
    gap: 110px;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.beneficios-registro .beneficios-grid2 {
    display: flex;
    padding: 0px;
    gap: 30px;
    align-items: center;
    justify-content: center;
    margin-bottom: 50px;
}

.beneficios-registro .beneficio-card {
    border-radius: 1.5rem;
    border: 2px solid #8BFF85;
    height: 360px;
    width: 292px;
    background-color: transparent;
    transition: all 0.4s ease-in-out;
    padding: 0px 30px;
    text-align: center;
    position: relative;
    box-shadow: 
        8px 8px 8px rgba(0, 49, 23, 0.4),
        -8px -8px 8px rgba(22, 236, 126, 0.4),
        inset 8px 8px 16px rgba(0, 49, 23, 0.4),
        inset -8px -8px 16px rgba(22, 236, 126, 0.4);
}

.beneficios-registro .beneficio-card2 {
    border-radius: 1.5rem;
    border: 2px solid #8BFF85;
    height: 375px;
    width: 250px;
    background-color: transparent;
    transition: all 0.4s ease-in-out;
    padding: 0px 20px;
    text-align: center;
    position: relative;
    box-shadow: 
        -8px -8px 8px rgba(22, 236, 126, 0.4),
        8px 8px 8px rgba(0, 49, 23, 0.7);
    animation: entrada 0.4s ease-in-out;
}

@keyframes entrada {
    0% { box-shadow: -8px -8px 8px rgba(0, 49, 23, 0.4), 8px 8px 8px rgba(22, 236, 126, 0.7); border: 2px solid #8BFF85; }
    100% { box-shadow: -8px -8px 8px rgba(0, 49, 23, 0.4), 8px 8px 8px rgba(22, 236, 126, 0.7); border: 2px solid #8BFF85; }
}

.beneficios-registro .beneficio-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow: -9px -9px 18px rgba(0, 180, 83, 0.4), 9px 9px 18px rgba(0, 77, 37, 0.6);
}

.beneficios-registro .beneficio-card2:hover {
    transform: translateY(-10px) scale(1.1);
    box-shadow: -9px -9px 18px rgba(0, 180, 83, 0.4), 9px 9px 18px rgba(0, 77, 37, 0.6);
}

/* Estilos internos de la card */
.beneficios-registro .beneficio-card img {
    height: 170px; 
    margin-bottom: 0px;
    filter: drop-shadow(4px 4px 5px rgb(0, 49, 23)) drop-shadow(-2px -2px 5px rgb(22, 236, 126, 1));
}
.beneficios-registro .beneficio-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: #f0fff0; font-weight: 600; }
.beneficios-registro .beneficio-card p { font-size: 0.9rem; line-height: 1.55; opacity: 1; color: #ffff; font-weight: 300; }

.beneficios-registro .beneficio-card2 img {
    height: 140px; 
    margin-bottom: 0px;
    filter: drop-shadow(4px 4px 5px rgb(0, 49, 23)) drop-shadow(-2px -2px 5px rgb(22, 236, 126, 1));
}
.beneficios-registro .beneficio-card2 h3 { font-size: 1rem; margin-bottom: 20px; color: #f0fff0; font-weight: 600; }
.beneficios-registro .beneficio-card2 p { font-size: 0.8rem; line-height: 1.55; opacity: 1; color: #ffff; font-weight: 300; }

/* --- FORMULARIO --- */
.beneficios-registro .formulario-registro {
    background-color: transparent;
    padding: 45px;
    border-radius: 20px;
    max-width: 650px;
    margin: 0 auto;
}
.beneficios-registro .formulario-registro h3 { text-align: center; font-size: 1.8rem; margin-bottom: 35px; color: #ffffff; font-weight: 600; }
.beneficios-registro .campo-formulario { margin-bottom: 25px; }
.beneficios-registro .campo-formulario label { display: block; margin-bottom: 10px; font-size: 0.85rem; font-weight: 400; opacity: 1; color: #e0f2f1; }

.beneficios-registro .campo-formulario input[type="text"],
.beneficios-registro .campo-formulario input[type="tel"],
.beneficios-registro .campo-formulario input[type="email"],
.beneficios-registro .campo-formulario input[type="password"] {
    width: 100%;
    padding: 8px 20px;
    background: linear-gradient(90deg, #0b4926 10%, #127e3f 90%);
    border: solid 1px rgba(0, 163, 63, 0.8);
    border-radius: 15px;
    color: #ffffff;
    font-size: 0.95rem;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease-in-out;
    box-shadow: 
        inset 8px 8px 14px rgba(0, 49, 23, 0.8),
        inset -8px -8px 14px rgba(0, 115, 56, 0.6),
        8px 8px 10px rgba(0, 90, 42, 0.8),
        -8px -8px 10px rgba(22, 236, 126, 0.6),
        0 0 0 0px rgba(11, 92, 49, 0);
    scale: 1;
}

.beneficios-registro .campo-formulario input[type="text"]:focus,
.beneficios-registro .campo-formulario input[type="tel"]:focus,
.beneficios-registro .campo-formulario input[type="email"]:focus,
.beneficios-registro .campo-formulario input[type="password"]:focus {
    outline: none;
    box-shadow: 
        inset 8px 8px 14px rgba(0, 49, 23, 0.8),
        inset -8px -8px 14px rgba(0, 115, 56, 0.6),
        8px 8px 20px rgba(0, 49, 23, 0.8),
        -8px -8px 20px rgba(22, 236, 126, 0.6),
        0 0 0 1px rgba(0, 191, 88, 0.3);
    scale: 1.1;
}

.beneficios-registro .campo-formulario input::placeholder { color: rgba(224, 242, 241, 0.6); }

.beneficios-registro .campo-formulario.campo-doble { display: flex; gap: 18px; }
.beneficios-registro .campo-formulario.campo-doble > div { flex: 1; }

/* --- Checkbox --- */
.beneficios-registro .campo-checkbox { margin-bottom: 18px; display: flex; align-items: center; gap: 8px; }
.beneficios-registro .campo-checkbox > label[for] { font-size: 0.8rem; opacity: 0.9; margin-bottom: 0; font-weight: 300; line-height: 1.3; color: #e0f2f1; cursor: pointer; }
.checkbox-wrapper * { -webkit-tap-highlight-color: transparent; outline: none; }
.checkbox-wrapper input[type="checkbox"] { display: none; }
.checkbox-wrapper label { --size: 20px; --shadow: calc(var(--size) * .07) calc(var(--size) * .1); position: relative; display: block; width: var(--size); height: var(--size); background-color: #41d08b; background-image: linear-gradient(43deg, #86fdb4 0%, #00a462 46%, #004328 100%); border-radius: 50%; cursor: pointer; transition: 0.2s ease transform, 0.2s ease background-color, 0.2s ease box-shadow; overflow: hidden; z-index: 1; }
.checkbox-wrapper label:before { content: ""; position: absolute; top: 50%; right: 0; left: 0; width: calc(var(--size) * .7); height: calc(var(--size) * .7); margin: 0 auto; background-color: #fff; transform: translateY(-50%); border-radius: 50%; box-shadow: inset 0 var(--shadow) #005033; transition: 0.2s ease width, 0.2s ease height; }
.checkbox-wrapper label:hover:before { width: calc(var(--size) * .55); height: calc(var(--size) * .55); box-shadow: inset 0 var(--shadow) #00572d; }
.checkbox-wrapper label:active { transform: scale(0.9); }
.checkbox-wrapper .tick_mark { position: absolute; top: -1px; right: 0; left: calc(var(--size) * -.05); width: calc(var(--size) * .6); height: calc(var(--size) * .6); margin: 0 auto; margin-left: calc(var(--size) * .14); transform: rotateZ(-40deg); }
.checkbox-wrapper .tick_mark:before, .checkbox-wrapper .tick_mark:after { content: ""; position: absolute; background-color: #fff; border-radius: calc(var(--size) * 0.04); opacity: 0; transition: 0.2s ease transform, 0.2s ease opacity; }
.checkbox-wrapper .tick_mark:before { left: 0; bottom: 0; width: calc(var(--size) * .1); height: calc(var(--size) * .3); box-shadow: -2px 0 5px rgba(0, 0, 0, 0.23); transform: translateY(calc(var(--size) * -.68)); }
.checkbox-wrapper .tick_mark:after { left: 0; bottom: 0; width: 100%; height: calc(var(--size) * .1); box-shadow: 0 3px 5px rgba(0, 0, 0, 0.23); transform: translateX(calc(var(--size) * .78)); }
.checkbox-wrapper input[type="checkbox"]:checked + label { background-image: linear-gradient(43deg, #003a15 0%, #003a15 46%, #003a15 100%); }
.checkbox-wrapper input[type="checkbox"]:checked + label:before { width: 0; height: 0; }
.checkbox-wrapper input[type="checkbox"]:checked + label .tick_mark:before, .checkbox-wrapper input[type="checkbox"]:checked + label .tick_mark:after { transform: translate(0); opacity: 1; }

/* Botón de envío */
.beneficios-registro .btn-submit-registro { display: flex; border-radius: 30px; margin: 50px auto 0 auto; font-size: 0.9rem; font-weight: 700; color:#127c3e; border: none; background-color: #8BFF85; transition: all 0.4s ease-in-out; padding: 18px 60px; text-align: center; position: relative; box-shadow: -12px -12px 20px rgba(106, 216, 151, 0.4), 12px 12px 20px rgba(11, 79, 38, 0.7); }
.beneficios-registro .btn-submit-registro:hover { transform: translateY(-6px) scale(1.01); box-shadow: -9px -9px 30px rgba(0, 180, 83, 1), 9px 9px 20px rgba(0, 77, 37, 1); }
.beneficios-registro .btn-submit-registro:active { box-shadow: -12px -12px 20px rgba(106, 216, 151, 0.4), 12px 12px 20px rgba(11, 79, 38, 0.7), inset 5px 5px 10px rgba(0, 180, 83, 1), inset -5px -5px 10px rgba(0, 77, 37, 1); transform: translateY(1px); }


/*
==========================================================================
    MEDIA QUERIES PARA RESPONSIVE - MEJORADAS Y AGRUPADAS
==========================================================================
*/

/* --- Para Tablets y Móviles Grandes (hasta 992px) --- */
@media (max-width: 992px) {
    /* Hacemos que los grids de beneficios se pongan en columna */
    .beneficios-registro .beneficios-grid,
    .beneficios-registro .beneficios-grid2 {
        flex-direction: column;
        gap: 50px; /* Reducimos el espacio vertical entre las cards */
        padding: 15px 0; /* Ajustamos el padding del grid */
    }

    /* Hacemos que las cards ocupen un ancho más razonable y no tengan altura fija */
    .beneficios-registro .beneficio-card,
    .beneficios-registro .beneficio-card2 {
        width: 90%; /* Ocupan el 90% del contenedor padre */
        max-width: 400px; /* Pero no más de 400px para no ser gigantes */
        height: auto; /* La altura se ajusta al contenido */
        min-height: 340px; /* Mantenemos una altura mínima por estética */
        padding: 30px; /* Un padding consistente */
    }

    /* Ajustamos el tamaño de la imagen dentro de la card */
    .beneficios-registro .beneficio-card img,
    .beneficios-registro .beneficio-card2 img {
        height: 150px;
    }
}

/* --- Para Móviles (hasta 768px) --- */
@media (max-width: 768px) {
    /* Reducimos el espaciado general de la sección */
    .beneficios-registro {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    /* Ajustamos la tipografía del encabezado */
    .beneficios-registro .beneficios-header .titulo-seccion {
        font-size: 2.1rem;
    }
    .beneficios-registro .beneficios-header p {
        font-size: 0.95rem;
    }

    /* Hacemos que los campos dobles del formulario se pongan en columna */
    .beneficios-registro .campo-formulario.campo-doble {
        flex-direction: column;
        gap: 25px; /* Mantenemos el gap original para esta vista */
    }

    /* Reducimos el padding del contenedor del formulario */
    .beneficios-registro .formulario-registro {
        padding: 35px 25px;
    }

    /* Reducimos el efecto de zoom en el focus del input para evitar desbordamientos */
    .beneficios-registro .campo-formulario input[type="text"]:focus,
    .beneficios-registro .campo-formulario input[type="tel"]:focus,
    .beneficios-registro .campo-formulario input[type="email"]:focus,
    .beneficios-registro .campo-formulario input[type="password"]:focus {
        scale: 1.05; /* Un zoom más sutil */
    }

    /* Ajustamos el botón de envío */
    .beneficios-registro .btn-submit-registro {
        padding: 16px 50px;
        font-size: 0.85rem;
    }
}

/* --- Para Móviles Pequeños (hasta 480px) --- */
@media (max-width: 480px) {
    /* Ajustes aún más finos para las pantallas más pequeñas */
    .beneficios-registro .beneficios-header .titulo-seccion {
        font-size: 1.8rem;
    }
    
    .beneficios-registro .beneficios-header p {
        font-size: 0.9rem;
    }
    
    .beneficios-registro .formulario-registro {
        padding: 25px 15px; /* Menos padding lateral */
    }
    
    /* Quitamos el efecto de zoom en el focus del todo para evitar problemas de layout */
    .beneficios-registro .campo-formulario input[type="text"]:focus,
    .beneficios-registro .campo-formulario input[type="tel"]:focus,
    .beneficios-registro .campo-formulario input[type="email"]:focus,
    .beneficios-registro .campo-formulario input[type="password"]:focus {
        scale: 1;
    }

    .beneficios-registro .beneficios-grid,
    .beneficios-registro .beneficios-grid2 {
        gap: 35px; /* Un poco menos de espacio entre cards */
    }
}