/* ==========================================================================
   VARIABLES Y CONFIGURACIÓN GLOBAL
   ========================================================================== */
:root {
    /* Colores principales */
    --primary-color: black;
    --secondary-color: #4a4a4a;
    --accent-color: #0056b3;
    --accent-light: #4d94ff;
    --light-color: #f8f9fa;
    --border-color: #e0e0e0;
    --text-light: #6c757d;
    --white: #ffffff;
    
    /* Sombras */
    --shadow-soft: 0 8px 25px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 15px 35px rgba(0, 0, 0, 0.15);
    
    /* Colores de estado */
    --success-color: #28a745;
    
    /* Tipografía */
    --font-primary: 'Inter', 'Segoe UI', sans-serif;
    
    /* Espaciados */
    --section-padding: 8rem 0;
}

/* ==========================================================================
   RESET Y CONFIGURACIÓN BASE
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    font-family: var(--font-primary);
    scroll-behavior: smooth;
}

body {
    color: var(--primary-color);
    background-color: var(--white);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
    min-height: 100vh;
}

/* ==========================================================================
   NAVBAR (IDÉNTICO AL DE ACERCA DE)
   ========================================================================== */

/* =========================================================
   NAVBAR SCROLL HIDE/SHOW
========================================================= */
.navbar {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1250px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0,0,0,.12);
  z-index: 1000;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
              opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 1;
  pointer-events: all;
}

.navbar.hidden {
  transform: translate(-50%, -120%);
  opacity: 0;
  pointer-events: none;
}

.page-content {
  padding-top: 80px;
}

.navbar-inner {
  display: flex;
  align-items: center;
  padding: 14px 26px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-img {
  height: 36px;
  width: auto;
  border-radius: 8px;
}

.logo-text {
  font-weight: 700;
  font-size: 1.5rem;
  text-transform: uppercase;
  color: var(--primary-color);
  white-space: nowrap;
}

/* =========================================================
   DESKTOP MENU
========================================================= */
.menu-desktop {
    display: flex;
    align-items: center;
    gap: 22px;
    list-style: none;
    flex: 1;
}

.menu-desktop a {
    text-decoration: none;
    font-size: .95rem;
    font-weight: 600;
    color: var(--primary-color);
    transition: color .2s ease;
}

.menu-desktop a:hover {
    color: var(--accent-light);
}

.menu-desktop .active {
    color: var(--accent-light);
    position: relative;
}

.menu-desktop .active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--accent-light);
}

/* =========================================================
   DESKTOP DROPDOWN (EDUCACIÓN CONTINUA)
========================================================= */
.desktop-dropdown {
  position: relative;
}

.desktop-dropdown > a::after {
  content: "▾";
  font-size: .1rem;
  margin-left: 6px;
  opacity: .6;
}

.desktop-dropdown .dropdown {
  position: absolute;
  top: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border-radius: 12px;
  box-shadow: 0 20px 45px rgba(0,0,0,.12);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all .25s ease;
  overflow: hidden;
}

.desktop-dropdown:hover .dropdown {
  opacity: 1;
  visibility: visible;
}

.dropdown a {
  display: block;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
  transition: background .2s ease;
}

.dropdown a:hover {
  background: #f1f5f9;
}

/* =========================================================
   DESKTOP ACTIONS
========================================================= */
/* =========================================================
   DESKTOP ACTIONS
========================================================= */
.btn-outline {
  padding: 8px 18px;
  background: #ffffff;
  border: 1.5px solid #000;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: .95rem;
  color: #000;
  transition:
    background 0.25s ease,
    box-shadow 0.25s ease,
    transform 0.15s ease;
}

/* Hover / Tap / Focus */
.btn-outline:hover,
.btn-outline:focus-visible,
.btn-outline:active {
  background: #9ecae3;
  color: #000;
  border-color: #000;

  /* Contorno elegante */
  box-shadow:
    0 0 0 3px rgba(0, 0, 0, 0.15),
    0 8px 20px rgb(0, 0, 0);

  transform: translateY(-1px);
}

.btn-outline:focus {
  outline: none;
}
.btn-primary {
  padding: 8px 18px;
  background: #9ecae3;
  border: 1.5px solid #000;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: #000;
  transition:
    box-shadow 0.25s ease,
    transform 0.15s ease,
    filter 0.2s ease;
}

/* Hover / Tap / Focus */
.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:active {
  background: white;
  filter: brightness(0.95);

  /* Contorno más sutil que el outline */
  box-shadow:
    0 0 0 2px rgba(0, 0, 0, 0.2),
    0 6px 18px rgb(0, 0, 0);

  transform: translateY(-1px);
}

.btn-primary:focus {
  outline: none;
}

/* =========================================================
   MOBILE MENU BUTTON
========================================================= */
.menu-btn {
  display: none;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.menu-btn:hover {
  background-color: #f1f5f9;
}

/* =========================================================
   MOBILE MENU
========================================================= */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--white);
  transform: translateX(100%);
  transition: transform .4s ease;
  z-index: 1100;
  display: flex;
  flex-direction: column;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border-color);
}

.close-btn {
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.close-btn:hover {
  background-color: #f1f5f9;
}

.mobile-links {
  list-style: none;
  padding: 24px;
  flex: 1;
}

.mobile-links li {
  border-bottom: 1px solid var(--border-color);
}

.mobile-links li:last-child {
  border-bottom: none;
}

.mobile-links a,
.accordion-btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-color);
  background: var(--white);
  border: none;
  cursor: pointer;
}

.mobile-links a:hover,
.accordion-btn:hover {
  color: var(--accent-light);
}

.accordion {
  position: relative;
}

.accordion-content {
  display: none;
  padding-left: 12px;
}

.accordion-content a {
  display: block;
  padding: 14px 0;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--primary-color);
}

.accordion.active .accordion-content {
  display: block;
}

.plus {
  font-size: 1.4rem;
  transition: transform .3s ease;
}

.accordion.active .plus {
  transform: rotate(45deg);
}

.mobile-actions {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-top: 1px solid var(--border-color);
}

.mobile-actions .btn-primary.active {
  background: var(--accent-light);
  color: var(--white);
  border-color: var(--accent-light);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  z-index: 1050;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   HERO LOGIN
   ========================================================================== */
.login-hero {
    position: relative;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
}

.login-hero .hero-background {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
}

.login-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.9);
}

.login-hero .hero-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.hero-content {
    width: 100%;
}

/* Tarjeta de Login */
.login-card {
    background: var(--white);
    border-radius: 16px;
    padding: 4rem 3rem;
    box-shadow: var(--shadow-soft);
    width: 100%;
    text-align: center;
    border: 1px solid var(--border-color);
}

.login-icon {
    font-size: 6rem;
    color: #9ecae3;
    margin-bottom: 2rem;
}

.login-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.login-subtitle {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 3rem;
}

/* Mensaje */
.login-message {
    text-align: left;
    margin-bottom: 4rem;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.login-message p {
    font-size: 1.5rem;
    color: var(--primary-color);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.important-notice {
    padding: 1.5rem;
    background: #fef3c7;
    border-radius: 8px;
    border-left: 4px solid #f59e0b;
    margin-top: 2rem;
}

.important-notice p {
    font-size: 1.4rem;
    color: var(--primary-color);
    margin: 0;
}

/* Botones */
.login-actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.btn-redirect {
    padding: 1.5rem 3rem;
    background: #9ecae3;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    font-size: 1.5rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-redirect:hover {
    background: var(--white);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.btn-redirect:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-cancel {
    padding: 1.2rem 3rem;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 999px;
    font-size: 1.4rem;
    font-weight: 800;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.btn-cancel:hover {
    background: #9ecae3;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Footer del Login */
.login-footer {
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.login-footer p {
    font-size: 1.4rem;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.login-footer i {
    color: #9ecae3;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
    background-color: #0046a5;
    color: var(--white);
    padding: 8rem 0 4rem;
    position: relative;
}

.container {
    max-width: 120rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.footer-logo span {
    font-size: 2.4rem;
    font-weight: 800;
}

.footer-section p {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 35rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    height: 4.5rem;
    background-color: black;
    border-radius: 50%;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.8rem;
}

.social-links a:hover {
    background-color: var(--white);
    color: black;
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.7rem;
    font-weight: 700;
    margin-bottom: 2.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--white);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 1.5rem;
}

.footer-section ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover {
    color: #9ecae3;
    transform: translateX(5px);
}

.footer-section ul li a.active {
    color: #9ecae3;
    font-weight: 700;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 3rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.8);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

/* TABLET (≤1024px) */
@media (max-width: 1024px) {
    /* Oculta desktop */
    .menu-desktop,
    .actions-desktop {
        display: none;
    }
    
    .menu-btn {
        display: block;
    }
    
    .navbar {
        width: calc(100% - 32px);
        top: 12px;
    }
    
    .navbar-inner {
        padding: 12px 18px;
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
}

/* MÓVIL (≤768px) */
@media (max-width: 768px) {
    html {
        font-size: 55%;
    }
    
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-img {
        height: 32px;
    }
    
    .login-hero {
        padding: 2rem 1.5rem;
    }
    
    .login-card {
        padding: 3rem 2rem;
    }
    
    .login-title {
        font-size: 2.4rem;
    }
    
    .login-subtitle {
        font-size: 1.4rem;
    }
    
    .btn-redirect {
        font-size: 1.3rem;
        padding: 1.3rem 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* MÓVIL PEQUEÑO (≤480px) */
@media (max-width: 480px) {
    .logo-text {
        font-size: 1.05rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .navbar {
        top: 10px;
        width: calc(100% - 20px);
    }
    
    .login-title {
        font-size: 2rem;
    }
    
    .login-message {
        padding: 1.5rem;
    }
    
    .login-message p {
        font-size: 1.3rem;
    }
}