:root {
  /* ===== Base (TU PALETA) ===== */
  --bg: #297ab8;        /* fondo general */
  --text: #f5f9ff;      /* texto principal */

  /* ===== Color principal (NAV) ===== */
  --primary: #0077d4;   /* barra/CTA */
  --primary-weak: color-mix(in srgb, var(--primary) 22%, transparent);
  --on-primary: #ffffff;

  /* ===== Acentos (de tu paleta Coolors) ===== */
  --accent-green: #0a7f1f;
  --accent-purple: #a469db;
  --accent-yellow: #fff200;
  --accent-red: #ee0817;

  /* ===== IMAGEN DEL HERO ===== */
  --inicio-img: url("../img/hero.png");

  /* ===== Superficies para contraste (CLAVE con fondo azul) ===== */
  --surface: #23496C;   /* panel oscuro */
  --surface-2: color-mix(in srgb, #0b0b0f 78%, var(--bg)); /* panel un poco + claro */
  --border: color-mix(in srgb, var(--text) 18%, transparent);

  /* ===== Tipografías ===== */
  --font-title: "Montserrat", sans-serif;
  --font-body: "Inter", sans-serif;

  /* ===== Compatibilidad con CSS viejo ===== */
  --praxis-bg: var(--bg);
  --praxis-black: #0f172a;
  --praxis-white: #f5f9ff;
  --praxis-blue: var(--primary);
  --praxis-violet: var(--accent-purple);
  --praxis-orange: color-mix(in srgb, var(--accent-yellow) 55%, var(--accent-red));

}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
}

/* =========================
  HEADER
========================= */

.header {
  display: grid;
  grid-template-rows: auto auto;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 18px;
  padding: 14px 22px;

  background: var(--surface);
  border-bottom: 1px solid color-mix(in srgb, var(--text) 14%, transparent);
  backdrop-filter: blur(10px);

  position: relative;
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.brand-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
}

.titulo {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2rem;
  color: var(--text);
  text-align: center;
}

/* =========================
  NAV + SUBMENUS 
========================= */

.nav {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nav-group {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-item {
  color: color-mix(in srgb, var(--text) 92%, transparent);
  text-decoration: none;
  padding: 9px 11px;
  border-radius: 12px;
  font-family: var(--font-body);
  font-weight: 700;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  white-space: nowrap;
}

.nav-group:hover > .nav-item, .nav-group:focus-within > .nav-item {
  background: color-mix(in srgb, var(--text) 12%, transparent);
  color: var(--text);
}

.submenu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;

  display: grid;
  gap: 6px;

  padding: 10px;
  border-radius: 14px;

  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  border: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  box-shadow: 0 18px 40px color-mix(in srgb, #000 45%, transparent);

  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  z-index: 2000;
}

.submenu::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: color-mix(in srgb, var(--surface-2) 92%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--text) 12%, transparent);
}

.nav-group:hover > .submenu, .nav-group:focus-within > .submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.submenu-item {
  display: block;
  text-decoration: none;
  padding: 10px 10px;
  border-radius: 12px;

  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.95rem;

  color: color-mix(in srgb, var(--text) 90%, transparent);
  background: transparent;

  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.submenu-item:hover, .submenu-item:focus-visible {
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
  transform: translateX(2px);
}



/* =========================
  FOOTER
   ========================= */

footer{
  background: var(--surface);
  border-top: 1px solid var(--border, rgba(255,255,255,.15));
  padding: 26px 22px 14px;
  color: var(--text, #fff);
  width: 100%;
  display: grid;
  grid-template-columns: minmax(280px, 520px) minmax(260px, 420px);
  justify-content: center;

  column-gap: clamp(18px, 5vw, 56px);
  row-gap: 18px;

  align-items: start;
}



.logo-praxis{
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-praxis img{
  width: 140px;
  height: 140px;
  object-fit: contain;
}

.footer-texto{
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.footer-titulo{
  font-family: var(--font-title, "Montserrat", sans-serif);
  font-weight: 800;
  font-size: 1.2rem;
  color: inherit;
}

.footer-descripcion{
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.95rem;
  opacity: .9;
}

/* Contacto */
.footer-redes{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-redes h3{
  margin: 0 0 6px;
  font-size: 1rem;
}

/* Links */
.footer-redes a{
  display: flex;
  align-items: center;
  gap: 10px;

  text-decoration: none;
  color: color-mix(in srgb, var(--text, #fff) 88%, transparent);

  padding: 8px 10px;
  border-radius: 12px;
  width: fit-content;

  transition: 160ms ease;
}

.footer-redes a img{
  background: transparent;
  mix-blend-mode: multiply;
}


.footer-redes a:hover{
  background: color-mix(in srgb, var(--primary, #0077d4) 16%, transparent);
  color: var(--text, #fff);
}


/* Iconos */
.footer-redes a img{
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex: 0 0 20px;
}

/* Bottom ocupa toda la fila */
.footer-bottom{
  grid-column: 1 / -1;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border, rgba(255,255,255,.15));
  color: color-mix(in srgb, var(--text, #fff) 70%, transparent);
  font-family: var(--font-body, "Inter", sans-serif);
  font-size: 0.9rem;
}


/* =========================
  RESPONSIVE
   ========================= */

/* Tablets */
@media (max-width: 900px){
  footer{
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 22px 18px 12px;
  }

  .logo-praxis img{
    width: 110px;
    height: 110px;
  }

  .footer-bottom{
    margin-top: 8px;
  }
}

/* Mobile */
@media (max-width: 600px){
  footer{
    padding: 18px 14px 12px;
  }

  .logo-praxis{
    gap: 10px;
  }

  .logo-praxis img{
    width: 90px;
    height: 90px;
  }

  /* links a todo el ancho para mejor tacto */
  .footer-redes a{
    width: 100%;
    padding: 10px 12px;
  }

  .footer-titulo{
    font-size: 1.1rem;
  }

  .footer-descripcion{
    font-size: 0.95rem;
  }
}