* {
    box-sizing: border-box;
}

body, html {
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Esto corta y esconde cualquier franja lateral */
}
html {
    /* Esto crea un "margen invisible" arriba al hacer clic en los enlaces */
    scroll-padding-top: 130px; 
    
    /* ¡Extra! Esto hace que el scroll no sea de golpe, sino con una animación suave */
    scroll-behavior: smooth; 
}
body{
    font-family: 'Montserrat', sans-serif;
}
.logo {
    margin-top: 0px;
    width: 150px;
    height: 90px;
    margin-left:100px;
}

.cabezal {
    position: fixed;   
    top: 0;            
    left: 0;          
    width: 100%;       
    z-index: 1000;     
    background-color: white; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px; /* Ajusta según tu diseño */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); /* Opcional: una sombra para que resalte */
}

.enlaces_principales{
    display: flex;
    text-align: center;
    font-size: 30px;
    margin-top: 20px;
    
    font-family: 'Segoe UI', Verdana, sans-serif;
    margin-left: 300px;
    font-weight: 500;
    
}

a{
    text-decoration: none;
    color: #112842;
    margin-right: 70px;
}

button { 
    margin-left: 100px;
    background-color: rgb(184, 131, 33);
    border: 2px solid rgb(184, 131, 33);
    border-radius: 10px;
    color: white;
    font-size: 20px;
    padding-bottom: 2px;
    height: 40px;
    width: 300px;
    margin-top: 23px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    
}
button:hover {
    background-color: rgb(138, 97, 27); /* Se oscurece un poco al pasar el mouse */
}
.panel{
    margin-top: 110px;
    width: 100%;
    height: 500px;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 1) 10%,    /* Blanco sólido a la izquierda */
        rgba(255, 255, 255, 0) 70%     /* Transparente a la derecha */
    ), 
    url("img_panel/imgpanel2.jpg");
    background-size: 59%;
    background-position: right;
    background-repeat: no-repeat;
    
    overflow: hidden;
    
}
.caja_texto_panel{
    color: #05064e;
    width: 40%;
    height: 30%;
    margin-left: 50px;
}
h2 {
    margin-top: 70px;
    font-size: 30px;
    text-transform: uppercase;
    
}
h3 {
    font-size: 20px;
    color: rgb(184, 131, 33);
}


.botones_panel{
    width: 100%;
    
    display: flex;
}

.boton_panel{
    
    margin: auto;
    margin-left: 0px;
    margin-top: 20px;
}

.S_Nosotros{
    
    background-color: #f3eeeef5; /* Gris muy claro y profesional */
    padding: 80px 5%;         /* Espacio amplio arriba/abajo y lateral */
    text-align: center;
}
.label_Nosotros{
    margin-top: 0px;
    font-size: 40px;
    text-align: left;
    color: #112842;
}

p{
    font-size: 20px;
    text-align: left;
}
h3{
    font-size: 40px;
    text-align: left;
    
}
.NuestrosValores{
    display: flex;
    text-align: center;
}

.label_NuestrosValores{
    text-align: center;
}


.Valor{
    height: 350px;
    width: 350px;
    background-color: white;
    margin:auto;
    border-radius: 50%;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    border-bottom: #05064e;
    
    display: flex;         
    flex-direction: column; 
    justify-content: center;
    align-items: center;    
    
    padding: 40px 20px;          
    box-sizing: border-box; 
    text-align: center;
    
}

.Valor img {

    
    width: 80px;
    height: 80px;
}

.Valor strong {
    display: block;
    color: #af7e35;
    font-size: 1.05rem; /* Bajamos de 1.2rem a 1.05rem */
    margin-top: 20px;
    margin-bottom: 5px;
    
    
    text-transform: uppercase;
    width: 100%; /* Asegura que respete el contenedor */

}

.Valor p {
    display: block;
    margin-top: 5px;
}



.Valor {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.Valor:hover {
    transform: translateY(-10px); /* El círculo sube un poquito */
    box-shadow: 0 15px 30px rgba(175, 126, 53, 0.2); /* Sombra dorada suave */
}



.Valores{
    color: #112842;
    margin: auto;
    text-align: center;
    margin-top: 1px;
}


.S_Servicios {
    background-color: #af7e35; /* Fondo casi blanco y limpio */
    padding: 80px 5%;
    text-align: center;
}

.subtitulo_servicios {
    color: white;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.titulo_servicios {
    color: #112842;
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 15px 0;
}

.desc_servicios {
    color: white;
    font-size: 22px;
    margin-bottom: 50px;
    text-align: center;
}

.Panel_Servicios_Cards {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    align-items: stretch; /* Hace que todas las tarjetas tengan el mismo alto */
}

/* LA TARJETA */
.Servicio_Card {
    background-color: white;
    width: 320px; /* Aumentamos de 280px a 320px */
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden; 
    transition: transform 0.3s ease;
}

.Servicio_Card:hover {
    transform: translateY(-10px);
}

.Servicio_Top {
    padding: 30px 20px;
    flex-grow: 1; /* Empuja el footer hacia abajo para que todos queden alineados */
    text-align: center;
}

.icono_servicio {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 15px;
}

.Servicio_Top h4 {
    color: #112842;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 15px 0;
}

.desc_card {
    font-size: 13px;
    color: #666;
    margin-bottom: 20px;
    text-align: center;
}

/* LISTA CON CHECKS */
.lista_servicios {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.lista_servicios li {
    font-size: 15px;
    color: black;
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    line-height: 1.4;
}

.lista_servicios i {
    color: #af7e35; /* Check dorado */
    margin-right: 8px;
    margin-top: 3px; /* Alinea el check con la primera línea de texto */
    font-size: 14px;
}

/* BADGE DE CERTIFICADO (Para la tarjeta de cursos) */
.certificado_badge {
    background-color: #f3eeeef5;
    padding: 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 700;
    color: #112842;
    margin-top: 20px;
    display: inline-block;
}

.certificado_badge i {
    color: #af7e35;
    margin-right: 5px;
}

/* FOOTER DE CADA TARJETA */
.Servicio_Bottom {
    padding: 20px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: white;
    text-align: center;
}

.Servicio_Bottom p {
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    color: white;
}

.Servicio_Bottom i {
    font-size: 24px; /* Icono grande al lado del texto final */
    opacity: 0.8;
}

/* COLORES ESPECÍFICOS */
.fondo_azul {
    background-color: #112842;
}

.fondo_dorado {
    background-color: #af7e35;
}

.S_Soluciones{
    background-color: #f3eeeef5; /* Gris muy claro y profesional */
    padding: 80px 5%;         /* Espacio amplio arriba/abajo y lateral */
    text-align: left;
}


.Soluciones{
    display: flex;
    flex-wrap: wrap;       
    justify-content: center; 
    gap: 30px;             
    padding: 40px;
}
.Solucion{
    text-align: center;
    width: 350px;
    height: 350px;        
    background-color: white;
    border-radius: 40px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
    
    /* ALINEACIÓN INTERNA CLAVE: */
    display: flex;
    flex-direction: column;
    
    /* CAMBIA ESTO: */
    justify-content: space-between; 
    align-items: center;       
    
    padding: 40px 25px;         
    box-sizing: border-box;
}

.Solucion p {
    text-align: center;   /* Centra las líneas de texto */
    margin-top: 0;        /* Elimina espacios extraños arriba */
    margin-bottom: 15px;  /* Separa el texto de la imagen */
    font-size: 20px; 
    font-weight: 700;/* Ajusta el tamaño si lo ves muy pequeño o grande */
    line-height: 1.4;     /* Da un poco de espacio entre líneas para que sea legible */
    width: 100%;          /* Asegura que ocupe todo el ancho disponible para centrarlo */
}

.S_Soluciones h4{
    font-size: 25px;
    text-align: center;
}

.S_Soluciones h2{
    margin: 0px;
    font-size: 40px;
    text-align: left;
}

.Solucion img{
    width: 150px;
}

.Solucion button {
    background-color: #b0892c; /* El tono dorado/marrón de tu diseño */
    color: white;              /* Texto blanco */
    border: none;              /* Quita el borde por defecto */
    padding: 10px 40px;        /* Espaciado interno (arriba/abajo - lados) */
    border-radius: 10px;       /* Bordes redondeados */
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;           /* Cambia el cursor al pasar el mouse */
    transition: background 0.3s ease; /* Suaviza el cambio de color */
    
    /* Para asegurar que esté centrado si el contenedor falla */
    margin-top: auto;          /* Empuja el botón hacia abajo si hay espacio */
    width: 80%;
    display: block;       /* Lo tratamos como bloque */
    margin: 15px auto 0;  /* Centrado horizontal con auto y espacio arriba */
    align-self: center;   /* Fuerza al contenedor flex a centrarlo */
    
    width: fit-content;                /* Ajusta el ancho del botón */
}

.Solucion button:hover {
    background-color: #8e6d23; /* Un tono un poco más oscuro */
}

.modal {
    display: flex;             /* Activamos flexbox */
    justify-content: center;    /* Centra horizontalmente */
    align-items: center;        /* Centra verticalmente */
    
    visibility: hidden;
    opacity: 0;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7); /* Un poco más oscuro para que resalte el medio */
    transition: all 0.4s ease;/* Fondo semitransparente */
}

/* La cajita blanca del centro */
.modal-contenido {
    background-color: white;
    padding: 40px;
    border-radius: 30px;
    
    /* CONTROL DE TAMAÑO: */
    width: 90%;            /* En celulares ocupará casi todo el ancho */
    max-width: 500px;      /* En PC no pasará de 500px (no será tan grande) */
    max-height: 80vh;      /* Si hay mucho texto, no se saldrá de la pantalla */
    overflow-y: auto;      /* Si el texto es muy largo, permite scroll interno */

    /* ANIMACIÓN: */
    transform: scale(0.7); /* Empieza pequeña para el efecto de "pop" */
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Efecto rebote suave */
    position: relative;
}
.modal.mostrar {
    visibility: visible;
    opacity: 1;
}

.modal.mostrar .modal-contenido {
    transform: translateY(0) scale(1); /* Vuelve a su posición y tamaño original */
}
/* Botón de cerrar (X) */
.cerrar-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
}
#modalTitulo {
    text-align: center;       /* Centra el texto */
    color: #112842;           /* Azul oscuro profesional */
    font-size: 1.5rem;        /* Tamaño destacado */
    font-weight: 700;         /* Negrita fuerte */
    margin-bottom: 25px;      /* Espacio con el contenido de abajo */
    padding-bottom: 10px;
    border-bottom: 2px solid #b0892c; /* Línea dorada decorativa centrada */
    display: block;           /* Asegura que ocupe el ancho para centrar */
    width: fit-content;       /* Ajusta el ancho al texto para la línea */
    margin-left: auto;        /* Margen auto a la izquierda... */
    margin-right: auto;       /* ...y a la derecha para centrar el bloque completo */
}
.modal-body-content {
    text-align: left;
    padding: 0 10px;
}

/* Estilo para las preguntas (Títulos internos) */
.modal-body-content h3 {
    color: #112842; /* Azul profesional */
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-weight: 700;
    display: flex;
    align-items: center;
}

/* Pequeño detalle antes de cada pregunta */
.modal-body-content h3::before {
    content: "";
    width: 4px;
    height: 18px;
    background-color: #b0892c; /* Dorado de tu marca */
    margin-right: 10px;
    border-radius: 2px;
}

/* Estilo para los párrafos explicativos */
.modal-body-content p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 25px;
    text-align: justify;
}

/* Resaltado de la empresa */
.modal-body-content strong {
    color: #112842;
    font-weight: 700;
}

/* Estilo para la frase motivacional final */
.frase-final {
    background-color: #f9f9f9;
    border-left: 4px solid #b0892c;
    padding: 15px;
    font-style: italic;
    color: #112842;
    font-weight: 600;
    margin-top: 20px;
    font-size: 1.5rem;
    border-radius: 0 10px 10px 0;
}

.S_planes{
    margin-top: 0px;
    background-color: #af7e35;
    
}

.S_planes h2{
    padding-top: 80px;
    margin: 0px;
    font-size: 40px;
    text-align: center;
}

.S_planes p{
    padding-top: 30px;
    text-align: left;
    margin: 0px;
    font-size: 20px;
}

.S_planes p strong{
    font-size: 50px;
}
.Planes {
    display: flex;
    justify-content: center;
    gap: 25px;
    padding: 50px 5%;
    /* Fondo gris claro para que resalten las tarjetas */
}

.Plan {
    
    
    width: 320px;
    padding: 40px 30px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: all 0.4s ease; /* Hace que el cambio de color sea suave */
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.Plan:hover {
    background-color: #112842; /* El azul oscuro de tu marca */
    transform: translateY(-10px); /* Sube un poquito */
}

.Plan:hover h5, 
.Plan:hover p {
    color: white !important;
}

.Plan h5 {
    font-size: 1.5rem;
    color: #333;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.Plan p {
    font-size: 1rem;
    color: #666;
    margin: 8px 0;
    width: 100%;
}

.S_planes {
    background-color: #af7e35; /* Fondo claro para que resalten las tarjetas */
    padding: 80px 5%;
}

.S_planes h2 {
    text-align: center;
    color: #112842;
    font-size: 38px;
    font-weight: 800;
    margin: 0 0 50px 0;
}

.Planes_Cards {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    align-items: stretch; /* Iguala la altura de las tarjetas */
}

/* LA TARJETA BASE */
.Plan_Card {
    background-color: white;
    width: 380px; /* <-- AUMENTAMOS de 330px a 380px (puedes poner 400px si la quieres aún más grande) */
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid #eaeaea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.Plan_Card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

/* TARJETA RECOMENDADA (Del medio) */
.Plan_Card.recomendado {
    border: 2px solid #112842;
    transform: scale(1.03); /* Un poquito más grande para resaltar */
    box-shadow: 0 10px 30px rgba(175, 126, 53, 0.15);
    z-index: 10;
}

.Plan_Card.recomendado:hover {
    transform: scale(1.03) translateY(-5px);
}

.badge_recomendado {
    position: absolute;
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #112842;
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* CABECERA (Icono y Título) */
.Plan_Header {
    display: flex;
    align-items: center;
    padding: 30px 20px 15px;
    gap: 15px;
}

.Plan_Icon_Circle {
    width: 65px;
    height: 65px;
    background-color: #112842;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 28px;
    flex-shrink: 0;
}

.Plan_Title_Area h3 {
    color: #112842;
    font-size: 20px;
    font-weight: 800;
    margin: 0 0 5px 0;
    text-align: left;
}

.Plan_Title_Area p {
    color: #666;
    font-size: 13px;
    margin: 0;
    line-height: 1.3;
    text-align: left;
}

/* SEPARADOR (Línea dorada fina) */
.Plan_Divider {
    border: none;
    border-top: 1px solid #e0ceb1;
    width: 70%;
    margin: 0 auto 20px; /* Centrado */
}

/* LISTA DE BENEFICIOS */
.Plan_List {
    list-style: none;
    padding: 0 25px;
    margin: 0 0 20px 0;
    flex-grow: 1; /* Empuja el footer hacia abajo */
}
.Plan_Icon_Circle img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la imagen llene el espacio sin deformarse */
    border-radius: 50%; /* Hace que la imagen en sí sea un círculo perfecto */
}

.Plan_Footer_Text img {
    width: 38px;          /* Tamaño de la imagen (puedes subirlo a 45px si la quieres más grande) */
    height: 38px;         /* Debe ser igual al width para que sea un círculo perfecto */
    object-fit: cover;    /* Asegura que la imagen llene el círculo sin estirarse */
    border-radius: 50%;   /* Hace el corte circular */
    flex-shrink: 0;       /* Evita que el texto de al lado aplaste la imagen */
}

.Plan_List li {
    display: flex;
    align-items: flex-start;
    font-size: 14px;
    color: #444;
    margin-bottom: 15px;
    line-height: 1.4;
    text-align: left;
}

.Plan_List i {
    color: #112842; /* Check azul oscuro */
    margin-right: 10px;
    margin-top: 0px;
    font-size: 16px;
}

/* FOOTER (Caja de abajo con botón) */
.Plan_Footer {
    background-color: #f7f9fa; /* Gris super claro */
    padding: 25px;
    border-radius: 0 0 15px 15px;
}

.Plan_Footer.footer_light_gold {
    background-color: #fdfbf5; /* Tono crema/dorado muy suave */
}

.Plan_Footer_Text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
    text-align: left;
}

.Plan_Footer_Text .gold_icon {
    color: #af7e35;
    font-size: 28px;
}

.Plan_Footer_Text span {
    font-size: 13px;
    color: #112842;
    font-weight: 700;
    line-height: 1.3;
    max-width: 200px;
}

/* BOTONES DENTRO DE LOS PLANES */
.Plan_Footer button {
    width: 100%;
    padding: 14px;
    border-radius: 8px;
    font-size: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    margin: 0; /* Reset del margen de tus botones globales */
}

.btn_blue {
    background-color: #07192d; /* Azul corporativo oscuro */
    color: white;
}

.btn_blue:hover {
    background-color: #112842;
}

.btn_gold {
    background-color: #af7e35; /* Dorado */
    color: white;
}

.btn_gold:hover {
    background-color: #8e6d23;
}


.btn-whatsapp {
    position: fixed;
    bottom: 50px;
    right: 10px;
    width: 100px;
    height: 100px;
    background-color: #04BD0A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    transition: all 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.15);
    background-color: #04BD0A;
}

.btn-whatsapp img {
    width:  100px;
    height: 100px;
    border-radius: 50%;
}

@media (max-width: 768px) {
    .btn-whatsapp {
        width: 60px;   /* Tamaño más razonable para móvil */
        height: 60px;
        right: 15px;   /* Un poco más ajustado al borde */
        bottom: 20px;
    }
    .btn-whatsapp img {
        width: 30px;
        height: 30px;
    }
}

/*footer*/
:root {
    --footer-bg: #051a32;
    --footer-accent: #6f00ff;
    --footer-text: #94a3b8;
    --footer-title: #ffffff;
}

.final-footer {
    background-color: var(--footer-bg);
    color: var(--footer-text);
    width: 100%;
    padding: 60px 0 20px 0;
    margin-top: auto;
    font-family: 'Inter', sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0 20px;
    flex-wrap: wrap;
}

.footer-seccion, 
.footer-col-explorar, 
.footer-col-contacto {
    flex: 1;
    min-width: 280px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}



.final-footer h4 {
    color: var(--footer-title);
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: auto;
}

.footer-seccion p {
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 25px;
    max-width: 320px;
}

.footer-titulo-mimarca {
    font-size: 28px;
    font-weight: 800;
    color: var(--footer-title);
    margin-bottom: 15px;
    margin-top: 0px;
}

.footer-titulo-mimarca span {
    color: #af7e35;
}

.footer-sociales {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.footer-sociales .social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: 0.3s ease;
}

.footer-sociales .social-icon:hover {
    background: #af7e35;
    transform: translateY(-5px);
}

.footer-col-explorar ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.footer-col-explorar li {
    margin-bottom: 12px;
}

.footer-col-explorar a {
    color: var(--footer-text);
    text-decoration: none;
    transition: 0.3s;
    font-weight: 600;
}

.footer-col-explorar a:hover {
    color: #af7e35;

    padding-left: 8px;
}

.footer-col-contacto p {
    
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-col-contacto i {
    
    color: var(--footer-accent);
    margin-right: 15px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

.footer-copyright p {
    text-align: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--footer-text);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .enlaces_principales {
        margin-left: 0;
        justify-content: flex-end;
        width: 100%;
    }
    .enlaces_principales a {
        margin-right: 25px;
        font-size: 20px;
    }
    .caja_texto_panel {
        width: 60%;
    }
}

/* Ajustes principales para Celulares */
@media (max-width: 768px) {
    
    /* 1. Cabezal y Menú */
    .cabezal {
        flex-direction: column; 
        padding: 10px;
    }
    .logo {
        margin-left: 0;
        height: 60px;
        width: auto;
    }
    .enlaces_principales {
        margin-left: 0;
        font-size: 14px;
        width: 100%;
        justify-content: center;
        flex-wrap: wrap; 
        gap: 15px;
        margin-top: 10px;
    }
    .enlaces_principales a {
        margin-right: 0;
    }

    /* 2. Panel Principal (Inicio) */
    .panel {
        margin-top: 110px;
        /* Degradado de arriba hacia abajo para garantizar que el texto se lea siempre */
        background: linear-gradient(to bottom, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.6) 100%), url("img_panel/imgpanel2.jpg");
        background-size: cover;
        background-position: right center; 
        height: auto;
        padding: 40px 20px;
    }
    .caja_texto_panel {
        width: 100%;
        margin-left: 0;
        text-align: center; /* En celular el texto centrado da mejor simetría */
    }
    .caja_texto_panel h2 {
        font-size: 24px; 
        line-height: 1.4;
        margin-top: 0;
    }
    .caja_texto_panel h3 {
        font-size: 16px;
        line-height: 1.5;
        margin-top: 15px;
    }
    /* Centrar botón del panel */
    button {
        margin-left: auto;
        margin-right: auto;
        display: block;
        width: 100%;
        max-width: 300px;
    }

    /* 3. Secciones Generales (Achicando los títulos gigantes) */
    .S_Nosotros, .S_Servicios, .S_Soluciones, .S_planes {
        padding: 50px 20px;
    }
    .label_Nosotros, .titulo_servicios, .S_Soluciones h2, .S_planes h2 {
        font-size: 30px;
        text-align: center;
    }
    .S_Soluciones h4, h3.label_NuestrosValores {
        text-align: center;
        font-size: 22px;
    }
    .S_Nosotros p, .desc_servicios {
        font-size: 16px;
        text-align: center;
    }

    /* 4. ARREGLO DE NOSOTROS (LOS CÍRCULOS SE VUELVEN TARJETAS) */
    .NuestrosValores {
        flex-direction: column;
        align-items: center;    
        gap: 20px;              
    }
    .Valor {
        width: 100% !important;   
        max-width: 320px !important;
        height: auto !important; 
        border-radius: 30px !important; 
        padding: 30px 20px !important;
        margin: 0 !important;
    }
    .Valor img {
        width: 60px;
        height: 60px;
        margin-bottom: 10px;
    }

    /* 5. Tarjetas (Servicios, Soluciones, Planes) */
    .Soluciones, .Panel_Servicios_Cards, .Planes_Cards {
        padding: 20px 0;
    }
    .Servicio_Card, .Solucion, .Plan_Card {
        width: 100%; 
        max-width: 350px; 
        margin: 0 auto; 
    }
    .Plan_Card.recomendado {
        transform: scale(1); 
    }
    .Plan_Card.recomendado:hover {
        transform: translateY(-5px);
    }

    /* 6. Modales */
    .modal-contenido {
        padding: 25px 20px;
        width: 95%;
        max-height: 85vh;
    }
    #modalTitulo {
        font-size: 1.2rem;
    }
    .cerrar-modal {
        top: 10px;
        right: 15px;
    }
}

/* Ajustes extra para celulares muy angostos */
@media (max-width: 400px) {
    .enlaces_principales {
        font-size: 13px;
        gap: 10px;
    }
    .caja_texto_panel h2 {
        font-size: 20px;
    }
    .titulo_servicios, .S_planes h2, .label_Nosotros {
        font-size: 24px;
    }
}