/* ═══════════════════════════════════════════════════════
   ML CORPORATIVO — shared.css
   CSS compartido para todas las páginas del sitio.
   Para cambiar fuentes, colores o componentes globales
   (nav, footer, botones, etc.) edita SOLO este archivo.
═══════════════════════════════════════════════════════ */

/* ── FONT-FACE Gelica (sube gelica-bold.woff2 al servidor) ── */
@font-face {
  font-family: 'Gelica';
  src: url('gelica-bold.woff2') format('woff2'),
       url('gelica-bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ── VARIABLES ── */
:root {
  --gold:        #b39359;
  --gold-light:  #cdb07a;
  --gold-pale:   #f5eddc;
  --gold-dim:    #8e7547;
  --dark:        #0f0e0c;
  --dark-soft:   #1c1a16;
  --text:        #2a2822;
  --text-muted:  #5a5448;
  --text-dim:    #8a8070;
  --white:       #ffffff;
  --off-white:   #fdfbf7;
  --light:       #f5f2ec;
  --light-mid:   #ede8df;
  --border:      rgba(179,147,89,0.15);
  --border-dark: rgba(0,0,0,0.07);
  --shadow-sm:   0 4px 20px rgba(0,0,0,0.06);
  --shadow-md:   0 12px 40px rgba(0,0,0,0.10);
  --shadow-lg:   0 30px 60px rgba(0,0,0,0.14);
  --nav-h:       88px;
  --font-display: 'Gelica', 'Playfair Display', Georgia, serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--gold); color: var(--white); }
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--light); }
::-webkit-scrollbar-thumb { background: var(--gold); }
img { display: block; max-width: 100%; }
a { color: inherit; }

/* ── UTILIDADES ── */
.container    { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.container-sm { max-width: 920px;  margin: 0 auto; padding: 0 2.5rem; }
.section      { padding: 110px 0; }
.section--light { background: var(--off-white); }
.section--pale  { background: var(--light); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: 'DM Mono', monospace;
  font-size: 0.62rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--gold); }
.divider-gold { width: 48px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 1.5rem 0; }

/* ── BOTONES ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; text-decoration: none;
  transition: all 0.25s; cursor: pointer; border: none;
}
.btn--gold    { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn--outline { background: transparent; border: 1px solid rgba(255,255,255,0.4); color: var(--white); }
.btn--outline:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark    { background: var(--dark); color: var(--white); }
.btn--dark:hover { background: var(--dark-soft); transform: translateY(-2px); }

/* ── SECTION HEADINGS ── */
.section-heading { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 800; line-height: 1.1; color: var(--dark); }
.section-heading em { font-style: italic; color: var(--gold); }
.section-body { font-size: 0.95rem; color: var(--text-muted); line-height: 1.8; margin-top: 1.5rem; }

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(253,251,247,0.96);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-dark);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: var(--shadow-sm); }
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }
.nav__logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav__logo-sep { width: 1px; height: 30px; background: var(--border-dark); }
.nav__logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav__logo-name { font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; color: var(--dark); letter-spacing: 0.04em; }
.nav__logo-sub  { font-family: 'DM Mono', monospace; font-size: 0.55rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin-top: 2px; }
.nav__menu { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
.nav__menu > li { position: relative; }
.nav__menu > li > a { display: flex; align-items: center; gap: 5px; padding: 8px 14px; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: var(--text-muted); transition: color 0.2s; white-space: nowrap; }
.nav__menu > li > a:hover, .nav__menu > li > a.active { color: var(--gold); }
.nav__menu > li > a .arrow { font-size: 0.5rem; transition: transform 0.25s; display: inline-block; }
.nav__menu > li:hover > a .arrow { transform: rotate(180deg); }
.dropdown { position: absolute; top: calc(100% + 8px); left: 0; background: var(--white); min-width: 220px; border: 1px solid var(--border-dark); box-shadow: var(--shadow-md); list-style: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(6px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
.nav__menu > li:hover > .dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
.dropdown > li { position: relative; border-bottom: 1px solid rgba(0,0,0,0.04); }
.dropdown > li:last-child { border-bottom: none; }
.dropdown > li > a { display: flex; align-items: center; justify-content: space-between; padding: 13px 20px; font-size: 0.82rem; font-weight: 400; text-decoration: none; color: var(--text); transition: color 0.2s, background 0.2s; }
.dropdown > li > a:hover { color: var(--gold); background: var(--light); }
.submenu { position: absolute; left: 100%; top: -1px; background: var(--white); min-width: 220px; border: 1px solid var(--border-dark); box-shadow: var(--shadow-md); list-style: none; opacity: 0; visibility: hidden; pointer-events: none; transform: translateX(6px); transition: opacity 0.25s, transform 0.25s, visibility 0.25s; }
.dropdown > li:hover > .submenu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(0); }
.submenu li { border-bottom: 1px solid rgba(0,0,0,0.04); }
.submenu li:last-child { border-bottom: none; }
.submenu a { display: block; padding: 13px 20px; font-size: 0.82rem; font-weight: 400; text-decoration: none; color: var(--text); transition: color 0.2s, background 0.2s; }
.submenu a:hover, .submenu a.current { color: var(--gold); background: var(--light); }
.submenu a.nom-badge::after { content: attr(data-nom); display: inline-block; margin-left: 8px; font-family: 'DM Mono', monospace; font-size: 0.55rem; background: var(--gold-pale); color: var(--gold-dim); padding: 2px 6px; }
.nav__cta { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; background: var(--gold); color: var(--white); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; transition: background 0.25s, transform 0.15s; white-space: nowrap; margin-left: 0.5rem; flex-shrink: 0; }
.nav__cta:hover { background: var(--gold-dim); transform: translateY(-1px); }
.nav__hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav__hamburger span { display: block; width: 22px; height: 1.5px; background: var(--dark); transition: all 0.3s; }

/* Mobile menu */
.mobile-menu { display: none; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999; background: var(--white); border-bottom: 1px solid var(--border-dark); padding: 2rem 2.5rem; flex-direction: column; gap: 0; box-shadow: var(--shadow-md); }
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: 14px 0; font-size: 0.9rem; font-weight: 500; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--border-dark); transition: color 0.2s; }
.mobile-menu a:hover { color: var(--gold); }
.mobile-menu a.sub { padding-left: 1.5rem; font-size: 0.82rem; color: var(--text-muted); }
.mobile-menu a.subsub { padding-left: 3rem; font-size: 0.78rem; color: var(--text-dim); }

/* ── TICKER ── */
.ticker-bar { background: var(--gold); overflow: hidden; white-space: nowrap; padding: 12px 0; }
.ticker-track { display: inline-flex; gap: 3rem; animation: ticker-scroll 30s linear infinite; }
.ticker-item { display: inline-flex; align-items: center; gap: 12px; font-family: 'DM Mono', monospace; font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.9); }
.ticker-item::before { content: '◆'; font-size: 0.4rem; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── FOOTER ── */
.footer { background: #0c0b09; border-top: 1px solid rgba(179,147,89,0.12); padding: 72px 0 0; }
.footer__main { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.05); }
.footer__brand img { height: 54px; width: auto; margin-bottom: 1.25rem; }
.footer__brand-tagline { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-dim); margin-bottom: 1rem; }
.footer__brand-desc { font-size: 0.82rem; color: rgba(255,255,255,0.3); line-height: 1.75; max-width: 280px; }
.footer__col-title { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.5rem; }
.footer__links { list-style: none; display: flex; flex-direction: column; gap: 0.8rem; }
.footer__links a, .footer__links span { font-size: 0.83rem; color: rgba(255,255,255,0.3); text-decoration: none; transition: color 0.2s; display: flex; align-items: center; gap: 8px; }
.footer__links a:hover { color: var(--gold); }
.footer__links .sub-link { padding-left: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.2); }
.footer__links .sub-link:hover { color: var(--gold-dim); }
.footer__links .sub-link::before { content: '›'; color: var(--gold-dim); }
.footer__contact-item { margin-bottom: 0.85rem; }
.footer__contact-item strong { display: block; font-family: 'DM Mono', monospace; font-size: 0.55rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-dim); font-weight: 400; margin-bottom: 3px; }
.footer__contact-item span { font-size: 0.82rem; color: rgba(255,255,255,0.3); }
.footer__bottom { padding: 22px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; }
.footer__copy { font-size: 0.72rem; color: rgba(255,255,255,0.2); }
.footer__legal { display: flex; gap: 2rem; list-style: none; }
.footer__legal a { font-size: 0.7rem; color: rgba(255,255,255,0.2); text-decoration: none; transition: color 0.2s; }
.footer__legal a:hover { color: var(--gold); }
.footer__dev { font-family: 'DM Mono', monospace; font-size: 0.58rem; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.15); }
.footer__dev strong { color: var(--gold-dim); }

/* ── WHATSAPP ── */
.wa-float { position: fixed; bottom: 2rem; right: 2rem; z-index: 998; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: white; display: flex; align-items: center; justify-content: center; text-decoration: none; box-shadow: 0 4px 20px rgba(37,211,102,0.4); transition: transform 0.25s, box-shadow 0.25s; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 28px rgba(37,211,102,0.5); }

/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s, transform 0.7s; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

/* ── NORM CARDS (compartidas) ── */
.norms-list { display: flex; flex-direction: column; gap: 1px; background: var(--border-dark); border: 1px solid var(--border-dark); }
.norm-card { background: var(--white); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem; padding: 2.25rem 2.5rem; text-decoration: none; color: inherit; transition: background 0.25s; position: relative; }
.norm-card::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); transform: scaleY(0); transition: transform 0.3s; transform-origin: bottom; }
.norm-card:hover { background: var(--off-white); }
.norm-card:hover::after { transform: scaleY(1); }
.norm-card__code { font-family: 'DM Mono', monospace; font-size: 0.62rem; letter-spacing: 0.15em; color: var(--gold-dim); white-space: nowrap; }
.norm-card__body h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--dark); margin-bottom: 4px; }
.norm-card__body p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }
.norm-card__arrow { width: 36px; height: 36px; border: 1px solid var(--border-dark); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 0.8rem; transition: border-color 0.2s, color 0.2s; }
.norm-card:hover .norm-card__arrow { border-color: var(--gold); color: var(--gold); }

/* ── CTA BAND ── */
.cta-band { background: var(--dark); padding: 80px 0; text-align: center; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(2rem, 3.5vw, 2.8rem); font-weight: 800; color: var(--white); margin-bottom: 1rem; }
.cta-band h2 em { font-style: italic; color: var(--gold-light); }
.cta-band p { color: rgba(255,255,255,0.5); font-size: 0.9rem; margin-bottom: 2.5rem; }

/* ═══════════════════════════════════════
   RESPONSIVE GLOBAL
═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer__main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --nav-h: 68px; }
  .nav__menu, .nav__cta { display: none; }
  .nav__hamburger { display: flex; }
  .nav__logo img { height: 36px !important; }
  .nav__logo-name { font-size: 0.82rem; }
  .nav__logo-sub  { font-size: 0.5rem; }
  .section { padding: 64px 0; }
  .container { padding: 0 1.25rem; }
  .norm-card { grid-template-columns: 1fr; gap: 0.5rem; padding: 1.5rem; }
  .norm-card__code { font-size: 0.58rem; }
  .norm-card__body h3 { font-size: 1.2rem; }
  .norm-card__arrow { display: none; }
  .footer__main { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .footer__legal { flex-wrap: wrap; gap: 1rem; }
}
