/* =========================================================
   Nexus Clean Light (2026) - Minimal / Premium
   Global UI System (site.css)
   ========================================================= */

:root{
  /* Surfaces */
  --nx-bg: #f6f7fb;
  --nx-bg2: #eef2f7;
  --nx-surface: #ffffff;
  --nx-surface-2: #f1f5f9;

  /* Text */
  --nx-text: #0f172a;
  --nx-muted: #475569;
  --nx-muted2: #64748b;
  --acc-accent: #2563eb;

  /* Lines */
  --nx-line: rgba(15, 23, 42, .10);
  --nx-line2: rgba(15, 23, 42, .16);

  /* Brand / Accent */
  --nx-primary: #0f172a;       /* botones principales (negro premium) */
  --nx-accent: #2563eb;        /* focus + detalles */
  --nx-accent-soft: rgba(37, 99, 235, .18);

  /* Radius */
  --nx-r12: 12px;
  --nx-r16: 16px;
  --nx-r22: 22px;
  --nx-r999: 999px;

  /* Shadows */
  --nx-shadow: 0 18px 40px rgba(2, 6, 23, .10);
  --nx-shadow-soft: 0 10px 24px rgba(2, 6, 23, .08);

  /* Focus */
  --nx-focus: 0 0 0 3px var(--nx-accent-soft);

  /* Typography */
  --nx-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --nx-font-display: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  /* Layout */
  --nx-max: 1120px;

  /* Footer (integradas) */
  --nf-bg: var(--nx-surface);
  --nf-text-main: var(--nx-text);
  --nf-text-muted: var(--nx-muted2);
  --nf-border: var(--nx-line);
  --nf-glass: var(--nx-surface);
}

/* Reset */
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; color-scheme: light; }
body.site{
  margin:0;
  font-family: var(--nx-font);
  color: var(--nx-text);
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(37,99,235,.10), transparent 60%),
    radial-gradient(900px 600px at 90% 0%, rgba(2,6,23,.06), transparent 55%),
    linear-gradient(180deg, var(--nx-bg), var(--nx-bg2));
  min-height:100vh;
}

img{ max-width:100%; height:auto; display:block; }
a{ color: inherit; }
button{ font-family: inherit; }
::selection{ background: rgba(37,99,235,.18); }

@media (prefers-reduced-motion: reduce){
  *{ scroll-behavior:auto !important; transition:none !important; animation:none !important; }
}

a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible{
  outline: none;
  box-shadow: var(--nx-focus);
}

.nx-container{
  width: min(var(--nx-max), calc(100% - 32px));
  margin: 0 auto;
}
.nx-main{ position:relative; z-index:1; }

/* Skip link */
.nx-skip{
  position:absolute; left:-999px; top:12px; z-index:999;
  padding:10px 14px; border-radius: var(--nx-r999);
  background: var(--nx-surface);
  border:1px solid var(--nx-line);
  box-shadow: var(--nx-shadow-soft);
}
.nx-skip:focus{ left: 12px; }

/* =========================
   Header (Clean Light)
   ========================= */
.nx-header{
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  border-bottom: 1px solid var(--nx-line);
}
@supports (backdrop-filter: blur(10px)){
  .nx-header{ backdrop-filter: blur(18px) saturate(140%); }
}

.nx-header__inner{
  position:relative;
  display:flex; align-items:center; justify-content:space-between;
  gap: 16px; padding: 12px 0;
}

/* Brand */
.nx-brand{
  display:flex; align-items:center; gap: 12px;
  text-decoration:none; color: inherit;
  min-width: 220px;
}
.nx-brand__mark{
  width: 40px; height: 40px;
  border-radius: 14px;
  display:grid; place-items:center;
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  box-shadow: var(--nx-shadow-soft);
  overflow: hidden;
}
.nx-brand__name{
  font-family: var(--nx-font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: .10em;
  text-transform: uppercase;
  line-height: 1.05;
}
.nx-brand__tagline{
  display:block;
  font-size: 12px;
  color: var(--nx-muted2);
  margin-top: 3px;
}

/* Nav */
.nx-nav__list{
  list-style:none; margin:0; padding:0;
  display:flex; align-items:center; gap: 8px;
}
.nx-nav__item{ position:relative; }
.nx-nav__row{ display:flex; align-items:center; gap: 6px; }

.nx-nav__link{
  text-decoration:none;
  color: var(--nx-muted);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 10px;
  border-radius: 12px;
  transition: background .15s ease, color .15s ease;
}
.nx-nav__link:hover{
  background: var(--nx-surface-2);
  color: var(--nx-text);
}
.nx-nav__item.is-active > .nx-nav__row > .nx-nav__link{
  background: rgba(37,99,235,.10);
  color: var(--nx-text);
}

/* Dropdown hint (desktop) */
.nx-nav__item.has-children > .nx-nav__row > .nx-nav__link::after{
  content:"";
  display:inline-block;
  width: 6px; height: 6px;
  margin-left: 8px;
  border-right: 2px solid var(--nx-muted2);
  border-bottom: 2px solid var(--nx-muted2);
  transform: rotate(45deg) translateY(-1px);
}

/* Actions */
.nx-actions{ display:flex; align-items:center; gap: 10px; }

/* Language pills */
.nx-lang{
  display:inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: var(--nx-r999);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  box-shadow: var(--nx-shadow-soft);
}
.nx-lang__link{
  font-size: 12px;
  padding: 7px 10px;
  border-radius: var(--nx-r999);
  color: var(--nx-muted);
  text-decoration:none;
  transition: background .15s ease, color .15s ease;
}
.nx-lang__link:hover,
.nx-lang__link.is-active{
  background: var(--nx-surface-2);
  color: var(--nx-text);
}

/* Admin link (outline) */
.nx-admin-link{
  text-decoration:none;
  padding: 10px 12px;
  border-radius: var(--nx-r999);
  border: 1px solid var(--nx-line2);
  background: transparent;
  color: var(--nx-text);
  transition: background .15s ease;
}
.nx-admin-link:hover{ background: var(--nx-surface-2); }
.nx-admin-link--mobile{ display:block; margin-top: 12px; text-align:center; }

/* Burger */
.nx-burger{
  display:none;
  width: 44px; height: 42px;
  border-radius: var(--nx-r12);
  border: 1px solid var(--nx-line2);
  background: var(--nx-surface);
  box-shadow: var(--nx-shadow-soft);
  cursor:pointer;
  padding: 10px;
}
.nx-burger span{
  display:block;
  width: 24px; height:2px;
  background: var(--nx-text);
  border-radius:2px;
  margin: 3px 0;
}

/* Desktop dropdown (sin JS) */
@media (min-width: 861px){
  .nx-subnav{
    list-style:none;
    position:absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 230px;
    margin: 0;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid var(--nx-line);
    background: var(--nx-surface);
    box-shadow: var(--nx-shadow-soft);
    display:none;
  }
  .nx-nav__item.has-children:hover > .nx-subnav,
  .nx-nav__item.has-children:focus-within > .nx-subnav{
    display:block;
  }
  .nx-subnav__link{
    display:block;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration:none;
    color: var(--nx-muted);
    transition: background .15s ease, color .15s ease;
  }
  .nx-subnav__link:hover{
    background: var(--nx-surface-2);
    color: var(--nx-text);
  }
  .nx-subtoggle{ display:none; }
}

/* Mobile panel */
.nx-mobile{
  border-top: 1px solid var(--nx-line);
  background: rgba(255,255,255,.95);
  box-shadow: 0 20px 60px rgba(2,6,23,.14);
}
@supports (backdrop-filter: blur(10px)){
  .nx-mobile{ backdrop-filter: blur(18px) saturate(140%); }
}
.nx-mobile__inner{ padding: 14px 0 18px; }
.nx-mobile__top{ display:flex; align-items:center; justify-content:space-between; padding: 8px 0 10px; }
.nx-mobile__title{ font-family: var(--nx-font-display); font-weight: 800; letter-spacing:.02em; }

.nx-x{
  width:44px; height:44px;
  border-radius: var(--nx-r12);
  border:1px solid var(--nx-line2);
  background: var(--nx-surface);
  color: var(--nx-text);
  box-shadow: var(--nx-shadow-soft);
  cursor:pointer;
}

.nx-nav-mobile .nx-nav__list{ flex-direction: column; align-items: stretch; gap: 8px; }
.nx-nav-mobile .nx-nav__link{
  width:100%;
  padding: 12px 12px;
  border-radius: var(--nx-r16);
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
}

.nx-subtoggle{
  display:none;
  border:none;
  background: transparent;
  padding: 10px;
  border-radius: var(--nx-r12);
  cursor:pointer;
}
.nx-caret{
  width: 10px; height: 10px;
  display:inline-block;
  border-right: 2px solid var(--nx-muted2);
  border-bottom: 2px solid var(--nx-muted2);
  transform: rotate(45deg);
}
.nx-subnav{
  list-style:none;
  margin: 6px 0 0;
  padding: 10px;
  border-radius: var(--nx-r16);
  border: 1px solid var(--nx-line);
  background: var(--nx-surface-2);
  display:none;
}
.nx-nav__item.is-open > .nx-subnav{ display:block; }

.nx-hide-mobile{ display:inline-flex; }
.nx-lang--mobile{ margin-top: 12px; display:inline-flex; }

@media (max-width: 860px){
  .nx-hide-mobile{ display:none; }
  .nx-burger{ display:inline-flex; align-items:center; justify-content:center; flex-direction: column; }
  .nx-brand{ min-width: 0; }
  .nx-subtoggle{ display:inline-flex; }
}

/* =========================
   Base Components (Clean)
   ========================= */
.nx-section{ padding: 64px 0; }
.nx-title{
  margin: 0 0 10px;
  font-family: var(--nx-font-display);
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: .01em;
}
.nx-lead{
  margin: 0;
  color: var(--nx-muted2);
  font-size: 15px;
  line-height: 1.7;
  max-width: 72ch;
}

.nx-card{
  background: var(--nx-surface);
  border: 1px solid var(--nx-line);
  border-radius: var(--nx-r22);
  box-shadow: var(--nx-shadow-soft);
}
.nx-card--glow:hover{
  box-shadow: var(--nx-shadow);
  border-color: rgba(37,99,235,.22);
  transition: box-shadow .18s ease, border-color .18s ease;
}

.nx-btn{
  display:inline-flex; align-items:center; justify-content:center; gap: 8px;
  padding: 10px 16px;
  border-radius: var(--nx-r999);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration:none;
  border: 1px solid transparent;
  cursor:pointer;
  user-select:none;
  transition: transform .12s ease, filter .16s ease, box-shadow .16s ease, background .16s ease;
}

.nx-btn--primary{
  background: var(--nx-primary);
  color: #fff;
  box-shadow: 0 12px 28px rgba(2,6,23,.18);
}
.nx-btn--primary:hover{ filter: brightness(1.05); transform: translateY(-1px); }

.nx-btn--outline{
  background: transparent;
  color: var(--nx-primary);
  border-color: var(--nx-line2);
}
.nx-btn--outline:hover{
  background: var(--nx-surface-2);
}

.nx-grid{ display:grid; gap: 16px; }
@media (min-width: 900px){
  .nx-grid--3{ grid-template-columns: repeat(3, 1fr); }
  .nx-grid--4{ grid-template-columns: repeat(4, 1fr); }
}

/* =========================
   Footer (Light / Minimal)
   ========================= */
.neo-footer{
  position: relative;
  background-color: #ffffff;
  color: var(--nf-text-main);
  padding: 72px 0 26px;
  font-size: 15px;
  border-top: 1px solid var(--nf-border);
}
.neo-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* glow apagado, porque ya vivimos suficiente sci-fi */
.neo-footer__glow{ display:none; }

.neo-footer__main{
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 52px;
}

.neo-logo{ display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.neo-logo__dot{
  width: 8px; height: 8px;
  background: var(--nx-primary);
  border-radius: 50%;
}
.neo-logo__text{
  font-family: var(--nx-font-display);
  font-weight: 700;
  font-size: 1.05rem;
}
.neo-desc{
  color: var(--nf-text-muted);
  line-height: 1.7;
  margin-bottom: 22px;
  font-weight: 400;
}

.neo-social{ display:flex; gap: 10px; }
.neo-social__link{
  width: 36px; height: 36px;
  
 
  display:flex; align-items:center; justify-content:center;
  color: var(--nf-text-muted);
  transition: transform .2s ease, background .2s ease, color .2s ease;
  background: var(--nx-surface);
}
.neo-social__link:hover{
  transform: translateY(-2px);
 
}

.neo-heading{
  font-size: .9rem;
  font-weight: 700;
  color: var(--nx-text);
  margin-bottom: 18px;
}
.neo-list{
  list-style:none; padding:0; margin:0;
  display:flex; flex-direction:column; gap: 10px;
}
.neo-list a{
  text-decoration:none;
  color: var(--nf-text-muted);
  font-weight: 500;
  transition: color .15s ease, transform .15s ease;
  display:inline-block;
}
.neo-list a:hover{
  color: var(--nx-text);
  transform: translateX(3px);
}

.neo-glass-card{
  background: var(--nx-surface);
  border: 1px solid var(--nf-border);
  padding: 22px;
  border-radius: 16px;
  box-shadow: var(--nx-shadow-soft);
}
.neo-text-sm{
  font-size: .88rem;
  color: var(--nf-text-muted);
  margin-bottom: 14px;
}

.neo-btn-shine{
  display:inline-flex; align-items:center; gap: 8px;
  background: var(--nx-primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 700;
  font-size: .9rem;
  transition: transform .15s ease, filter .15s ease;
  margin: 10px 0px;
}
.neo-btn-shine:hover{ transform: translateY(-1px); filter: brightness(1.05); }

.neo-meta-contact{
  display:flex; flex-direction:column; gap: 4px;
  font-size: .85rem;
  color: var(--nf-text-muted);
  border-top: 1px solid var(--nf-border);
  padding-top: 14px;
}
.neo-meta-contact a{ color: var(--nf-text-muted); text-decoration:none; }
.neo-meta-contact a:hover{ color: var(--nx-text); }

.neo-footer__bottom{
  display:flex; align-items:center; justify-content:space-between;
  padding-top: 22px;
  border-top: 1px solid var(--nf-border);
  color: var(--nf-text-muted);
  font-size: .85rem;
  font-weight: 500;
}
.neo-footer__line{
  flex-grow: 1;
  height: 1px;
  background: var(--nf-border);
  margin: 0 24px;
  opacity: .8;
}

@media (max-width: 900px){
  .neo-footer__main{ grid-template-columns: 1fr 1fr; }
  .neo-footer__cta-col{ grid-column: span 2; }
}
@media (max-width: 600px){
  .neo-footer__main{ display:flex; flex-direction:column; gap: 34px; }
  .neo-footer__cta-col{ order: -1; }
  .neo-footer__bottom{ flex-direction:column; gap: 10px; text-align:center; }
  .neo-footer__line{ display:none; }
}



/*nuevos*/
.cat-header-modern { text-align: center; padding: 60px 20px 40px; background: radial-gradient(circle at top, #eff6ff 0%, #fff 100%); }
.cat-tag { display: inline-block; font-size: 11px; font-weight: 800; color: var(--acc-accent); background: rgba(37,99,235,0.1); padding: 6px 14px; border-radius: 99px; margin-bottom: 15px; text-transform: uppercase; }
.cat-title { font-size: 42px; font-weight: 900; color: var(--acc-primary); margin: 0 0 10px; }
.cat-subtitle { font-size: 16px; color: #64748b; margin: 0 auto; max-width: 500px; }