/*
=====================================================================
 CENFIC · HEADER EXACTO REPLICADO DESDE INICIO
 NO ES UNA APROXIMACIÓN:
 las reglas inferiores provienen de los CSS reales de Inicio.
=====================================================================
*/


/* ================================================================
   FUENTE ORIGINAL: modules/inicio/css/base.css
================================================================ */
:root {
--cenfic-night: #050D1A;
  --cenfic-navy: #071426;
  --cenfic-navy-2: #0A1E38;
  --cenfic-navy-3: #123456;

  
  --cenfic-gold: #C4A47C;
  --cenfic-gold-2: #A6835A;
  --cenfic-gold-soft: #E8D5BC;
  --cenfic-gold-glow: rgba(196, 164, 124, 0.28);

  
  --cenfic-blue: #2B4BD1;
  --cenfic-blue-2: #1E37A8;
  --cenfic-blue-soft: #6E92F0;
  --cenfic-blue-glow: rgba(43, 75, 209, 0.38);

  
  --text-strong: #FFFFFF;
  --text-base: #E3EAF4;
  --text-muted: #9DAEC4;
  --text-dim: #7A8AA0;

  
  --glass: rgba(255, 255, 255, 0.045);
  --glass-2: rgba(255, 255, 255, 0.075);
  --glass-line: rgba(255, 255, 255, 0.10);
  --glass-line-2: rgba(255, 255, 255, 0.16);

  
  --font-heading: "Sora", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 999px;

  
  --shadow-sm: 0 8px 22px rgba(2, 8, 20, 0.35);
  --shadow-md: 0 20px 50px rgba(2, 8, 20, 0.45);
  --shadow-lg: 0 34px 90px rgba(2, 8, 20, 0.60);

  
  --header-h: 80px;
  --container: 1760px;
}

.site-header {
position: sticky;
  top: 0;
  z-index: 60;
  
  min-height: var(--header-h);
  padding-block: clamp(6px, 0.62vw, 11px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-inline: clamp(18px, 4.2vw, 56px);
  overflow: visible;
  transition: background 0.28s ease, border-color 0.28s ease;
  border-bottom: 1px solid transparent;
}

.brand {
display: flex;
  align-items: center;
  gap: clamp(8px, 0.9vw, 15px);
  flex-shrink: 0;
}

.brand-mark {
display: block;
  
  height: clamp(40px, 4.3vw, 70px);
  flex-shrink: 0;
}

.brand-mark img {
height: 100%;
  width: auto;
  display: block;
}

.brand-text {
display: block;
  line-height: 1;
}

.brand-name {
display: block;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 40px);
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.brand-legend {
display: block;
  margin-top: 4px;
  
  max-width: clamp(150px, 19vw, 300px);
  font-size: clamp(7.5px, 0.7vw, 11px);
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #EDEFF2;
}

.site-nav {
display: flex;
  align-items: center;
  gap: clamp(12px, 1.5vw, 24px);
  margin-left: auto;
}

.site-nav a {
position: relative;
  font-size: clamp(11px, 0.98vw, 17px);
  font-weight: 500;
  color: var(--text-base);
  white-space: nowrap;
  transition: color 0.2s ease;
}

.site-nav a:not(.nav-cta)::after {
content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 0;
  height: 1.5px;
  background: var(--cenfic-gold);
  transition: width 0.26s ease;
}

.site-nav a:not(.nav-cta):hover {
color: var(--text-strong);
}

.site-nav a:not(.nav-cta):hover::after {
width: 100%;
}

.nav-cta {
padding: clamp(8px, 0.78vw, 12px) clamp(14px, 1.56vw, 27px);
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--cenfic-gold) 0%, var(--cenfic-gold-2) 100%);
  color: #FFF6EA !important;
  font-weight: 600 !important;
  font-size: clamp(10.5px, 0.94vw, 14px) !important;
  box-shadow: 0 10px 24px rgba(166, 131, 90, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.nav-cta:hover {
transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 14px 30px rgba(166, 131, 90, 0.38);
}

.menu-toggle {
display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--glass-line-2);
  border-radius: 12px;
  background: var(--glass);
  color: var(--text-strong);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1180px) {
.menu-toggle {
display: grid;
    place-items: center;
}

.brand,
  .menu-toggle {
position: relative;
    z-index: 2;
}

.site-header::after {
content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(3, 8, 18, 0.7);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    touch-action: none;
    transition: opacity 0.24s ease, visibility 0.24s;
}

body.menu-open .site-header::after {
opacity: 1;
    visibility: visible;
    
    pointer-events: auto;
}

.site-nav {
position: fixed;
    
    top: var(--nav-top, var(--header-h));
    right: 0;
    left: 0;
    bottom: auto;
    z-index: 1;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px clamp(18px, 5vw, 34px) 24px;
    max-height: calc(100dvh - var(--nav-top, var(--header-h)));
    overflow-y: auto;
    overscroll-behavior: contain;
    border-bottom: 1px solid var(--glass-line);
    
    background: #071426;
    box-shadow: var(--shadow-md);
    transform: translateY(-14px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.24s ease, transform 0.24s ease, visibility 0.24s;
}

.site-nav.is-open {
transform: none;
    opacity: 1;
    visibility: visible;
}

.site-nav a {
padding: 13px 4px;
    font-size: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.site-nav a:not(.nav-cta)::after {
display: none;
}

.nav-cta {
margin-top: 14px;
    text-align: center;
    justify-content: center;
    border-bottom: 0 !important;
    padding: 13px 20px !important;
    font-size: 14px !important;
}
}

@media (max-width: 520px) {
.brand-legend {
display: none;
}
}


/* ================================================================
   FUENTE ORIGINAL: modules/inicio/css/premium.css
================================================================ */
:root {
--premium-glow-blue: rgba(38, 86, 176, 0.30);
  --premium-glow-gold: rgba(196, 164, 124, 0.13);
  --premium-vignette: rgba(2, 6, 14, 0.72);
}

.site-header {
position: sticky;
  top: 0;
  z-index: 60;
}

.site-header.is-stuck {
background: rgba(6, 16, 32, 0.86);
  border-bottom-color: var(--glass-line);
}

.site-header::before {
content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0;
  pointer-events: none;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: opacity 0.28s ease;
}

.site-header.is-stuck::before {
opacity: 1;
}


/* ================================================================
   FUENTE ORIGINAL: modules/inicio/css/portada.css
================================================================ */
:root {
--cenfic-gold: #E3C07A;
  --cenfic-gold-2: #B98D3D;
  --cenfic-gold-soft: #F6E3B4;
  --cenfic-gold-glow: rgba(227, 192, 122, 0.32);

  
  --azul-panel: rgba(13, 42, 80, 0.72);
  --azul-linea: rgba(120, 170, 235, 0.22);
  --azul-linea-2: rgba(140, 185, 245, 0.38);

  
  --hero-foto: url("../../../shared/img/hero-palacio.jpg");
}

.site-header {
background:
    linear-gradient(90deg,
      rgba(3, 11, 24, 0.97) 0%,
      rgba(3, 11, 24, 0.95) 24%,
      rgba(5, 18, 38, 0.74) 33%,
      rgba(5, 18, 38, 0.52) 100%);
  border-bottom: 1px solid rgba(227, 192, 122, 0.16);
}

.site-header::before {
opacity: 1;
}

.site-header.is-stuck {
background:
    linear-gradient(90deg,
      rgba(3, 11, 24, 0.99) 0%,
      rgba(3, 11, 24, 0.97) 26%,
      rgba(5, 18, 38, 0.92) 40%,
      rgba(5, 18, 38, 0.88) 100%);
  border-bottom-color: rgba(227, 192, 122, 0.26);
}

.site-header .brand-legend {
color: #C8D6E8;
}

.site-nav a:not(.nav-cta) {
font-weight: 500;
  color: #DCE7F6;
}

.nav-cta {
display: inline-flex;
  align-items: center;
  gap: clamp(6px, 0.55vw, 10px);
  border-radius: 12px;
  border: 1px solid rgba(255, 240, 205, 0.45);
  background: linear-gradient(135deg, #F4DA9C 0%, #D9AF5F 48%, #B98D3D 100%);
  color: #0A1A30 !important;
  font-weight: 700 !important;
  box-shadow:
    0 12px 26px rgba(185, 141, 61, 0.30),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.nav-cta:hover {
filter: brightness(1.05);
  box-shadow:
    0 16px 32px rgba(185, 141, 61, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-cta svg {
width: clamp(13px, 1.02vw, 18px);
  height: auto;
  flex-shrink: 0;
}

.site-header {
background: #001E3E;
  border-bottom: 2px solid #001E3E;
  box-shadow:
    0 14px 28px rgba(0, 9, 24, 0.42);
}

.site-header.is-stuck {
background: #001E3E;
  border-bottom-color: #001E3E;
}

.site-header .brand-text {
display: block;
}

.site-header .brand-name {
color: #FFFFFF;
}

.site-header .brand-legend {
color: #FFFFFF;
}

.site-header .brand-mark {
height: clamp(40px, 4.3vw, 70px);
}

.site-header .brand-mark img {
width: auto;
  height: 100%;
  object-fit: contain;
}

.site-nav {
gap: clamp(13px, 1.25vw, 22px);
}

.site-nav .nav-link {
position: relative;
  color: #FFFFFF;
  font-weight: 500;
  text-decoration: none;
}

.site-nav .nav-link.is-active {
color: #F3C95E;
}

.site-nav .nav-link.is-active::after {
width: 100%;
  height: 2px;
  background: #F3C95E;
}

.site-nav .nav-link:not(.is-active):hover {
color: #F3C95E;
}

.site-nav .nav-link[href="#contacto"] {
margin-right: clamp(18px, 2.4vw, 42px);
}

.nav-search {
width: 38px;
  height: 38px;
  flex: 0 0 38px;

  display: inline-grid;
  place-items: center;

  padding: 0;
  border: 0;
  border-radius: 8px;

  background: transparent;
  color: #FFFFFF;

  cursor: pointer;
  transition:
    color 0.2s ease,
    background 0.2s ease;
}

.nav-search svg {
width: 21px;
  height: 21px;
}

.nav-search:hover {
color: #F3C95E;
  background: rgba(255, 255, 255, 0.06);
}

.site-nav .nav-aula {
display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;

  padding: 9px 14px;

  border: 1px solid rgba(143, 207, 255, 0.55);
  border-radius: 9px;

  background: rgba(8, 47, 82, 0.52);
  color: #FFFFFF;

  font-weight: 600;
  text-decoration: none;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.site-nav .nav-aula::after {
display: none !important;
}

.nav-aula svg {
width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.site-nav .nav-aula:hover {
color: #FFFFFF;
  background: rgba(18, 73, 116, 0.72);
  border-color: rgba(173, 221, 255, 0.85);
  transform: translateY(-1px);
}

.site-nav .nav-cta {
display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  padding: 9px 16px;

  border: 1px solid rgba(255, 230, 151, 0.8);
  border-radius: 10px;

  background: linear-gradient(
    180deg,
    #F8D978 0%,
    #E7B940 58%,
    #C89525 100%
  );

  color: #071D35 !important;
  font-weight: 750 !important;

  box-shadow:
    0 6px 15px rgba(213, 166, 45, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.nav-cta__icon {
width: 24px;
  height: 24px;

  display: inline-grid;
  place-items: center;

  border-radius: 50%;

  background: #082B4C;
  color: #F4C956;

  flex-shrink: 0;
}

.nav-cta__icon svg {
width: 15px;
  height: 15px;
}

.site-nav .nav-cta:hover {
color: #071D35 !important;
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.nav-search:focus-visible,
.site-nav .nav-link:focus-visible,
.site-nav .nav-aula:focus-visible,
.site-nav .nav-cta:focus-visible {
outline: 2px solid #F3C95E;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
.site-nav .nav-link[href="#contacto"] {
margin-right: 0;
}

.nav-search {
width: 44px;
    height: 44px;
    flex-basis: 44px;
    margin-top: 5px;
}

.site-nav .nav-aula,
  .site-nav .nav-cta {
width: 100%;
    box-sizing: border-box;
    margin-top: 7px;
}

.site-nav .nav-aula {
padding: 13px 16px;
}

.site-nav .nav-link.is-active {
color: #F3C95E;
}

.site-nav .nav-link.is-active::after {
display: none;
}
}

.nav-search-wrap {
position: relative;
  display: inline-flex;
  align-items: center;
}

.page-search[hidden] {
display: none;
}

.page-search {
position: absolute;
  top: calc(100% + 14px);
  right: 0;
  z-index: 100;

  width: min(320px, calc(100vw - 32px));
  padding: 10px;

  border: 1px solid rgba(143, 207, 255, 0.42);
  border-radius: 10px;

  background: #001E3E;

  box-shadow:
    0 16px 35px rgba(0, 10, 28, 0.38);
}

.page-search__input {
width: 100%;
  box-sizing: border-box;

  padding: 10px 12px;

  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 7px;

  background: #FFFFFF;
  color: #10263E;

  font: inherit;
  font-size: 14px;
  outline: none;
}

.page-search__input:focus {
border-color: #F3C95E;
  box-shadow: 0 0 0 2px rgba(243, 201, 94, 0.18);
}

.page-search__status {
display: block;
  min-height: 16px;
  margin-top: 6px;

  color: #DCE7F6;
  font-size: 11px;
}

@media (max-width: 1180px) {
.nav-search-wrap {
width: 100%;
}

.page-search {
position: static;
    width: 100%;
    margin-top: 6px;
    box-sizing: border-box;
}
}



/* =================================================================
   ADAPTACIONES DE RUTA · SIMULADORES
   No cambian el diseño del Header.
================================================================= */

/* El Contacto actual de Inicio apunta a WhatsApp, por lo que el selector
   histórico [href="#contacto"] ya no le añade margen. La ruta interna de
   Catálogo conserva aquí el mismo resultado visual final: sin margen extra. */
.site-nav .nav-link[href="../inicio/index.html#contacto"] {
  margin-right: 0;
}

/*
En Inicio estos elementos heredan la familia tipográfica global.
La aplicamos únicamente al Header para no alterar Simuladores.
*/
.site-header {
  font-family: var(--font-body, "Inter", sans-serif);
}

.site-header button,
.site-header input {
  font-family: inherit;
}

.site-header a {
  text-decoration: none;
}

/* Los enlaces de Inicio heredan `font: inherit` desde base.css. Se explicita
   el mismo resultado aquí para aislar el header de la tipografía de cada
   página (incluido el line-height utilitario de Simuladores). */
.site-nav a {
  font-family: var(--font-body, "Inter", system-ui, sans-serif);
  line-height: normal;
  letter-spacing: normal;
}

/* En Inicio la altura es flexible: 80px es el mínimo y el logo más el
   padding pueden hacer crecer la barra. No se fija height/max-height. */
.site-header {
  box-sizing: border-box;
}

/* Resultado final de modules/inicio/css/desktop-grande.css. */
@media (min-width: 1181px) and (max-width: 1350px) {
  .site-header {
    padding-inline: 20px;
    gap: 12px;
  }

  .site-header .brand {
    gap: 9px;
  }

  .site-header .brand-mark {
    height: 52px;
  }

  .site-header .brand-name {
    font-size: 30px;
  }

  .site-header .brand-legend {
    display: block;
  }

  .site-nav {
    gap: 12px;
  }

  .site-nav .nav-link {
    font-size: 14px;
  }

  .nav-search {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
  }

  .site-nav .nav-aula {
    padding: 8px 10px;
    gap: 6px;
  }

  .site-nav .nav-cta {
    padding: 8px 12px;
    gap: 7px;
  }
}
