/* ======================================================
   FUENTES LOCALES
   ====================================================== */

/* Roboto Regular */
@font-face {
  font-family: 'RobotoCustom';
  src: url('/static/fonts/Roboto-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Crillee Italic BT (branding ALAS) */
@font-face {
  font-family: 'CrilleeBT';
  src: url('/static/fonts/CrilleeItalicBT.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* ======================================================
   VARIABLES
   ====================================================== */
:root {
  --color-azul: #00285A;
  --color-azul-claro: #0033A0;
  --color-blanco: #ffffff;
  --color-gris: #f5f6fa;
  --color-texto: #333333;

  --header-height: 96px;   /* altura corporativa */
  --footer-height: 140px;
}

/* ======================================================
   RESET
   ====================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  display: flex !important;
  flex-direction: column !important;
  overflow-x: hidden;
}

body {
  font-family: 'RobotoCustom', sans-serif;
  color: var(--color-texto);
  background: var(--color-blanco);
  min-height: 100vh !important;
  width: 100%;
  padding-bottom: 0;
}

main.site-content {
  flex: 1 0 auto;
  width: 100%;
}

/* ======================================================
   TIPOGRAFÍA DE TÍTULOS TIPO ALAS
   ====================================================== */

h1, h2, h3,
.title, .page-title, .section-title {
  font-family: 'CrilleeBT', sans-serif;
  font-style: italic;
  letter-spacing: 0.5px;
  color: var(--color-azul);
}

/* ======================================================
   LINKS / BUTTONS
   ====================================================== */

a {
  color: var(--color-azul-claro);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ======================================================
   HEADER PREMIUM ALAS
   ====================================================== */

.site-header {
  background: var(--color-azul);
  height: var(--header-height);

  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;

  /* sombra corporativa */
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.header-container {
  max-width: 1400px;
  width: 100%;

  margin: 0 auto;
  padding: 0 26px;
  position: relative;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* LOGO */
.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;

  font-size: 28px;
  font-family: 'CrilleeBT', sans-serif;
  letter-spacing: 0.3px;
}

.header-logo img {
  width: 50px;
  height: 50px;
}

/* AVATAR */
.user-avatar {
  height: 56px;
  width: 56px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.85);
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.28), rgba(255,255,255,.06));
  color: #fff;

  display: flex;
  justify-content: center;
  align-items: center;

  font-size: 26px;
  transition: all .2s ease;
  box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.user-avatar:hover {
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.38), rgba(255,255,255,.14));
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 10px 20px rgba(0,0,0,0.28);
}

/* MENÚ DEL AVATAR */
.user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: clamp(12px, 4vw, 26px);
  background: rgba(255,255,255,0.98);
  border-radius: 16px;
  padding: 6px 0;
  border: 1px solid rgba(13, 39, 84, 0.08);
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
  backdrop-filter: blur(18px);
  transform-origin: top right;
  overflow: hidden;
  min-width: 180px;
  z-index: 100;
}

.user-menu.hidden {
  display: none;
}

.user-menu a {
  display: block;
  padding: 12px 16px;
  color: var(--color-texto);
  font-weight: 500;
  font-size: 14px;
}

.user-menu a + a {
  border-top: 1px solid rgba(0, 40, 90, 0.08);
}

.user-menu a:hover {
  background: #eef2ff;
}

/* ======================================================
   HEADER RESPONSIVE
   ====================================================== */
@media (max-width: 480px) {

  .site-header {
    height: 70px;
  }

  .header-logo span {
    font-size: 18px;
  }

  .header-logo img {
    width: 32px;
    height: 32px;
  }

  .user-avatar {
    width: 40px;
    height: 40px;
    font-size: 22px;
  }
}

/* ======================================================
   FOOTER
   ====================================================== */
.site-footer {
  background: var(--color-azul);
  min-height: var(--footer-height);
  padding: 18px 20px;
  flex-shrink: 0;
  width: 100%;
  position: relative;
  left: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  box-shadow: 0 -6px 18px rgba(0, 40, 90, 0.25);
}

.footer-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-brand img {
  display: none;
}

.footer-brand h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.footer-brand p,
.footer-legal p {
  font-size: 13px;
  margin: 2px 0 0;
  opacity: .8;
}

.footer-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.footer-logos a {
  display: inline-block;
}

.footer-logos img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

@media (max-width: 480px) {
  .footer-brand h4 {
    font-size: 15px;
  }

  .footer-brand p,
  .footer-legal p {
    font-size: 12px;
  }

  .footer-logos {
    gap: 12px;
  }

  .footer-logos img {
    height: 26px;
  }
}
.register-error {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid #ff5a5a;
  color: #ff4c4c;
  padding: 10px 14px;
  border-radius: 8px;
  margin: 10px 0 15px 0;
  font-size: 14px;
  text-align: center;
}
