@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600&family=Inter:wght@400;500;600&display=swap');

:root {
  --tinta: #1B2A33;
  --tinta-suave: #4C5D66;
  --linea: #DDE3E1;
  --superficie: #FFFFFF;
  --fondo: #F5F4EF;
  --azul-profundo: #2B3A4A;
  --azul-profundo-hover: #1F2C38;
  --verde-marca: #3CB99A;
  --verde-marca-suave: #E4F5F0;
  --oro: #F0B429;
  --oro-suave: #FCF0D6;
  --error: #B23A34;
  --error-fondo: #FBEAE9;
  --radio: 10px;
  --fuente-display: 'Fraunces', serif;
  --fuente-cuerpo: 'Inter', sans-serif;
}

* { box-sizing: border-box; }

img { max-width: 100%; }

body {
  margin: 0;
  font-family: var(--fuente-cuerpo);
  color: var(--tinta);
  background: var(--fondo);
}

/* ---------- Login ---------- */

.pantalla-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.tarjeta-login {
  width: 100%;
  max-width: 380px;
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: var(--radio);
  padding: 40px 32px;
}

.marca {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--verde-marca);
  text-align: center;
}

.tarjeta-login .marca img {
  height: 40px;
  width: auto;
  max-width: 180px;
  margin-bottom: 14px;
  display: inline-block;
}

.marca-eyebrow {
  display: block;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--verde-marca);
  font-weight: 600;
  margin-bottom: 6px;
}

.marca h1 {
  font-family: var(--fuente-display);
  font-weight: 600;
  font-size: 28px;
  margin: 0;
  color: var(--azul-profundo);
}

.texto-login {
  font-size: 14px;
  color: var(--tinta-suave);
  margin: 0 0 18px;
}

.boton-google {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--fuente-cuerpo);
  font-size: 15px;
  font-weight: 500;
  color: var(--tinta);
  background: var(--superficie);
  border: 1px solid var(--linea);
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.boton-google:hover { border-color: var(--azul-profundo); background: var(--fondo); }
.boton-google:disabled { opacity: 0.6; cursor: default; }

.mensaje-error {
  min-height: 18px;
  font-size: 13px;
  color: var(--error);
  margin: 10px 0 0;
}

.mensaje-error:not(:empty) {
  background: var(--error-fondo);
  padding: 8px 10px;
  border-radius: 6px;
}

.boton-primario {
  margin-top: 20px;
  font-family: var(--fuente-cuerpo);
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--azul-profundo);
  border: none;
  border-radius: 8px;
  padding: 12px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.boton-primario:hover { background: var(--azul-profundo-hover); }
.boton-primario:disabled { opacity: 0.6; cursor: default; }

/* ---------- Layout de páginas internas ---------- */

.app-shell {
  min-height: 100vh;
  display: flex;
}

.app-nav {
  width: 220px;
  background: var(--azul-profundo);
  color: #fff;
  padding: 24px 18px;
  flex-shrink: 0;
}

.app-nav .marca-eyebrow { color: var(--verde-marca); }
.app-nav h1 { font-size: 18px; color: #fff; margin: 0 0 24px; }
.logo-nav-wrap {
  background: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  display: inline-block;
  margin-bottom: 20px;
}
.logo-nav-wrap img { height: 24px; width: auto; max-width: 140px; display: block; }

.app-nav a {
  display: block;
  color: #E4EBEF;
  text-decoration: none;
  font-size: 14px;
  padding: 9px 10px;
  border-radius: 6px;
  margin-bottom: 2px;
}

.app-nav a:hover { background: rgba(255,255,255,0.08); }

.app-contenido {
  flex: 1;
  padding: 32px 40px;
}

.app-contenido h2 {
  font-family: var(--fuente-display);
  font-size: 24px;
  color: var(--azul-profundo);
  margin-top: 0;
}

.etiqueta-rol {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--azul-profundo);
  background: var(--oro-suave);
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 20px;
}
