/* ============================================================
   WINFAC — Estilos globales compartidos
   Todas las páginas del sitio incluyen este archivo
   ============================================================ */

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

/* ===== VARIABLES ===== */
:root {
  --navy:        #051c3f;
  --navy-mid:    #0a2d60;
  --blue:        #1351d8;
  --blue-light:  #2d73ff;
  --cyan:        #00c6ff;
  --accent:      #f59e0b;
  --accent-2:    #10b981;
  --text:        #1a1a2e;
  --text-muted:  #5a6a7e;
  --bg:          #f4f7fd;
  --card:        #ffffff;
  --border:      #dce6f5;
  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --shadow-sm:   0 2px 8px rgba(5,28,63,.07);
  --shadow-md:   0 8px 32px rgba(5,28,63,.12);
  --shadow-lg:   0 20px 60px rgba(5,28,63,.18);
  --font-head:   'Syne', sans-serif;
  --font-body:   'Nunito', sans-serif;
  --transition:  .3s cubic-bezier(.4,0,.2,1);
  --max-w:       1100px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { opacity: .85; }

/* ===== DEADLINE BANNER ===== */
.deadline-banner {
  background: linear-gradient(90deg, #7c3aed, #1351d8);
  color: #fff;
  text-align: center;
  padding: .65rem 1rem;
  font-size: .88rem;
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: .01em;
  position: relative;
  z-index: 100;
}
.deadline-banner .pill {
  display: inline-block;
  background: var(--accent);
  color: #000;
  padding: .15rem .6rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;
  margin-right: .5rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(5,28,63,.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 0 2rem;
}
.navbar-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 62px;
}
.navbar-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.navbar-brand img { height: 36px; width: auto; border-radius: 6px; }
.navbar-brand span { font-family: var(--font-head); font-size: 1.35rem; font-weight: 800; color: #fff; }

/* Nav links */
.nav-links { display: flex; align-items: center; gap: .15rem; list-style: none; }
.nav-links > li { position: relative; }
.nav-links a {
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  padding: .4rem .7rem;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: .25rem;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links > li:hover > a { background: rgba(255,255,255,.1); color: #fff; opacity: 1; }
.nav-links .nav-cta { background: var(--blue-light) !important; color: #fff !important; }
.nav-links .nav-cta:hover { background: var(--cyan) !important; color: var(--navy) !important; }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: '▾'; font-size: .7rem; margin-left: .2rem; opacity: .7; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + .5rem);
  left: 0;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 300;
}
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu { display: block; }
.dropdown-menu a {
  display: block;
  padding: .75rem 1.25rem;
  color: rgba(255,255,255,.82) !important;
  font-size: .88rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  border-radius: 0;
  background: none !important;
}
.dropdown-menu a:hover { background: rgba(255,255,255,.08) !important; color: #fff !important; padding-left: 1.5rem; }
.dropdown-menu a:last-child { border-bottom: none; }
.dropdown-menu .dd-icon { font-size: 1rem; flex-shrink: 0; }
.dropdown-menu a { display: flex; align-items: center; gap: .6rem; }

/* Hamburger / Mobile */
.hamburger { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: var(--transition); }
.mobile-menu { display: none; background: var(--navy); padding: 1rem 1.5rem 1.5rem; flex-direction: column; gap: .35rem; }
.mobile-menu a { color: rgba(255,255,255,.85); text-decoration: none; font-size: .92rem; font-weight: 600; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-menu .mobile-section-label { color: var(--cyan); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; padding: .75rem 0 .2rem; border-bottom: none; }
.mobile-menu.open { display: flex; }

@media(max-width:900px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0d1f4b 100%);
  padding: 4rem 2rem 3.5rem;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(0,198,255,.12) 0%, transparent 70%);
  top: -150px; right: -100px;
  pointer-events: none;
}
.page-hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; z-index: 1; }
.page-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(0,198,255,.12);
  border: 1px solid rgba(0,198,255,.3);
  color: var(--cyan);
  padding: .3rem 1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.page-hero h1 .accent { color: var(--cyan); }
.page-hero p {
  font-size: 1.08rem;
  color: rgba(255,255,255,.72);
  max-width: 680px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,255,255,.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--cyan); }
.breadcrumb .sep { opacity: .4; }

/* ===== CONTENT LAYOUT ===== */
.content-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 3rem;
  align-items: start;
}
.content-main { min-width: 0; }
.content-sidebar { position: sticky; top: 80px; }

@media(max-width:900px) {
  .content-wrap { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
}

/* ===== ARTICLE TYPOGRAPHY ===== */
.article h2 {
  font-family: var(--font-head);
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2.5rem 0 .9rem;
  padding-bottom: .6rem;
  border-bottom: 2px solid var(--border);
  line-height: 1.25;
}
.article h2:first-child { margin-top: 0; }
.article h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin: 1.75rem 0 .6rem;
}
.article h4 {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin: 1.25rem 0 .4rem;
}
.article p { margin-bottom: 1rem; color: var(--text); font-size: .97rem; }
.article p:last-child { margin-bottom: 0; }
.article ul, .article ol { margin: .75rem 0 1.25rem 1.5rem; color: var(--text); font-size: .97rem; }
.article li { margin-bottom: .5rem; }
.article strong { color: var(--navy); }
.article a { color: var(--blue); font-weight: 600; }

/* Callout boxes */
.callout {
  border-radius: var(--radius-md);
  padding: 1.35rem 1.5rem;
  margin: 1.75rem 0;
  border-left: 4px solid;
  font-size: .95rem;
}
.callout-info { background: #eff6ff; border-color: var(--blue-light); color: #1e3a8a; }
.callout-warn { background: #fffbeb; border-color: var(--accent); color: #78350f; }
.callout-success { background: #f0fdf4; border-color: var(--accent-2); color: #14532d; }
.callout-dark { background: var(--navy); border-color: var(--cyan); color: rgba(255,255,255,.85); }
.callout strong { display: block; margin-bottom: .3rem; font-size: 1rem; }

/* Comparison table */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 1.5rem 0;
  font-size: .92rem;
  box-shadow: var(--shadow-sm);
}
.comp-table th {
  background: var(--navy);
  color: #fff;
  padding: .9rem 1.1rem;
  text-align: left;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.comp-table td {
  padding: .85rem 1.1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.comp-table tr:nth-child(even) td { background: #f8faff; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table .label { font-weight: 700; color: var(--navy); min-width: 160px; }
.yes { color: var(--accent-2); font-weight: 700; }
.no { color: #ef4444; font-weight: 700; }
.partial { color: var(--accent); font-weight: 700; }

/* Info cards grid */
.info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.1rem; margin: 1.5rem 0; }
.info-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  transition: var(--transition);
}
.info-card:hover { border-color: var(--blue-light); box-shadow: var(--shadow-sm); }
.info-card .ic-icon { font-size: 1.75rem; margin-bottom: .75rem; }
.info-card h4 { font-family: var(--font-head); font-size: .95rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.info-card p { font-size: .88rem; color: var(--text-muted); }

/* Timeline */
.timeline { position: relative; padding-left: 2rem; margin: 1.5rem 0; }
.timeline::before { content: ''; position: absolute; left: .6rem; top: 0; bottom: 0; width: 2px; background: var(--border); }
.timeline-item { position: relative; margin-bottom: 1.75rem; }
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: .3rem;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--blue);
}
.timeline-item .tl-date { font-size: .78rem; font-weight: 800; color: var(--blue); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25rem; }
.timeline-item h4 { font-family: var(--font-head); font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: .35rem; }
.timeline-item p { font-size: .9rem; color: var(--text-muted); }

/* Code block */
.code-block {
  background: #0d1b2a;
  border-radius: var(--radius-md);
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.25rem 0;
  font-family: 'Courier New', Courier, monospace;
  font-size: .84rem;
  line-height: 1.6;
  color: #a8d8ff;
  border: 1px solid rgba(255,255,255,.07);
}
.code-block .ck { color: #79b8ff; }   /* key */
.code-block .cv { color: #9ecbff; }   /* value string */
.code-block .cn { color: #f97583; }   /* number */
.code-block .cc { color: #6a737d; font-style: italic; } /* comment */

/* Highlight stat row */
.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5rem 0; }
.stat-item {
  flex: 1 1 140px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: var(--radius-md);
  padding: 1.25rem 1.1rem;
  text-align: center;
  color: #fff;
}
.stat-item .sn { font-family: var(--font-head); font-size: 2rem; font-weight: 800; color: var(--cyan); display: block; }
.stat-item .sl { font-size: .78rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .07em; }

/* ===== SIDEBAR ===== */
.sidebar-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  margin-bottom: 1.25rem;
}
.sidebar-card h4 { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--navy); margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--border); text-transform: uppercase; letter-spacing: .06em; }
.sidebar-toc { list-style: none; }
.sidebar-toc li { margin-bottom: .35rem; }
.sidebar-toc a { font-size: .88rem; color: var(--text-muted); text-decoration: none; display: block; padding: .25rem 0; border-left: 2px solid transparent; padding-left: .6rem; transition: var(--transition); }
.sidebar-toc a:hover { color: var(--blue); border-color: var(--blue); }
.sidebar-link {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .88rem;
  color: var(--blue);
  font-weight: 600;
  text-decoration: none;
  padding: .45rem 0;
  border-bottom: 1px solid var(--border);
}
.sidebar-link:last-child { border-bottom: none; }
.sidebar-link:hover { color: var(--navy); }
.sidebar-cta {
  display: block;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff;
  text-align: center;
  text-decoration: none;
  padding: .85rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .92rem;
  margin-top: 1rem;
  transition: var(--transition);
}
.sidebar-cta:hover { opacity: .9; transform: translateY(-1px); color: #fff; }

/* ===== FOOTER ===== */
footer {
  background: var(--navy);
  color: rgba(255,255,255,.55);
  font-size: .88rem;
}
.footer-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 2rem 2rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 2.5rem;
}
.footer-brand-col .fb-name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 800; color: #fff; margin-bottom: .5rem; }
.footer-brand-col p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.6; margin-bottom: 1rem; }
.footer-col h5 { font-family: var(--font-head); font-size: .85rem; font-weight: 700; color: rgba(255,255,255,.9); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .45rem; }
.footer-col a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .88rem; transition: var(--transition); }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 1.25rem 2rem;
  text-align: center;
  font-size: .82rem;
  color: rgba(255,255,255,.35);
  max-width: var(--max-w);
  margin: 0 auto;
}
@media(max-width:768px) {
  .footer-main { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media(max-width:500px) {
  .footer-main { grid-template-columns: 1fr; }
}

/* ===== SCROLL ANIMATIONS ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ===== UTILS ===== */
.section { padding: 4.5rem 2rem; }
.section-inner { max-width: var(--max-w); margin: 0 auto; }
.section-tag {
  display: inline-block;
  background: rgba(19,81,216,.1);
  color: var(--blue);
  border: 1px solid rgba(19,81,216,.18);
  padding: .3rem .9rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}
.section-title { font-family: var(--font-head); font-size: clamp(1.7rem,3.5vw,2.5rem); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: .9rem; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 640px; }
.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg, var(--blue-light), var(--cyan));
  color: var(--navy);
  padding: .8rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: .95rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,198,255,.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,198,255,.4); color: var(--navy); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 2px solid var(--border);
  color: var(--blue);
  padding: .78rem 1.75rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--blue-light); background: rgba(19,81,216,.04); color: var(--blue); }

/* ── HERO IMAGE FULL WIDTH ── */
.hero-banner-image {
  width: 100%;
  margin: 0;
  padding: 0;
  line-height: 0;
  background: var(--navy);
  overflow: hidden;
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.hero-banner-image img {
  display: block;
  width: 100%;
  height: clamp(220px, 34vw, 460px);
  margin: 0 auto;
  object-fit: cover;
  object-position: center top;
}

@media(max-width:900px) {
  .hero-banner-image img {
    height: clamp(180px, 42vw, 300px);
    object-position: center center;
  }
}

/* ── SEO INFO BLOCK ── */
.seo-info-section {
  background: var(--card);
  padding-top: 3.5rem;
  padding-bottom: 2.5rem;
}

.seo-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.seo-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.5rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.seo-box h2 {
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.seo-box p {
  font-size: .96rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.seo-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.seo-list li {
  position: relative;
  padding-left: 1.35rem;
  margin-bottom: .75rem;
  color: var(--text);
  font-size: .95rem;
  line-height: 1.6;
}

.seo-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 800;
}

.page-updated {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1rem 2rem 0;
  font-size: .84rem;
  color: var(--text-muted);
}

@media(max-width:900px) {
  .seo-info-grid {
    grid-template-columns: 1fr;
  }
}