/* ═══════════════════════════════════════════
   ANDEAN PUBLISHING — Shared Styles
   Paleta oficial v8:
   Publishing: #1666E8 (cobalto) · #FF9500 (solar) · #E83060 (rosa)
   Library:    #6EC14A · #3d8f2a
   Journals:   #4A9ED4 · #2d6a9f
   AJES #D94F4F · AJHS #20B2AA · AJEL #C9A227 · AJSS #7C5CBF
═══════════════════════════════════════════ */
:root {
  --cobalt:    #1666E8;  --cobalt-dk: #1050C0;  --cobalt-lt: #D0E2FF;
  --solar:     #FF9500;  --solar-lt:  #FFD088;
  --rose:      #E83060;
  --verde:     #6EC14A;  --verde-dk:  #3d8f2a;  --verde-lt:  #C8EDB0;
  --azul:      #4A9ED4;  --azul-dk:   #2d6a9f;  --azul-lt:   #C8E4F4;
  --ajes:      #D94F4F;  --ajes-dk:   #A83030;
  --ajhs:      #20B2AA;  --ajhs-dk:   #158A88;
  --ajel:      #C9A227;  --ajel-dk:   #8F6F0F;
  --ajss:      #7C5CBF;  --ajss-dk:   #513A8A;
  --navy:      #0D2340;  --navy2:     #1A3A5C;
  --cream:     #F7F4EE;  --sand:      #EDE8DF;
  --text:      #1C1C1C;  --muted:     #5A6070;
  --white:     #FFFFFF;
  --r: 4px; --rlg: 12px;
  --sh:   0 4px 24px rgba(13,35,64,.10);
  --shlg: 0 12px 48px rgba(13,35,64,.18);
  --ease: 0.32s cubic-bezier(.4,0,.2,1);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'DM Sans', sans-serif; color: var(--text); background: var(--white); line-height: 1.7; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* TYPE */
.serif { font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1.1; letter-spacing: -.01em; }
.mono  { font-family: 'DM Mono', monospace; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 500; }
.xl  { font-size: clamp(2.8rem, 6vw, 5.5rem); }
.lg  { font-size: clamp(2rem, 4vw, 3.2rem); }
.md  { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }

/* LAYOUT */
.wrap    { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.wrap-xl { max-width: 1400px; margin: 0 auto; padding: 0 2rem; }
.sec     { padding: 88px 0; }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.5rem; border-radius: var(--r); font-weight: 500; font-size: .88rem; letter-spacing: .02em; cursor: pointer; border: none; transition: all var(--ease); font-family: 'DM Sans', sans-serif; }
.btn-lg  { padding: .9rem 2rem; font-size: .95rem; }
.btn-cobalt { background: var(--cobalt); color: #fff; }
.btn-cobalt:hover { background: var(--cobalt-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,102,232,.4); }
.btn-solar  { background: var(--solar); color: #fff; }
.btn-solar:hover  { background: #e08000; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,149,0,.4); }
.btn-verde  { background: var(--verde); color: #fff; }
.btn-verde:hover  { background: var(--verde-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(110,193,74,.35); }
.btn-ghost  { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.4); }
.btn-ghost:hover  { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-outline { background: transparent; color: var(--cobalt); border: 1.5px solid var(--cobalt); }
.btn-outline:hover { background: var(--cobalt); color: #fff; }

/* ════════════════ NAV ════════════════ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; transition: background var(--ease), box-shadow var(--ease); }
.nav.on { background: rgba(13,35,64,.97); backdrop-filter: blur(12px); box-shadow: 0 2px 32px rgba(0,0,0,.25); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 68px; padding: 0 2rem; max-width: 1400px; margin: 0 auto; }

/* Logo horizontal SVG en el nav — se escala proporcionalmente */
.nav-logo { display: flex; align-items: center; }
.nav-logo svg { display: block; }

.nav-links { display: flex; align-items: center; gap: 2.2rem; }
.nav-links a { color: rgba(255,255,255,.75); font-size: .87rem; font-weight: 500; transition: color var(--ease); position: relative; padding-bottom: 2px; }
.nav-links a::after { content: ''; position: absolute; bottom: -3px; left: 0; right: 0; height: 1px; background: var(--solar); transform: scaleX(0); transition: transform var(--ease); }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-cta { display: flex; gap: .75rem; align-items: center; }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: #fff; border-radius: 2px; }
@media(max-width:960px) { .nav-links, .nav-cta { display: none; } .hamburger { display: flex; } }

/* MOBILE MENU */
.mmenu { position: fixed; inset: 0; background: var(--navy); z-index: 999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.75rem; opacity: 0; pointer-events: none; transition: opacity var(--ease); }
.mmenu.open { opacity: 1; pointer-events: all; }
.mmenu a { font-family: 'Cormorant Garamond', serif; font-size: 2.3rem; color: #fff; font-weight: 300; transition: color var(--ease); }
.mmenu a:hover { color: var(--solar); }
.mclose { position: absolute; top: 1.5rem; right: 2rem; font-size: 2rem; color: #fff; cursor: pointer; background: none; border: none; line-height: 1; }

/* ════════════════ PAGE HERO (páginas interiores) ════════════════ */
.page-hero { background: var(--navy); padding: 128px 0 72px; position: relative; overflow: hidden; }
.page-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 70% 60% at 80% 40%, rgba(22,102,232,.25) 0%, transparent 65%), radial-gradient(ellipse 40% 35% at 10% 80%, rgba(255,149,0,.08) 0%, transparent 55%); }
.page-hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px); background-size: 72px 72px; }
.page-hero-body { position: relative; z-index: 2; }
.page-hero-eye { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.page-hero-line { width: 32px; height: 1px; background: var(--solar); }
.page-hero h1 { color: #fff; margin-bottom: 1rem; max-width: 720px; }
.page-hero p { color: rgba(255,255,255,.65); max-width: 560px; font-size: 1.05rem; line-height: 1.75; }

/* ════════════════ EYEBROW ════════════════ */
.eyebrow { display: flex; align-items: center; gap: .75rem; margin-bottom: 1.25rem; }
.ey-line { width: 32px; height: 1px; background: var(--solar); flex-shrink: 0; }

/* ════════════════ STATS BAR ════════════════ */
.statsbar { background: #0a1828; border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06); padding: 1.1rem 0; }
.stats-row { display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; align-items: center; }
.sn { font-family: 'Cormorant Garamond', serif; font-size: 1.9rem; font-weight: 700; color: #fff; line-height: 1; text-align: center; }
.sl { font-size: .68rem; color: rgba(255,255,255,.65); letter-spacing: .06em; text-transform: uppercase; margin-top: 2px; text-align: center; }
.sdiv { width: 1px; height: 34px; background: rgba(255,255,255,.2); }
@media(max-width:640px) { .stats-row { gap: 2rem; } .sdiv { display: none; } }

/* ════════════════ CTA BAND ════════════════ */
.ctaband { background: var(--navy); padding: 4.5rem 0; text-align: center; position: relative; overflow: hidden; border-top: 3px solid var(--cobalt); }
.ctaband::before { content: 'ANDEAN'; position: absolute; font-family: 'Cormorant Garamond', serif; font-size: 13rem; font-weight: 700; color: rgba(22,102,232,.05); top: 50%; left: 50%; transform: translate(-50%,-50%); white-space: nowrap; pointer-events: none; letter-spacing: .1em; }
.ctaband h2 { color: #fff; margin-bottom: .875rem; position: relative; }
.ctaband p  { color: rgba(255,255,255,.58); max-width: 480px; margin: 0 auto 2.25rem; position: relative; }
.ctabtns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ════════════════ GUIDE ROWS ════════════════ */
.gtable { display: flex; flex-direction: column; gap: .7rem; }
.grow { display: grid; grid-template-columns: 2fr 3fr; border-radius: var(--r); overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,.07); transition: transform var(--ease); }
.grow:hover { transform: translateX(4px); }
.grow-l { padding: .875rem 1.25rem; background: var(--navy); display: flex; align-items: center; }
.grow-l span { font-size: .84rem; color: rgba(255,255,255,.84); line-height: 1.45; font-weight: 300; }
.grow-r { padding: .875rem 1.25rem; background: #fff; display: flex; align-items: center; gap: .75rem; }
.garr { font-size: 1rem; flex-shrink: 0; color: var(--cobalt); }
.grow-r span { font-size: .84rem; color: var(--muted); line-height: 1.45; }
.grow-r strong { color: var(--navy); }

/* ════════════════ TRAINING ════════════════ */
.witem { display: flex; gap: 1rem; align-items: flex-start; padding: 1.2rem 1.25rem; border-radius: var(--r); border: 1px solid var(--sand); transition: all var(--ease); cursor: pointer; }
.witem:hover { border-color: var(--cobalt-lt); background: var(--cream); transform: translateX(4px); }
.wnum  { font-family: 'DM Mono', monospace; font-size: .68rem; color: var(--cobalt); font-weight: 500; padding-top: 2px; flex-shrink: 0; }
.wtitle { font-weight: 500; font-size: .9rem; color: var(--navy); margin-bottom: .22rem; }
.wdesc  { font-size: .8rem; color: var(--muted); }
.events-panel { background: var(--navy); border-radius: var(--rlg); padding: 2rem; }
.events-panel h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.35rem; font-weight: 600; color: #fff; margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.eitem { padding: .875rem 0; border-bottom: 1px solid rgba(255,255,255,.07); cursor: pointer; transition: all var(--ease); }
.eitem:last-child { border-bottom: none; }
.eitem:hover { padding-left: 8px; }
.edate  { font-family: 'DM Mono', monospace; font-size: .61rem; letter-spacing: .08em; color: var(--solar); margin-bottom: .22rem; }
.etitle { font-size: .86rem; color: rgba(255,255,255,.84); font-weight: 500; margin-bottom: .15rem; }
.etype  { font-size: .73rem; color: rgba(255,255,255,.35); }

/* ════════════════ NEWS ════════════════ */
.ncard { background: #fff; border-radius: var(--rlg); overflow: hidden; display: flex; flex-direction: column; transition: transform var(--ease), box-shadow var(--ease); cursor: pointer; }
.ncard:hover { transform: translateY(-4px); box-shadow: var(--shlg); }
.nimg { display: flex; align-items: center; justify-content: center; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-style: italic; color: rgba(255,255,255,.28); }
.ni-j { background: #1a3a6e; }
.ni-l { background: #2d6e2a; }
.ni-g { background: #3a3a3a; }
.nbody { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.ntag { display: inline-block; padding: .17rem .6rem; border-radius: 100px; font-size: .65rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: .7rem; }
.nt-j { background: var(--azul-lt); color: var(--azul-dk); }
.nt-l { background: var(--verde-lt); color: var(--verde-dk); }
.nt-g { background: var(--sand); color: var(--muted); }
.ntitle { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--navy); line-height: 1.35; margin-bottom: .4rem; flex: 1; }
.ndesc  { font-size: .86rem; color: var(--muted); margin-bottom: .75rem; }
.ndate  { font-size: .73rem; color: var(--muted); margin-top: auto; }

/* ════════════════ CONTACT ════════════════ */
.ctitem { display: flex; align-items: center; gap: 1rem; padding: .875rem 0; border-bottom: 1px solid var(--sand); }
.ctitem:last-child { border-bottom: none; }
.cticon { width: 40px; height: 40px; background: var(--cobalt); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.cticon svg { width: 16px; height: 16px; fill: #fff; }
.ct-lbl { font-size: .84rem; font-weight: 600; color: var(--navy); display: block; margin-bottom: 1px; }
.ct-val { font-size: .81rem; color: var(--muted); }
.ctform { background: #fff; border-radius: var(--rlg); padding: 2.5rem; box-shadow: var(--sh); }
.ctform h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.4rem; font-weight: 600; color: var(--navy); margin-bottom: 1.5rem; }
.cf-body { display: flex; flex-direction: column; gap: 1rem; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fgrp { display: flex; flex-direction: column; gap: .35rem; }
.fgrp label { font-size: .79rem; font-weight: 500; color: var(--navy); letter-spacing: .03em; }
.fgrp input, .fgrp select, .fgrp textarea { padding: .75rem 1rem; border: 1.5px solid var(--sand); border-radius: var(--r); font-family: 'DM Sans', sans-serif; font-size: .87rem; color: var(--text); background: #fff; transition: border-color var(--ease); outline: none; resize: vertical; }
.fgrp input:focus, .fgrp select:focus, .fgrp textarea:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px rgba(22,102,232,.1); }

/* ════════════════ FOOTER ════════════════ */
footer { background: var(--navy); padding: 4rem 0 2rem; }
.ft-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.ft-desc { font-size: .85rem; color: rgba(255,255,255,.44); line-height: 1.65; margin-top: .875rem; margin-bottom: 1.5rem; }
.ft-social { display: flex; gap: .75rem; }
.soc { width: 36px; height: 36px; border-radius: 6px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; font-family: 'DM Mono', monospace; font-size: .6rem; color: rgba(255,255,255,.4); transition: all var(--ease); }
.soc:hover { background: rgba(22,102,232,.2); border-color: rgba(22,102,232,.4); color: var(--cobalt-lt); }
.ft-col h4 { font-family: 'DM Mono', monospace; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cobalt-lt); margin-bottom: 1.25rem; }
.ft-col ul { display: flex; flex-direction: column; gap: .6rem; }
.ft-col ul a { font-size: .84rem; color: rgba(255,255,255,.42); transition: color var(--ease); }
.ft-col ul a:hover { color: #fff; }
.ft-bot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.ft-copy { font-size: .76rem; color: rgba(255,255,255,.25); }
.ft-doms { display: flex; gap: 1.5rem; }
.ft-dom { font-family: 'DM Mono', monospace; font-size: .67rem; color: rgba(255,255,255,.25); letter-spacing: .06em; transition: color var(--ease); }
.ft-dom:hover { color: rgba(255,255,255,.6); }

/* ════════════════ RESPONSIVE ════════════════ */
@media(max-width:1024px) { .ft-top { grid-template-columns: 1fr 1fr; } }
@media(max-width:768px)  { .sec { padding: 60px 0; } .ft-top { grid-template-columns: 1fr; } .ft-bot { flex-direction: column; text-align: center; } .frow { grid-template-columns: 1fr; } }
@media(max-width:480px)  { .wrap, .wrap-xl { padding: 0 1.25rem; } }
