@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
  --site-bg: #f4f1ea;
  --site-bg-alt: #efebe3;
  --panel: #ffffff;
  --panel-border: #e4dfd6;
  --ink: #0b1730;
  --muted: #667085;
  --gold: #caa34d;
  --nav-glass: rgba(8, 18, 34, 0.22);
  --nav-line: rgba(255, 255, 255, 0.10);
  --shadow-soft: 0 10px 30px rgba(16, 24, 40, 0.06);
}

html,
body {
  background: var(--site-bg) !important;
}

body,
button,
input,
textarea,
select,
a,
p,
li,
span,
div {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
.brand {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: -0.04em !important;
}

/* Header más moderno y limpio */
.topbar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;

  background: var(--nav-glass) !important;
  backdrop-filter: blur(18px) saturate(145%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(145%) !important;

  border-bottom: 1px solid var(--nav-line) !important;
  box-shadow: none !important;
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 14px !important;
  color: #ffffff !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  text-decoration: none !important;
}

.brand-logo {
  width: 42px !important;
  height: 42px !important;
  object-fit: contain !important;
  display: block !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.28));
}

.nav a {
  color: rgba(255,255,255,0.88) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

.nav a:hover {
  color: #ffffff !important;
}

.hero {
  padding-top: 140px !important;
}

.container-wide {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.clean-home-section {
  padding: 88px 0;
  background: var(--site-bg);
}

.clean-home-section-alt {
  background: var(--site-bg-alt);
}

.clean-intro {
  max-width: 860px;
  margin-bottom: 34px;
}

.clean-intro-compact {
  margin-bottom: 28px;
}

.clean-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.clean-home-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.96;
}

.clean-home-intro {
  max-width: 860px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.7;
}

.clean-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 38px;
}

.clean-feature-card {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--panel-border);
  border-radius: 18px;
  padding: 30px;
  min-height: 220px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.clean-feature-card:hover {
  transform: translateY(-3px);
  border-color: #d7c6a0;
  box-shadow: 0 18px 40px rgba(16, 24, 40, 0.09);
}

.clean-card-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.clean-feature-card h3,
.clean-article-card h3 {
  margin: 0 0 14px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
}

.clean-feature-card p:not(.clean-card-kicker),
.clean-article-card p:not(.clean-card-kicker) {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.clean-article-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.clean-article-card {
  background: #0d1a32;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 18px;
  padding: 28px;
  box-shadow: none;
}

.clean-article-card h3 a {
  color: #ffffff;
  text-decoration: none;
}

.clean-article-card h3 a:hover {
  color: #f2d17c;
}

.clean-article-card p:not(.clean-card-kicker) {
  color: rgba(255,255,255,0.72) !important;
}

.clean-read-more {
  display: inline-block;
  margin-top: 10px;
  color: #f2d17c !important;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

/* Ocultar estilos viejos si aún aparecen en otras partes */
.card-number,
.badge {
  display: none !important;
}

/* Mejor coherencia en páginas internas */
.content-page {
  max-width: 1100px !important;
  margin: 0 auto !important;
  padding: 140px 24px 80px !important;
  background: transparent !important;
}

.content-page h1 {
  color: var(--ink) !important;
  font-size: clamp(42px, 6vw, 68px) !important;
  line-height: 0.98 !important;
  margin-bottom: 24px !important;
}

.content-page p,
.content-page li {
  color: var(--muted) !important;
  font-size: 18px !important;
  line-height: 1.75 !important;
}

/* Footer limpio */
.site-footer {
  background: #091223 !important;
  color: rgba(255,255,255,0.74) !important;
  text-align: center !important;
  padding: 22px 24px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
}

/* Responsive */
@media (max-width: 1100px) {
  .clean-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clean-feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .container-wide {
    width: min(100%, calc(100% - 28px));
  }

  .clean-feature-grid,
  .clean-article-grid {
    grid-template-columns: 1fr;
  }

  .clean-home-section {
    padding: 64px 0;
  }

  .clean-home-title {
    font-size: 42px;
  }

  .clean-home-intro {
    font-size: 18px;
  }

  .clean-feature-card,
  .clean-article-card {
    padding: 24px;
    min-height: unset;
  }

  .brand-logo {
    width: 38px !important;
    height: 38px !important;
  }

  .brand {
    font-size: 18px !important;
  }

  .hero {
    padding-top: 120px !important;
  }
}

/* FINAL: REMOVE MENU PILL, KEEP SAME DROPDOWN UNDER HAMBURGER */

/* Desktop: navegación normal completa, sin hamburguesa */
@media (min-width: 821px) {
  .nav-toggle {
    display: none !important;
  }

  .nav {
    display: flex !important;
    position: static !important;
    width: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* Mobile */
@media (max-width: 820px) {
  .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;

    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 14px !important;

    min-height: 96px !important;
    padding: 14px 28px !important;

    background: rgba(8, 18, 34, 0.26) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .brand {
    grid-column: 1 / 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    color: #ffffff !important;
  }

  .brand-logo {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .brand span {
    font-size: 24px !important;
    font-weight: 800 !important;
  }

  /* Este es el único botón visible */
  .nav-toggle {
    grid-column: 3 !important;
    justify-self: end !important;

    width: 58px !important;
    height: 58px !important;
    border-radius: 999px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.26) !important;

    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;

    font-size: 0 !important;
    cursor: pointer !important;
  }

  .nav-toggle span {
    display: block !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  /* El desplegable bueno: ahora sale bajo la hamburguesa */
  .nav {
    display: none !important;

    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 28px !important;

    width: min(330px, calc(100vw - 56px)) !important;
    padding: 18px 22px !important;

    background: rgba(7, 17, 31, 0.86) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 24px !important;

    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;

    box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28) !important;
  }

  .nav.open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .nav.open a {
    width: 100% !important;
    min-height: 52px !important;

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

    padding: 0 !important;

    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;

    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .nav.open a:last-child {
    border-bottom: 0 !important;
  }

  .nav.open a::after {
    content: "›" !important;
    color: #caa34d !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }

  body.home-page .hero {
    padding-top: 130px !important;
  }
}

/* === FINAL DESKTOP + MOBILE NAVIGATION === */

/* Quita cualquier botón extra dentro de la barra que no sea la hamburguesa */
.topbar button:not(.nav-toggle) {
  display: none !important;
}

/* DESKTOP: barra completa interactiva, sin Menu, sin hamburguesa */
@media (min-width: 821px) {
  .topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 34px !important;
    height: 84px !important;
    min-height: 84px !important;
    padding: 0 46px !important;
  }

  .nav-toggle {
    display: none !important;
  }

  .brand {
    display: inline-flex !important;
    align-items: center !important;
    gap: 13px !important;
    text-decoration: none !important;
    white-space: nowrap !important;
  }

  .brand-logo {
    width: 56px !important;
    height: 56px !important;
    object-fit: contain !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .nav {
    display: flex !important;
    align-items: stretch !important;
    justify-content: flex-end !important;
    gap: 2px !important;

    position: static !important;
    width: auto !important;
    height: 84px !important;

    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }

  .nav a {
    height: 84px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 0 12px !important;

    text-decoration: none !important;
    font-size: 11px !important;
    font-weight: 780 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;

    border: 0 !important;
    border-bottom: 2px solid transparent !important;
    border-radius: 0 !important;

    transition: background 160ms ease, color 160ms ease, border-color 160ms ease !important;
  }

  body.home-page .nav a {
    color: rgba(255,255,255,0.90) !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.65) !important;
  }

  body.home-page .nav a:hover {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08) !important;
    border-bottom-color: #caa34d !important;
  }

  body.inner-page .nav a {
    color: rgba(17,24,39,0.78) !important;
    text-shadow: none !important;
  }

  body.inner-page .nav a:hover {
    color: #111827 !important;
    background: rgba(255,255,255,0.34) !important;
    border-bottom-color: #caa34d !important;
  }
}

/* MÓVIL: solo hamburguesa; el desplegable bueno sale debajo de la hamburguesa */
@media (max-width: 820px) {
  .topbar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 99999 !important;

    display: grid !important;
    grid-template-columns: auto 1fr auto !important;
    align-items: center !important;
    gap: 14px !important;

    min-height: 96px !important;
    padding: 14px 28px !important;

    background: rgba(8,18,34,0.26) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;

    border: 0 !important;
    box-shadow: none !important;
  }

  .brand {
    grid-column: 1 / 3 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
    color: #ffffff !important;
  }

  .brand-logo {
    width: 52px !important;
    height: 52px !important;
    object-fit: contain !important;
    flex: 0 0 auto !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .brand span {
    font-size: 24px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .nav-toggle {
    grid-column: 3 !important;
    justify-self: end !important;

    width: 58px !important;
    height: 58px !important;
    border-radius: 999px !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    color: #ffffff !important;
    background: rgba(255,255,255,0.08) !important;
    border: 1px solid rgba(255,255,255,0.26) !important;

    backdrop-filter: blur(14px) saturate(130%) !important;
    -webkit-backdrop-filter: blur(14px) saturate(130%) !important;

    font-size: 0 !important;
    cursor: pointer !important;
  }

  .nav-toggle span {
    display: block !important;
    font-size: 30px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
  }

  .nav {
    display: none !important;

    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 28px !important;

    width: min(330px, calc(100vw - 56px)) !important;
    padding: 18px 22px !important;

    background: rgba(7,17,31,0.86) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    border-radius: 24px !important;

    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;

    box-shadow: 0 22px 60px rgba(0,0,0,0.28) !important;
  }

  .nav.open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .nav.open a {
    width: 100% !important;
    min-height: 52px !important;

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

    padding: 0 !important;

    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.10em !important;
    text-transform: uppercase !important;

    border-bottom: 1px solid rgba(255,255,255,0.08) !important;
  }

  .nav.open a:last-child {
    border-bottom: 0 !important;
  }

  .nav.open a::after {
    content: "›" !important;
    color: #caa34d !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }

  body.home-page .hero {
    padding-top: 130px !important;
  }
}

/* === MOBILE INNER PAGES MENU FIX === */

/* Móvil general: el menú siempre sale debajo de la hamburguesa */
@media (max-width: 820px) {
  .topbar {
    z-index: 999999 !important;
  }

  .nav {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 24px !important;
    left: auto !important;

    width: min(330px, calc(100vw - 48px)) !important;
    max-height: calc(100vh - 140px) !important;
    overflow-y: auto !important;

    padding: 14px 18px !important;
    border-radius: 24px !important;

    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24) !important;
  }

  .nav.open {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  .nav.open a {
    width: 100% !important;
    min-height: 52px !important;

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

    padding: 0 4px !important;

    font-size: 15px !important;
    font-weight: 800 !important;
    letter-spacing: 0.09em !important;
    text-transform: uppercase !important;
    text-decoration: none !important;
  }

  .nav.open a::after {
    content: "›" !important;
    color: #caa34d !important;
    font-size: 28px !important;
    line-height: 1 !important;
  }

  /* Home: menú oscuro, porque cae sobre imagen */
  body.home-page .nav.open {
    background: rgba(7, 17, 31, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    backdrop-filter: blur(22px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(22px) saturate(145%) !important;
  }

  body.home-page .nav.open a {
    color: #ffffff !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  /* Páginas internas: menú claro y opaco, para que NO se mezcle con el texto */
  body.inner-page .nav.open {
    background: rgba(250, 247, 239, 0.98) !important;
    border: 1px solid rgba(17, 24, 39, 0.10) !important;
    backdrop-filter: blur(18px) saturate(140%) !important;
    -webkit-backdrop-filter: blur(18px) saturate(140%) !important;
  }

  body.inner-page .nav.open a {
    color: #0b1730 !important;
    text-shadow: none !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
  }

  .nav.open a:last-child {
    border-bottom: 0 !important;
  }

  /* Header móvil interno: claro, limpio, sin confundirse con el contenido */
  body.inner-page .topbar {
    background: rgba(250, 247, 239, 0.90) !important;
    backdrop-filter: blur(20px) saturate(145%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(145%) !important;
    border-bottom: 1px solid rgba(17, 24, 39, 0.08) !important;
  }

  body.inner-page .brand {
    color: #0b1730 !important;
    text-shadow: none !important;
  }

  body.inner-page .nav-toggle {
    color: #0b1730 !important;
    background: rgba(255, 255, 255, 0.54) !important;
    border: 1px solid rgba(17, 24, 39, 0.12) !important;
  }

  body.inner-page .nav-toggle span {
    color: #0b1730 !important;
  }

  /* Separación para que el header no tape el contenido en páginas internas */
  body.inner-page .content-page,
  body.inner-page .post-page {
    padding-top: 130px !important;
  }
}

/* === FINAL MINIMAL FOOTER === */

.site-footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 34px 24px !important;

  background: #f4f1ea !important;
  border-top: 1px solid rgba(11, 23, 48, 0.10) !important;
  box-shadow: none !important;

  text-align: center !important;
}

.site-footer-inner {
  max-width: 1180px !important;
  margin: 0 auto !important;

  color: rgba(11, 23, 48, 0.72) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.13em !important;
  text-transform: uppercase !important;
  line-height: 1.5 !important;
}

/* Elimina cualquier barra negra vieja del footer */
footer,
.site-footer,
.site-footer * {
  box-sizing: border-box !important;
}
