* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Poppins', Arial, Helvetica, sans-serif; background-color: #eef1f6; color: #1a1a1a; }

.header { width: 100%; min-height: 90px; padding: 15px 60px; background: linear-gradient(120deg, #0b3e8f, #0a3373); display: flex; align-items: center; justify-content: space-between; box-shadow: 0 4px 18px rgba(11, 62, 143, 0.25); position: sticky; top: 0; z-index: 50; }
.logo { display: flex; align-items: center; gap: 15px; }
.logo-icon { width: 55px; height: 55px; flex-shrink: 0; border-radius: 12px; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2); }
.logo-icon img { width: 100%; height: 100%; display: block; }
.texto-logo h2 { color: white; font-size: 34px; font-weight: 800; margin: 0; letter-spacing: 0.3px; }
.texto-logo p { color: #dce6fa; font-size: 14px; font-weight: 400; margin: 2px 0 0; }

nav { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
nav a { position: relative; color: white; text-decoration: none; font-size: 15px; font-weight: 600; padding: 6px 2px; transition: 0.25s; }
nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0%; height: 2px; background-color: white; transition: width 0.25s ease; }
nav a:hover::after { width: 100%; }
nav a.nav-login { border: 1.5px solid rgba(255,255,255,0.6); padding: 9px 18px; border-radius: 8px; }
nav a.nav-login::after { display: none; }
nav a.nav-login:hover { background-color: rgba(255,255,255,0.12); border-color: white; }
nav a.nav-cta { background-color: white; color: #0b3e8f; padding: 10px 20px; border-radius: 8px; }
nav a.nav-cta::after { display: none; }
nav a.nav-cta:hover { background-color: #dce6fa; }

.hero { min-height: calc(100vh - 90px); padding: 90px 20px; display: flex; align-items: center; justify-content: center; text-align: center; background: radial-gradient(circle at 20% 20%, rgba(11,62,143,0.06), transparent 40%), radial-gradient(circle at 80% 80%, rgba(11,62,143,0.06), transparent 40%); }
.hero-text { width: 100%; max-width: 750px; }
.hero-etiqueta { display: inline-block; padding: 6px 16px; margin-bottom: 18px; background-color: #e5efff; color: #0b3e8f; font-size: 13px; font-weight: 700; border-radius: 20px; letter-spacing: 0.5px; text-transform: uppercase; }
.hero-text h1 { color: #0b3e8f; font-size: 50px; font-weight: 800; line-height: 1.2; margin-bottom: 22px; }
.hero-text p { color: #444444; font-size: 18px; line-height: 1.7; margin-bottom: 12px; }

.botones { margin-top: 35px; display: flex; justify-content: center; align-items: center; gap: 16px; }
.btn { display: inline-block; padding: 15px 28px; background-color: #0b3e8f; color: white; border: 2px solid #0b3e8f; border-radius: 9px; text-decoration: none; font-size: 16px; font-weight: 700; box-shadow: 0 6px 16px rgba(11, 62, 143, 0.25); transition: 0.25s ease; }
.btn:hover { background-color: #082d68; border-color: #082d68; transform: translateY(-3px); box-shadow: 0 10px 22px rgba(11, 62, 143, 0.3); }
.btn-secundario { background-color: white; color: #0b3e8f; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08); }
.btn-secundario:hover { background-color: #0b3e8f; color: white; }

.quienes-somos { padding: 80px 8%; text-align: center; background-color: #eef1f6; }
.quienes-somos .hero-etiqueta { margin-bottom: 18px; }
.quienes-somos h2 { color: #0b3e8f; font-size: 36px; font-weight: 800; margin-bottom: 22px; }
.quienes-somos p { max-width: 800px; margin: 0 auto 14px; color: #444; font-size: 17px; line-height: 1.8; }

.mision-vision { width: 100%; padding: 80px 8%; display: flex; justify-content: center; align-items: stretch; gap: 30px; background-color: #ffffff; }
.tarjeta { width: 45%; max-width: 550px; padding: 40px 35px; background-color: #f8faff; border: 1px solid #e8edf7; border-radius: 16px; text-align: center; box-shadow: 0 5px 20px rgba(0, 0, 0, 0.06); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.tarjeta:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(11, 62, 143, 0.12); }
.tarjeta-icono { width: 60px; height: 60px; margin: 0 auto 18px; background-color: #e5efff; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 26px; }
.tarjeta h2 { margin-bottom: 18px; color: #0b3e8f; font-size: 26px; font-weight: 700; }
.tarjeta p { margin-bottom: 12px; color: #444444; font-size: 16px; line-height: 1.7; }

.funciones { padding: 80px 8%; background-color: #ffffff; }
.funciones-titulo { text-align: center; margin-bottom: 50px; }
.funciones-titulo h2 { color: #0b3e8f; font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.funciones-titulo p { color: #666; font-size: 17px; }
.funciones-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.funcion-card { padding: 32px 26px; background-color: #f8faff; border: 1px solid #e8edf7; border-radius: 16px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.funcion-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(11, 62, 143, 0.12); }
.funcion-icono { width: 56px; height: 56px; margin: 0 auto 16px; background: linear-gradient(120deg, #0b3e8f, #1a56d6); border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.funcion-card h3 { color: #0b3e8f; font-size: 19px; margin-bottom: 10px; }
.funcion-card p { color: #555; font-size: 15px; line-height: 1.6; }

.fondo-login { min-height: 100vh; background: radial-gradient(circle at 20% 20%, rgba(11,62,143,0.06), transparent 40%), radial-gradient(circle at 80% 80%, rgba(11,62,143,0.06), transparent 40%), #eef1f6; }
.login-container { min-height: 100vh; padding: 30px; display: flex; align-items: center; justify-content: center; }
.login-box { width: 100%; max-width: 430px; padding: 45px 40px; background-color: white; border-radius: 18px; box-shadow: 0 10px 35px rgba(11, 62, 143, 0.12); }
.registro-box { max-width: 500px; }

.logo-login { margin-bottom: 30px; text-align: center; }
.logo-login .logo-icon { width: 64px; height: 64px; margin: 0 auto 12px; box-shadow: 0 5px 16px rgba(11, 62, 143, 0.18); }
.logo-login h1 { margin-bottom: 5px; color: #0b3e8f; font-weight: 800; }
.logo-login p { color: #666666; }

.mensaje-exito { display: none; background-color: #e5f7ec; color: #18804b; padding: 13px 16px; margin-bottom: 20px; border-radius: 9px; border: 1px solid #bfe8d0; text-align: center; font-weight: 600; font-size: 14px; }

.login-box form { display: flex; flex-direction: column; }
.login-box label { margin-bottom: 7px; color: #222222; font-weight: 600; font-size: 14px; }
.login-box input, .login-box select { width: 100%; padding: 13px 14px; margin-bottom: 18px; border: 1.5px solid #dde3ee; border-radius: 9px; background-color: #fbfcfe; font-family: 'Poppins', Arial, sans-serif; font-size: 15px; transition: 0.2s; }
.login-box input:focus, .login-box select:focus { outline: none; border-color: #0b3e8f; background-color: white; box-shadow: 0 0 0 3px rgba(11, 62, 143, 0.12); }

.btn-login { width: 100%; padding: 15px; border: none; border-radius: 9px; background-color: #0b3e8f; color: white; font-size: 16px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 16px rgba(11, 62, 143, 0.25); transition: 0.25s; }
.btn-login:hover { background-color: #082d68; transform: translateY(-2px); }

.registro-texto { margin-top: 22px; text-align: center; color: #555; font-size: 14px; }
.registro-texto a { color: #0b3e8f; font-weight: 700; text-decoration: none; }
.registro-texto a:hover { text-decoration: underline; }
.volver { display: block; margin-top: 16px; color: #0b3e8f; text-align: center; font-size: 14px; text-decoration: none; }
.volver:hover { text-decoration: underline; }

.dashboard { padding: 50px; }
.dashboard h1 { margin-bottom: 10px; color: #0b3e8f; }
.dashboard > p { margin-bottom: 30px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 25px; }
.card { padding: 30px; background-color: white; border-radius: 14px; box-shadow: 0 3px 15px rgba(0, 0, 0, 0.08); transition: 0.25s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(11, 62, 143, 0.12); }
.card h2 { margin-bottom: 10px; color: #0b3e8f; }
.card p { color: #555555; }

footer { width: 100%; padding: 22px; background: linear-gradient(120deg, #0b3e8f, #0a3373); color: white; text-align: center; font-size: 14px; }
footer p { margin: 0; opacity: 0.9; }

@media (max-width: 900px) { .funciones-grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 700px) {
    .header { padding: 20px; flex-direction: column; gap: 20px; }
    .logo { flex-direction: column; text-align: center; }
    .texto-logo h2 { font-size: 28px; }
    .texto-logo p { font-size: 13px; }
    nav { justify-content: center; gap: 12px; }
    .hero { min-height: auto; padding: 60px 20px; }
    .hero-text h1 { font-size: 32px; }
    .hero-text p { font-size: 16px; }
    .botones { flex-direction: column; }
    .btn { width: 220px; text-align: center; }
    .quienes-somos, .funciones { padding: 55px 20px; }
    .quienes-somos h2, .funciones-titulo h2 { font-size: 28px; }
    .funciones-grid { grid-template-columns: 1fr; }
    .mision-vision { padding: 50px 20px; flex-direction: column; align-items: center; }
    .tarjeta { width: 100%; padding: 30px 20px; }
    .tarjeta h2 { font-size: 24px; }
    .tarjeta p { font-size: 15px; }
    .login-container { padding: 20px; }
    .login-box { padding: 32px 24px; }
    .dashboard { padding: 25px; }
}
