/* --- Estilos generales --- */
body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
}

/* --- Barra de navegación superior --- */
header {
    background-color: #1b2853; 
    color: white;
    padding: 15px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.logo {
    text-decoration: none;
}

.logo img {
    height: 60px;
    width: auto;
    display: block;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 30px;
    align-items: center;
}

nav a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
    font-weight: 600;
}

nav a:hover {
    color: #e3125d;
}

.btn-ingreso {
    background-color: #e3125d;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    border: 2px solid #e3125d;
    transition: all 0.3s;
}

.btn-ingreso:hover {
    background-color: transparent;
    color: #e3125d;
    border: 2px solid #e3125d;
}

/* --- Sección Hero (Pórtico) --- */
.hero {
    text-align: center;
    min-height: 75vh;
    padding: 60px 20px; 
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #1b2853; 
    background-image: url('../img/portico-1.png'); 
    background-size: cover;
    background-position: center;
    color: white;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(27, 40, 83, 0.7);
}

.hero-contenido {
    position: relative;
    z-index: 1;
}

/* --- Sección: El Mejor Aliado --- */
.seccion-aliado {
    padding: 80px 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    background-color: white;
    flex-wrap: wrap;
}

.titulo-aliado h2 {
    font-weight: 400;
    font-size: 30px;
    color: #1b2853;
    margin: 0;
}

.titulo-aliado h1 {
    font-weight: 900;
    font-size: 55px;
    color: #e3125d;
    margin: 0;
    line-height: 1;
}

.titulo-aliado h1 span {
    color: #1b2853;
}

.grid-estadisticas {
    display: flex;
    gap: 20px;
}

.caja-stat {
    border-radius: 15px;
    padding: 30px;
    color: white;
    width: 200px;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.caja-stat.azul {
    background-color: #1b2853;
}

.caja-stat.fucsia {
    background-color: #e3125d;
}

.caja-stat h2, .caja-stat h3 {
    font-size: 50px;
    font-weight: 900;
    margin: 0 0 10px 0;
}

.caja-stat h3 {
    font-size: 28px;
}

.caja-stat p {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

/* --- Sección: Formulario de Contacto --- */
.seccion-contacto {
    background-color: #0f1633; 
    padding: 80px 50px 0 50px;
    display: flex;
    justify-content: center;
    overflow: hidden; 
}

.contacto-contenedor {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    max-width: 1200px; 
    width: 100%;
    flex-wrap: wrap; 
}

.contacto-izquierda {
    flex: 1;
    min-width: 350px;
    display: flex;
    flex-direction: column;
    gap: 30px; 
    padding-bottom: 80px; 
}

.contacto-texto h2 {
    color: white;
    font-size: 40px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.contacto-texto h2 span {
    color: #e3125d;
    font-size: 55px;
    font-weight: 900;
}

.contacto-formulario {
    background-color: white;
    padding: 40px;
    border-radius: 20px;
    width: 100%;
    box-sizing: border-box;
}

.contacto-formulario h3 {
    color: #1b2853;
    font-size: 24px;
    font-weight: 800;
    margin-top: 0;
    margin-bottom: 5px;
}

.contacto-formulario p {
    color: #666;
    margin-bottom: 25px;
    font-size: 14px;
}

.form-fila {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-fila input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    box-sizing: border-box;
}

.btn-fucsia {
    width: 100%;
    padding: 15px;
    background-color: #e3125d;
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.3s;
    margin-top: 10px;
}

.btn-fucsia:hover {
    background-color: #1b2853;
}

.contacto-derecha {
    flex: 1;
    min-width: 300px;
    display: flex;
    justify-content: center;
    align-items: flex-end; 
    height: 100%;
}

.contacto-derecha img {
    max-width: 100%;
    height: auto;
    max-height: 650px; 
    display: block;
}

/* --- Footer --- */
.footer {
    background-color: #e3125d; 
    color: white;
    font-family: 'Montserrat', sans-serif;
}

.footer-top {
    display: flex;
    justify-content: center; 
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 60px 20px;
    gap: 80px; 
    max-width: 1200px;
    margin: 0 auto; 
}

.footer-col {
    min-width: 220px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-logo {
    max-width: 220px; 
    height: auto;     
    object-fit: contain;
    margin-bottom: 15px;
}

.footer-col h3 {
    color: white;
    font-size: 18px;
    font-weight: 800;
    margin: 0 0 10px 0;
}

.footer-col p {
    margin: 0;
    font-size: 14px;
    color: white;
    line-height: 1.6;
    font-weight: 500;
}

.footer-col a {
    color: white;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #1b2853; 
}

.redes-iconos {
    display: flex;
    gap: 15px;
}

.redes-iconos a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: white; 
    color: #e3125d; 
    border-radius: 8px; 
    text-decoration: none;
    font-size: 20px;
    transition: 0.3s;
}

.redes-iconos a:hover {
    background-color: #1b2853; 
    color: white;
}

.footer-bottom {
    background-color: #0f1633; 
    padding: 20px 50px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-bottom p {
    margin: 0;
    font-size: 14px;
    font-weight: 500;
}

.footer-bottom a {
    color: white;
    text-decoration: underline;
    font-size: 14px;
    font-weight: 500;
}

.footer-bottom a:hover {
    color: #e3125d;
}

/* =========================================
   PÁGINAS LEGALES (Condiciones, Privacidad) 
   ========================================= */
.banner-legal {
    background-color: #0f1633; 
    color: rgb(254, 254, 254);
    text-align: center;
    padding: 120px 20px;
}

.banner-legal h1 {
    font-size: 45px;
    font-weight: 400; 
    margin: 0;
}

.contenido-legal {
    max-width: 900px; 
    margin: 60px auto; 
    padding: 0 30px;
    color: #222;
    line-height: 1.8; 
}

.contenido-legal h3 {
    color: #0f1633;
    font-size: 22px;
    font-weight: 900;
    margin-top: 40px;
    margin-bottom: 15px;
}

.contenido-legal p, .contenido-legal ul {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 20px;
    color: #333;
}

.contenido-legal ul {
    padding-left: 20px;
}

.contenido-legal li {
    margin-bottom: 10px;
}