/* =============================================================
   UCEDA LEGAL — Sitio premium · Abogados y Notarios
   Estética: prestigio legal editorial · navy + dorado + papel cálido
   ============================================================= */

:root {
  /* Marca */
  --navy-900: #0a1326;
  --navy-800: #0e1b33;
  --navy-700: #15233f;
  --navy:     #363f68;
  --royal:    #4964c4;
  --royal-2:  #5d77d6;

  /* Dorado de prestigio */
  --gold:       #c2a45a;
  --gold-soft:  #d8be7e;
  --gold-deep:  #a8893f;

  /* Neutros */
  --ink:     #1b2030;
  --ink-2:   #3a4154;
  --muted:   #6c7488;
  --line:    #e6e2d6;
  --paper:   #f7f5ef;
  --paper-2: #fbfaf5;
  --white:   #ffffff;

  --shadow-sm: 0 2px 10px rgba(14, 27, 51, .06);
  --shadow:    0 18px 50px -20px rgba(14, 27, 51, .28);
  --shadow-gold: 0 18px 44px -18px rgba(168, 137, 63, .5);

  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Manrope", -apple-system, "Segoe UI", sans-serif;

  --container: 1200px;
  --r: 14px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--gold); color: var(--navy-900); }

/* ---------- Tipografía ---------- */
.serif { font-family: var(--serif); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; color: var(--navy-800); letter-spacing: -.01em; }

.kicker {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.kicker::before {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  display: inline-block;
}
.kicker.center::after {
  content: "";
  width: 34px; height: 1px;
  background: var(--gold);
  display: inline-block;
}

.section-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  margin: 1rem 0 1.1rem;
}
.section-title em { font-style: italic; color: var(--royal); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 60ch; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(70px, 9vw, 130px) 0; position: relative; }
.section--paper2 { background: var(--paper-2); }
.text-center { text-align: center; }
.center-head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.center-head .kicker { justify-content: center; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--sans); font-weight: 700; font-size: .92rem;
  padding: .95rem 1.7rem; border-radius: 50px;
  cursor: pointer; border: 1.5px solid transparent;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s, color .3s;
  letter-spacing: .01em; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold) 55%, var(--gold-deep));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 24px 50px -16px rgba(168,137,63,.62); }
.btn-ghost { background: transparent; border-color: rgba(255,255,255,.32); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.1); transform: translateY(-3px); }
.btn-ink { background: var(--navy-800); color: #fff; }
.btn-ink:hover { background: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow); }
.btn-outline-ink { border-color: var(--navy); color: var(--navy-800); }
.btn-outline-ink:hover { background: var(--navy-800); color: #fff; transform: translateY(-3px); }

/* ============================================================
   HEADER
   ============================================================ */
.topbar {
  background: var(--navy-900); color: rgba(255,255,255,.78);
  font-size: .82rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 18px; height: 42px; }
.topbar a { display: inline-flex; align-items: center; gap: .5rem; transition: color .25s; }
.topbar a:hover { color: var(--gold-soft); }
.topbar .tb-left { display: flex; gap: 26px; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar svg { width: 15px; height: 15px; color: var(--gold); }

.header {
  position: sticky; top: 0; z-index: 100;
  transition: background .4s var(--ease), box-shadow .4s, padding .4s;
  background: rgba(11, 19, 38, .0);
  padding: 18px 0;
}
.header.scrolled {
  background: rgba(10, 19, 38, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 40px -22px rgba(0,0,0,.8);
  padding: 10px 0;
}
.header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: flex; align-items: center; gap: 13px; }
.brand img { height: 48px; width: auto; max-width: 280px; object-fit: contain; transition: height .4s; }
.header.scrolled .brand img { height: 40px; }
.brand .bn { display: flex; flex-direction: column; line-height: 1; }
.brand .bn b {
  font-family: var(--serif); font-size: 1.45rem; font-weight: 700;
  color: #fff; letter-spacing: .02em;
}
.brand .bn span {
  font-family: var(--sans); font-size: .58rem; font-weight: 700;
  letter-spacing: .42em; text-transform: uppercase; color: var(--gold-soft);
  margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 34px; }
.nav a {
  color: rgba(255,255,255,.86); font-weight: 600; font-size: .94rem;
  position: relative; padding: 6px 0; transition: color .25s;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--gold); transition: width .3s var(--ease);
}
.nav a:hover, .nav a.active { color: #fff; }
.nav a:hover::after, .nav a.active::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 14px; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }

/* ── Selector de idioma ES / EN ───────────────────────────── */
.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid rgba(216,190,126,.6);
  border-radius: 999px; padding: 3px; gap: 3px;
  background: rgba(216,190,126,.12);
  backdrop-filter: blur(4px);
}
.lang-switch a {
  font: 800 .74rem/1 var(--sans);
  letter-spacing: .05em;
  color: rgba(255,255,255,.92);
  padding: 5px 11px; border-radius: 999px;
  text-decoration: none; transition: .25s var(--ease);
}
.lang-switch a:hover { color: #fff; background: rgba(216,190,126,.18); }
.lang-switch a.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  color: #1b2030; box-shadow: 0 2px 10px -3px rgba(168,137,63,.6);
}
/* En la topbar (fondo navy) el inactivo va más tenue */
.lang-switch--topbar { margin-left: 4px; }
.lang-switch--topbar a { padding: 4px 9px; font-size: .68rem; }
/* En el menú móvil (fondo claro) los inactivos se ven sobre claro */
.lang-switch--mobile {
  align-self: flex-start; margin: 4px 0 6px;
  border-color: rgba(168,137,63,.5); background: rgba(168,137,63,.07);
}
.lang-switch--mobile a { color: var(--ink-2); }
.lang-switch--mobile a:hover { color: var(--ink); }
.lang-switch--mobile a.active { color: #1b2030; }
.burger span { display: block; width: 26px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 78% -8%, rgba(73,100,196,.32), transparent 60%),
    radial-gradient(900px 500px at 8% 110%, rgba(194,164,90,.16), transparent 55%),
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 48%, #0c1830 100%);
  margin-top: -84px; padding-top: 84px;
}
.hero__grid-lines, .hero__scales, .hero__particles, .hero__grain {
  position: absolute; inset: 0; pointer-events: none;
}
.hero__grid-lines { opacity: .5; }
.hero__grain {
  opacity: .045; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__scales {
  right: -6%; top: 50%; transform: translateY(-50%);
  width: min(720px, 60vw); opacity: .1; color: var(--gold-soft);
}
.hero .container {
  position: relative; z-index: 2;
  min-height: 86vh; display: grid; grid-template-columns: 1.15fr .85fr;
  align-items: center; gap: 40px; padding-top: 60px; padding-bottom: 80px;
}
.hero__eyebrow {
  font-size: .76rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold-soft); display: inline-flex; align-items: center; gap: .8rem; margin-bottom: 26px;
}
.hero__eyebrow::before { content: ""; width: 40px; height: 1px; background: var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(2.7rem, 6vw, 5rem); line-height: 1.02; letter-spacing: -.015em;
}
.hero h1 em { font-style: italic; color: var(--gold-soft); }
.hero__sub { margin: 28px 0 36px; font-size: 1.16rem; color: rgba(255,255,255,.82); max-width: 52ch; }
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__badges {
  margin-top: 46px; display: flex; gap: 30px; flex-wrap: wrap;
  padding-top: 28px; border-top: 1px solid rgba(255,255,255,.12);
}
.hero__badge { display: flex; flex-direction: column; gap: 2px; }
.hero__badge b { font-family: var(--serif); font-size: 1.05rem; color: var(--gold-soft); font-weight: 700; }
.hero__badge span { font-size: .78rem; color: rgba(255,255,255,.66); }

/* Emblema flotante con balanza */
.hero__emblem {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero__emblem-ring {
  position: absolute; width: 118%; aspect-ratio: 1; border-radius: 50%;
  border: 1px dashed rgba(194,164,90,.3); animation: spin 60s linear infinite;
}
.hero__emblem-ring::after {
  content: ""; position: absolute; top: -5px; left: 50%; width: 9px; height: 9px;
  background: var(--gold); border-radius: 50%; box-shadow: 0 0 14px var(--gold);
}
.hero__emblem-glow {
  position: absolute; width: 80%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(73,100,196,.5), transparent 70%); filter: blur(30px);
}
.hero__emblem img { width: min(340px, 74%); position: relative; z-index: 2; filter: drop-shadow(0 30px 50px rgba(0,0,0,.5)); animation: float 7s ease-in-out infinite; }

.hero__scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: rgba(255,255,255,.6);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero__scroll i { width: 1px; height: 38px; background: linear-gradient(var(--gold), transparent); animation: scrolldot 2s infinite; }

@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes scrolldot { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes sway { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }

/* ============================================================
   FRANJA DE CONFIANZA
   ============================================================ */
.trust { background: var(--navy-900); color: #fff; padding: 30px 0; }
.trust .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.trust__label { font-size: .76rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); font-weight: 700; }
.trust__items { display: flex; gap: 40px; flex-wrap: wrap; }
.trust__item { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: rgba(255,255,255,.8); }
.trust__item svg { width: 26px; height: 26px; color: var(--gold); flex-shrink: 0; }
.trust__item b { color: #fff; font-weight: 700; display: block; font-size: .92rem; }
.trust__item span { font-size: .76rem; color: rgba(255,255,255,.6); }

/* ============================================================
   ÁREAS DE PRÁCTICA
   ============================================================ */
.areas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.area-card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r); padding: 38px 32px; overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.area-card::before {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--royal)); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.area-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: transparent; }
.area-card:hover::before { transform: scaleX(1); }
.area-card__icon {
  width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(73,100,196,.12), rgba(194,164,90,.14));
  color: var(--royal); margin-bottom: 22px; transition: .4s;
}
.area-card:hover .area-card__icon { background: var(--navy-800); color: var(--gold-soft); transform: rotate(-6deg); }
.area-card__icon svg { width: 32px; height: 32px; }
.area-card h3 { font-size: 1.55rem; margin-bottom: 10px; }
.area-card p { color: var(--muted); font-size: .96rem; }
.area-card__num {
  position: absolute; right: 22px; top: 18px; font-family: var(--serif);
  font-size: 2.6rem; color: var(--line); font-weight: 700; line-height: 1;
}
.area-card__more {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; font-size: .86rem; color: var(--gold-deep); letter-spacing: .04em;
}
.area-card__more svg { width: 16px; height: 16px; transition: transform .3s; }
.area-card:hover .area-card__more svg { transform: translateX(5px); }

/* ============================================================
   NOSOTROS
   ============================================================ */
.about { position: relative; overflow: hidden; }
.about .container { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about__visual { position: relative; }
.about__visual .frame {
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.about__quote {
  position: absolute; bottom: -28px; right: -10px; background: var(--navy-800); color: #fff;
  padding: 26px 30px; border-radius: var(--r); max-width: 320px; box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
}
.about__quote p { font-family: var(--serif); font-size: 1.25rem; font-style: italic; line-height: 1.35; }
.mv { display: grid; gap: 22px; margin-top: 28px; }
.mv-item { display: flex; gap: 18px; padding: 22px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); }
.section--paper2 .mv-item { background: var(--white); }
.mv-item__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--navy-800); color: var(--gold-soft); display: grid; place-items: center; }
.mv-item__ic svg { width: 24px; height: 24px; }
.mv-item h4 { font-family: var(--serif); font-size: 1.4rem; color: var(--navy-800); margin-bottom: 4px; }
.mv-item p { font-size: .95rem; color: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 38px; }
.stat { text-align: center; padding: 24px 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper-2); }
.section--paper2 .stat { background: var(--white); }
.stat b { display: block; font-family: var(--serif); font-size: 2.6rem; color: var(--royal); line-height: 1; }
.stat span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

/* ============================================================
   REPRESENTANTE
   ============================================================ */
.rep { background: var(--navy-900); color: #fff; position: relative; overflow: hidden; }
.rep__bg { position: absolute; inset: 0; opacity: .06; color: var(--gold-soft); pointer-events: none; }
.rep .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: center; position: relative; z-index: 2; }
.rep__photo { position: relative; }
.rep__photo img { border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid rgba(255,255,255,.1); }
.rep__photo::before {
  content: ""; position: absolute; inset: -14px -14px 18px 18px; border: 1px solid var(--gold);
  border-radius: var(--r); z-index: -1;
}
.rep h2 { color: #fff; }
.rep__role { color: var(--gold-soft); font-weight: 700; letter-spacing: .04em; margin: 6px 0 22px; }
.rep__bio { color: rgba(255,255,255,.78); margin-bottom: 26px; }
.rep__creds { display: grid; gap: 14px; }
.rep__cred { display: flex; gap: 14px; align-items: flex-start; }
.rep__cred svg { width: 22px; height: 22px; color: var(--gold); flex-shrink: 0; margin-top: 2px; }
.rep__cred span { color: rgba(255,255,255,.85); font-size: .95rem; }

/* ============================================================
   NOTICIAS
   ============================================================ */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .4s; }
.news-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.news-card__img { aspect-ratio: 16/10; background: linear-gradient(135deg, var(--navy-800), var(--royal)); position: relative; display: grid; place-items: center; color: rgba(255,255,255,.25); overflow: hidden; }
.news-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.news-card:hover .news-card__img img { transform: scale(1.05); }
.news-card__img svg { width: 56px; height: 56px; }
.news-card__tag { position: absolute; top: 14px; left: 14px; background: var(--gold); color: var(--navy-900); font-size: .72rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; letter-spacing: .03em; z-index: 2; }
.news-card__body { padding: 24px 24px 26px; }
.news-card__date { font-size: .78rem; color: var(--gold-deep); font-weight: 700; letter-spacing: .04em; }
.news-card h3 { font-size: 1.4rem; margin: 8px 0 10px; }
.news-card p { color: var(--muted); font-size: .92rem; }

/* ── Carrusel de noticias (auto-scroll + arrastre + modal) ── */
.news-rail {
  margin-top: 40px; overflow-x: auto; overflow-y: hidden; touch-action: pan-y;
  cursor: grab; -webkit-overflow-scrolling: touch; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.news-rail::-webkit-scrollbar { display: none; }
.news-rail.dragging { cursor: grabbing; }
.news-rail__track { display: flex; gap: 26px; width: max-content; padding: 8px 40px; }
.news-rail .news-card {
  flex: 0 0 auto; width: 340px; cursor: pointer; display: flex; flex-direction: column;
  -webkit-user-select: none; user-select: none;
}
.news-rail .news-card:hover { border-color: var(--gold); }
.news-rail .news-card__body { display: flex; flex-direction: column; flex: 1; }
.news-rail .news-card h3 { line-height: 1.25; }
.news-rail .news-card p {
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card__more {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 16px;
  color: var(--gold-deep); font-weight: 700; font-size: .85rem; letter-spacing: .02em;
}
.news-card__more svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.news-rail .news-card:hover .news-card__more svg { transform: translateX(4px); }

/* Modal de noticia */
.news-modal { position: fixed; inset: 0; z-index: 320; background: rgba(8, 14, 28, .9); display: none; align-items: center; justify-content: center; padding: 28px; }
.news-modal.open { display: flex; animation: atfade .3s var(--ease); }
.news-modal__card {
  position: relative; width: min(760px, 100%); max-height: 90vh; background: var(--white);
  border-radius: 18px; overflow: hidden; box-shadow: 0 40px 90px rgba(0,0,0,.5);
  animation: nmpop .4s var(--ease);
}
@keyframes nmpop { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
.news-modal__scroll { max-height: 90vh; overflow-y: auto; }
.news-modal__cover { position: relative; aspect-ratio: 16/8; background: linear-gradient(135deg, var(--navy-800), var(--royal)); }
.news-modal__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.news-modal__cat { position: absolute; left: 22px; bottom: 18px; background: var(--gold); color: var(--navy-900); font-size: .76rem; font-weight: 700; padding: 5px 14px; border-radius: 50px; letter-spacing: .03em; }
.news-modal__cat:empty { display: none; }
.news-modal__body { padding: 30px 34px 38px; }
.news-modal__meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--gold-deep); font-weight: 700; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.news-modal__meta span { display: inline-flex; align-items: center; gap: 6px; }
.news-modal__meta svg { width: 15px; height: 15px; }
.news-modal__title { font-size: 2rem; line-height: 1.15; margin: 0 0 18px; color: var(--ink); }
.news-modal__content { color: var(--ink-2); font-size: 1rem; line-height: 1.8; white-space: pre-wrap; }
.news-modal__close, .news-modal__arrow {
  position: absolute; z-index: 3; background: rgba(11, 19, 38, .55); border: 1px solid rgba(255,255,255,.3);
  color: #fff; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: .25s var(--ease);
}
.news-modal__close { top: 16px; right: 16px; width: 44px; height: 44px; }
.news-modal__close svg { width: 22px; height: 22px; }
.news-modal__close:hover, .news-modal__arrow:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.news-modal__arrow { top: 50%; transform: translateY(-50%); width: 46px; height: 46px; }
.news-modal__arrow:hover { transform: translateY(-50%) scale(1.08); }
.news-modal__arrow svg { width: 24px; height: 24px; }
.news-modal__prev { left: 16px; }
.news-modal__next { right: 16px; }

@media (max-width: 760px) {
  .news-rail__track { gap: 18px; padding: 8px 22px; }
  .news-rail .news-card { width: 80vw; max-width: 320px; }
  .news-modal { padding: 0; }
  .news-modal__card { width: 100%; max-height: 100vh; border-radius: 0; }
  .news-modal__scroll { max-height: 100vh; }
  .news-modal__body { padding: 24px 20px 32px; }
  .news-modal__title { font-size: 1.55rem; }
  .news-modal__arrow { width: 40px; height: 40px; }
  .news-modal__prev { left: 8px; } .news-modal__next { right: 8px; }
}

/* ============================================================
   CONTACTO
   ============================================================ */
.contact .container { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; }

/* Contacto en tema oscuro (como Representante legal) */
.contact--dark { background: var(--navy-900); color: rgba(255, 255, 255, .85); position: relative; overflow: hidden; }
.contact--dark .rep__bg { position: absolute; inset: 0; opacity: .06; color: var(--gold-soft); pointer-events: none; }
.contact--dark .container { position: relative; z-index: 1; }
.contact--dark .kicker { color: var(--gold-soft); }
.contact--dark .kicker::before { background: var(--gold); }
.contact--dark .section-title { color: #fff; }
.contact--dark .section-title em { color: var(--gold-soft); }
.contact--dark .lead { color: rgba(255, 255, 255, .78); }
.contact--dark .cmethod { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
.contact--dark .cmethod:hover { border-color: var(--gold); }
.contact--dark .cmethod__ic { background: rgba(194, 164, 90, .16); color: var(--gold-soft); }
.contact--dark .cmethod b { color: #fff; }
.contact--dark .cmethod span { color: rgba(255, 255, 255, .6); }
.contact--dark .contact__socials a { background: rgba(255, 255, 255, .08); }
.contact--dark .contact__socials a:hover { background: var(--gold); color: var(--navy-900); }
.contact__info { }
.contact__methods { display: grid; gap: 18px; margin: 30px 0; }
.cmethod { display: flex; gap: 16px; align-items: center; padding: 18px 20px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); transition: .3s; }
.cmethod:hover { border-color: var(--gold); transform: translateX(4px); }
.cmethod__ic { width: 48px; height: 48px; flex-shrink: 0; border-radius: 12px; background: var(--navy-800); color: var(--gold-soft); display: grid; place-items: center; }
.cmethod__ic svg { width: 22px; height: 22px; }
.cmethod b { display: block; color: var(--navy-800); font-size: 1rem; }
.cmethod span { font-size: .88rem; color: var(--muted); }
.contact__socials { display: flex; gap: 12px; }
.contact__socials a { width: 44px; height: 44px; border-radius: 12px; background: var(--navy-800); color: #fff; display: grid; place-items: center; transition: .3s; }
.contact__socials a:hover { background: var(--gold); color: var(--navy-900); transform: translateY(-4px); }
.contact__socials svg { width: 20px; height: 20px; }

.form-card {
  position: relative; overflow: hidden; border-radius: 20px; padding: 38px;
  background: linear-gradient(162deg, #17284c 0%, var(--navy-800) 56%, var(--navy-900) 100%);
  border: 1px solid rgba(194, 164, 90, .22);
  box-shadow: 0 34px 80px -30px rgba(0, 0, 0, .75);
}
.form-card::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -80px; top: -80px; border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 164, 90, .18), transparent 70%); pointer-events: none;
}
.form-card > * { position: relative; z-index: 1; }
.form-card h3 { font-size: 1.9rem; margin-bottom: 6px; color: #fff; }
.form-card .form-sub { color: var(--gold-soft); margin-bottom: 24px; font-size: .95rem; opacity: .92; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .74rem; font-weight: 700; color: rgba(255, 255, 255, .72); margin-bottom: 7px; letter-spacing: .06em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 11px;
  font-family: var(--sans); font-size: .95rem; color: #fff; background: rgba(255, 255, 255, .045);
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255, 255, 255, .4); }
.field select option { color: #1b2030; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 164, 90, .18); background: rgba(255, 255, 255, .08);
}
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .btn { width: 100%; justify-content: center; margin-top: 10px; }
.form-note { margin-top: 14px; text-align: center; font-size: .78rem; color: rgba(255, 255, 255, .55); display: flex; align-items: center; justify-content: center; gap: 7px; }
.form-note svg { width: 14px; height: 14px; color: var(--gold-soft); flex-shrink: 0; }

/* Animación de envío (SVG creativa) */
.form-success { display: none; text-align: center; padding: 26px 10px; }
.form-success.show { display: block; animation: fadeUp .5s var(--ease); }
.form-success h3 { color: #fff; }
.form-success p { color: rgba(255, 255, 255, .7); margin-top: 8px; }

.sent-fx { width: 132px; height: 132px; margin: 0 auto 16px; }
.sent-fx svg { width: 100%; height: 100%; overflow: visible; }
.sent-fx [class^="sent-"] { transform-box: fill-box; transform-origin: center; }

/* halo que late */
.sent-pulse { fill: rgba(194, 164, 90, .22); animation: sentPulse 1.9s ease-out .4s infinite; }
@keyframes sentPulse { 0% { transform: scale(.55); opacity: .7; } 70% { opacity: 0; } 100% { transform: scale(1.55); opacity: 0; } }
/* órbita punteada girando */
.sent-orbit { fill: none; stroke: rgba(194, 164, 90, .45); stroke-width: 1.4; stroke-dasharray: 3 12; stroke-linecap: round; animation: sentSpin 9s linear infinite; }
@keyframes sentSpin { to { transform: rotate(360deg); } }
/* disco dorado que aparece */
.sent-disc { opacity: 0; animation: sentDiscPop .55s cubic-bezier(.2, .9, .3, 1.35) .55s forwards; }
@keyframes sentDiscPop { 0% { opacity: 0; transform: scale(.3); } 100% { opacity: 1; transform: scale(1); } }
/* anillo que se dibuja */
.sent-ring { fill: none; stroke: var(--gold-soft); stroke-width: 3; stroke-dasharray: 277; stroke-dashoffset: 277; transform: rotate(-90deg); animation: sentDraw .8s ease .3s forwards; }
@keyframes sentDraw { to { stroke-dashoffset: 0; } }
/* check que se traza sobre el sello */
.sent-check { fill: none; stroke: #0a1326; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 72; stroke-dashoffset: 72; animation: sentDraw .45s ease .95s forwards; }
/* avión de papel que "envía" */
.sent-plane { fill: var(--gold-soft); stroke: var(--gold-soft); stroke-width: 1.2; stroke-linejoin: round; opacity: 0; animation: sentPlane 1.15s ease forwards; }
@keyframes sentPlane {
  0%   { opacity: 0; transform: translate(-34px, 34px) rotate(-12deg) scale(.7); }
  25%  { opacity: 1; }
  60%  { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); }
  100% { opacity: 0; transform: translate(46px, -46px) rotate(16deg) scale(.45); }
}
/* destellos */
.sent-spark { fill: var(--gold-soft); opacity: 0; animation: sentSpark .75s ease forwards; }
.sent-spark.sp1 { animation-delay: 1.05s; }
.sent-spark.sp2 { animation-delay: 1.2s; }
.sent-spark.sp3 { animation-delay: 1.3s; }
.sent-spark.sp4 { animation-delay: 1.12s; }
@keyframes sentSpark { 0% { opacity: 0; transform: scale(0) rotate(0); } 55% { opacity: 1; transform: scale(1.25) rotate(40deg); } 100% { opacity: 0; transform: scale(.5) rotate(80deg); } }
@media (prefers-reduced-motion: reduce) { .form-success [class^="sent-"] { animation: none !important; opacity: 1 !important; stroke-dashoffset: 0 !important; } }
.checkmark__circle { stroke: var(--gold); stroke-width: 3; fill: none; stroke-dasharray: 166; stroke-dashoffset: 166; animation: stroke .7s var(--ease) forwards; }
.checkmark__check { stroke: var(--royal); stroke-width: 4; fill: none; stroke-linecap: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: stroke .4s .6s var(--ease) forwards; }
@keyframes stroke { to { stroke-dashoffset: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 70px 0 28px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
.footer__brand img { height: 50px; width: auto; max-width: 230px; object-fit: contain; margin-bottom: 16px; }
.footer__brand .fb-name { font-family: var(--serif); font-size: 1.5rem; color: #fff; }
.footer__brand p { margin-top: 14px; font-size: .92rem; max-width: 34ch; }
.footer h5 { color: #fff; font-family: var(--sans); font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 20px; }
.footer ul li { margin-bottom: 12px; }
.footer ul a { font-size: .92rem; transition: color .25s, padding .25s; }
.footer ul a:hover { color: var(--gold-soft); padding-left: 5px; }
.footer__contact li { display: flex; gap: 10px; font-size: .9rem; margin-bottom: 14px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; margin-top: 3px; }
.footer__bottom { margin-top: 50px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; font-size: .82rem; flex-wrap: wrap; }

/* ============================================================
   FLOTANTES
   ============================================================ */
.wa-float {
  position: fixed; bottom: 26px; right: 26px; z-index: 90; width: 60px; height: 60px;
  border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6); transition: transform .3s;
}
.wa-float:hover { transform: scale(1.1) translateY(-3px); }
.wa-float svg { width: 32px; height: 32px; }
.wa-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse 2s infinite; }
@keyframes pulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }

.to-top {
  position: fixed; bottom: 26px; left: 26px; z-index: 90; width: 48px; height: 48px; border-radius: 12px;
  background: var(--navy-800); color: var(--gold-soft); display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255,255,255,.12); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .35s var(--ease);
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--gold); color: var(--navy-900); }
.to-top svg { width: 20px; height: 20px; }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .1s; }
.reveal[data-d="2"] { transition-delay: .2s; }
.reveal[data-d="3"] { transition-delay: .3s; }
.reveal[data-d="4"] { transition-delay: .4s; }
.reveal[data-d="5"] { transition-delay: .5s; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 200; overflow-y: auto;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(194,164,90,.10) 0%, transparent 55%),
    radial-gradient(90% 60% at 0% 100%, rgba(73,100,196,.14) 0%, transparent 60%),
    linear-gradient(180deg, var(--navy-900) 0%, #070e1d 100%);
  display: flex; flex-direction: column; padding: 22px 24px calc(24px + env(safe-area-inset-bottom));
  transform: translateX(100%); transition: transform .5s var(--ease); visibility: hidden;
}
.mobile-menu.open { transform: none; visibility: visible; }

/* Motivo legal tenue de fondo */
.mm-deco {
  position: absolute; top: 12%; right: -56px; width: 320px; height: 320px;
  color: rgba(194,164,90,.06); pointer-events: none; z-index: 0;
}

.mobile-menu__head { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid rgba(194,164,90,.18); }
.mobile-menu__close { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; color: #fff; cursor: pointer; transition: .25s var(--ease); }
.mobile-menu__close:hover { background: rgba(194,164,90,.18); border-color: var(--gold); color: var(--gold-soft); transform: rotate(90deg); }
.mobile-menu__close svg { width: 22px; height: 22px; }

/* Navegación con íconos */
.mm-nav { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; }
.mm-nav a {
  display: flex; align-items: center; gap: 16px;
  color: #f2efe6; font-family: var(--serif); font-size: 1.5rem; font-weight: 600;
  padding: 13px 8px; border-bottom: 1px solid rgba(255,255,255,.06);
  opacity: 0; transform: translateX(26px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .25s, background .25s;
}
.mobile-menu.open .mm-nav a { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .06s); }
.mm-nav a:hover, .mm-nav a:active { color: var(--gold-soft); background: rgba(194,164,90,.06); border-radius: 12px; }
.mm-ic {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, rgba(194,164,90,.18), rgba(194,164,90,.05));
  border: 1px solid rgba(194,164,90,.28); color: var(--gold-soft);
}
.mm-ic svg { width: 21px; height: 21px; }
.mm-tx { flex: 1 1 auto; line-height: 1; }
.mm-ar { width: 18px; height: 18px; color: rgba(194,164,90,.55); transition: transform .25s var(--ease); }
.mm-nav a:hover .mm-ar { transform: translateX(4px); color: var(--gold-soft); }

/* Pie del menú: idioma + redes, CTA y contacto */
.mm-foot { position: relative; z-index: 1; margin-top: 22px; }
.mm-foot__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.mm-social { display: flex; gap: 10px; }
.mm-social a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.85); transition: .25s var(--ease);
}
.mm-social a:hover { background: rgba(194,164,90,.16); border-color: var(--gold); color: var(--gold-soft); transform: translateY(-2px); }
.mm-social svg { width: 18px; height: 18px; }
.mobile-menu .mm-foot .btn { width: 100%; justify-content: center; padding: .95rem 1.2rem; font-size: .95rem; }

.mm-contact { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid rgba(194,164,90,.18); display: flex; flex-direction: column; gap: 12px; }
.mm-contact a, .mm-cstatic { display: flex; align-items: center; gap: 12px; color: rgba(242,239,230,.82); font-size: .92rem; font-family: var(--sans); }
.mm-contact a { transition: color .25s; }
.mm-contact a:hover { color: var(--gold-soft); }
.mm-contact svg { flex: 0 0 auto; width: 17px; height: 17px; color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .areas-grid, .news-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; min-height: auto; padding-top: 50px; padding-bottom: 60px; }
  .hero__emblem { display: none; }
  .about .container, .rep .container, .contact .container { grid-template-columns: 1fr; gap: 44px; }
  .rep__photo { max-width: 420px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}
@media (max-width: 760px) {
  .topbar { display: none; }
  .nav, .header-cta .btn { display: none; }
  .burger { display: block; }
  .header { background: rgba(10,19,38,.95); padding: 12px 0; }
  .brand img { height: 34px; max-width: 170px; }
  .header.scrolled .brand img { height: 30px; }
  .header-cta { gap: 10px; }
  .hero { margin-top: -64px; padding-top: 64px; }
  .areas-grid, .news-grid, .stats, .field-row { grid-template-columns: 1fr; }
  .trust .container { justify-content: center; text-align: center; }
  .about__quote { position: static; margin-top: 18px; max-width: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 20px; }
  .section { padding: 64px 0; }
}

/* ============================================================
   ARTE ANIMADO (Nosotros) — emblema + anillos + partículas
   ============================================================ */
.about__art-panel {
  position: relative; aspect-ratio: 4/5; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(130% 120% at 28% 8%, #1a2c54 0%, var(--navy-800) 48%, var(--navy-900) 100%);
  border: 1px solid rgba(255,255,255,.08); box-shadow: var(--shadow);
  display: grid; place-items: center;
}
.about__art-panel .ring { position: absolute; border-radius: 50%; }
.about__art-panel .ring.r1 { width: 80%; aspect-ratio: 1; border: 1px dashed rgba(194,164,90,.4); animation: spin 50s linear infinite; }
.about__art-panel .ring.r1::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; background: var(--gold); border-radius: 50%; box-shadow: 0 0 16px var(--gold); transform: translateX(-50%); }
.about__art-panel .ring.r2 { width: 58%; aspect-ratio: 1; border: 1px solid rgba(73,100,196,.35); animation: spin 34s linear infinite reverse; }
.about__art-panel .ring.r2::after { content: ""; position: absolute; bottom: -4px; left: 50%; width: 7px; height: 7px; background: var(--royal-2); border-radius: 50%; box-shadow: 0 0 12px var(--royal); transform: translateX(-50%); }
.about__art-panel .ring.r3 { width: 98%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.06); }
.about__art-glow { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(73,100,196,.5), transparent 70%); filter: blur(36px); }
.about__art-scales { position: absolute; width: 74%; opacity: .12; color: var(--gold-soft); }
.about__art-scales g { transform-origin: 100px 36px; animation: sway 6s ease-in-out infinite; }
.about__art-emblem { position: relative; z-index: 3; width: 54%; filter: drop-shadow(0 26px 44px rgba(0,0,0,.55)); animation: float 7s ease-in-out infinite; }
.about__art-panel .dot { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-soft); opacity: .35; }
.about__art-panel .dot:nth-child(1) { top: 18%; left: 16%; animation: drift 8s ease-in-out infinite; }
.about__art-panel .dot:nth-child(2) { top: 30%; right: 14%; width: 4px; animation: drift 10s ease-in-out infinite .8s; }
.about__art-panel .dot:nth-child(3) { bottom: 22%; left: 22%; width: 5px; animation: drift 9s ease-in-out infinite .4s; }
.about__art-panel .dot:nth-child(4) { bottom: 30%; right: 20%; animation: drift 11s ease-in-out infinite 1.2s; }
@keyframes drift { 0%,100% { transform: translateY(0); opacity: .2; } 50% { transform: translateY(-22px); opacity: .75; } }

/* ============================================================
   CLIENTES — marquee "Confían en nosotros"
   ============================================================ */
.clients .marquee {
  margin-top: 14px; overflow: hidden; position: relative; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.clients .marquee__track { display: flex; gap: 24px; width: max-content; animation: marquee 42s linear infinite; }
.clients .marquee:hover .marquee__track { animation-play-state: paused; }
.client-logo {
  flex: 0 0 auto; width: 180px; height: 116px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 18px 22px; box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, border-color .35s;
}
.client-logo:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--gold); }
.client-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 760px) {
  .client-logo { width: 148px; height: 96px; padding: 14px; }
  .about__art-panel { aspect-ratio: 1; max-width: 420px; margin: 0 auto; }
}

/* ============================================================
   MOTIVOS LEGALES TENUES FLOTANTES (secciones claras)
   ============================================================ */
.legal-deco { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.section > .container,
.clients > .marquee { position: relative; z-index: 1; }
.legal-deco .ld-a, .legal-deco .ld-b { position: absolute; display: block; color: var(--navy); }
.legal-deco svg { display: block; width: 100%; height: 100%; }
.legal-deco .ld-a { top: -40px; right: 1%; width: 380px; height: 380px; opacity: .06; animation: ldFloatA 15s ease-in-out infinite; }
.legal-deco .ld-b { bottom: -30px; left: 1%; width: 300px; height: 300px; opacity: .05; animation: ldFloatB 18s ease-in-out infinite; }
.legal-deco .ld-gold { color: var(--gold); opacity: .1; }
@keyframes ldFloatA { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-26px) rotate(5deg); } }
@keyframes ldFloatB { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(20px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .legal-deco .ld-a, .legal-deco .ld-b { animation: none; } }
@media (max-width: 760px) {
  .legal-deco .ld-a { width: 220px; height: 220px; }
  .legal-deco .ld-b { width: 170px; height: 170px; }
}

/* ============================================================
   ÁREAS DE PRÁCTICA — Pestañas interactivas
   ============================================================ */
.areas-tabs {
  display: grid; grid-template-columns: 320px 1fr;
  border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  background: var(--white); box-shadow: var(--shadow);
}
.at-tabs { background: var(--paper-2); border-right: 1px solid var(--line); padding: 16px; }
.at-tab {
  display: flex; align-items: center; gap: 14px; width: 100%; text-align: left;
  border: 0; background: transparent; padding: 16px 16px; border-radius: 12px; cursor: pointer;
  font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink-2);
  transition: background .25s, color .25s; line-height: 1.25;
}
.at-tab:hover { background: rgba(73, 100, 196, .08); }
.at-tab.active { background: var(--navy-800); color: #fff; box-shadow: var(--shadow-sm); }
.at-tabic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: rgba(73, 100, 196, .1); color: var(--royal); flex-shrink: 0; transition: .25s;
}
.at-tab.active .at-tabic { background: var(--gold); color: var(--navy-900); }
.at-tabic svg { width: 20px; height: 20px; }
.at-panel { position: relative; padding: 52px 50px; min-height: 360px; }
.at-pane { display: none; }
.at-pane.active { display: block; animation: atfade .45s var(--ease); }
@keyframes atfade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.at-big {
  width: 76px; height: 76px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--royal), var(--gold)); color: #fff; margin-bottom: 24px;
  box-shadow: 0 16px 34px -14px rgba(73, 100, 196, .6);
}
.at-big svg { width: 38px; height: 38px; }
.at-pane h3 { font-size: 2.1rem; margin-bottom: 12px; }
.at-pane p { color: var(--ink-2); max-width: 54ch; font-size: 1.06rem; }
.at-pane .at-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  font-weight: 700; color: var(--gold-deep); letter-spacing: .02em;
}
.at-pane .at-cta svg { width: 17px; height: 17px; transition: transform .3s; }
.at-pane .at-cta:hover svg { transform: translateX(5px); }
.at-watermark {
  position: absolute; right: 34px; bottom: 6px; font-family: var(--serif);
  font-size: 8rem; font-weight: 700; color: var(--paper); line-height: 1; pointer-events: none; user-select: none;
}

@media (max-width: 860px) {
  .areas-tabs { grid-template-columns: 1fr; }
  .at-tabs {
    display: flex; gap: 8px; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px;
    scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 86%, transparent);
            mask-image: linear-gradient(90deg, #000 86%, transparent);
  }
  .at-tabs::-webkit-scrollbar { display: none; }
  .at-tab { white-space: nowrap; flex: 0 0 auto; width: auto; }   /* ancho del contenido: se asoman varias */
  .at-panel { padding: 36px 26px; min-height: 0; }
  .at-pane h3 { font-size: 1.7rem; }
  .at-watermark { font-size: 5rem; right: 20px; }
}

/* Indicador "desliza para ver más áreas" (solo móvil) */
.at-hint { display: none; }
@media (max-width: 860px) {
  .at-hint {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px;
    margin: 0 2px 12px; font-family: var(--sans); font-size: .76rem; font-weight: 700;
    letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep);
  }
  .at-hint svg { width: 17px; height: 17px; animation: atHintNudge 1.5s var(--ease) infinite; }
}
@keyframes atHintNudge { 0%, 100% { transform: translateX(0); opacity: .55; } 50% { transform: translateX(6px); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .at-hint svg { animation: none; } }

/* ============================================================
   CERTIFICADOS — galería + lightbox
   ============================================================ */
/* Marquee de certificados (a todo el ancho, auto-scroll, clic = pantalla completa) */
.cert-marquee { overflow: hidden; position: relative; padding: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.cert-marquee__track { display: flex; gap: 22px; width: max-content; animation: marquee 80s linear infinite; }
.cert-marquee:hover .cert-marquee__track { animation-play-state: paused; }
.cert-card {
  position: relative; flex: 0 0 auto; width: 248px; height: 176px; border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .4s var(--ease), box-shadow .4s, border-color .4s;
}
.cert-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--gold); }
.cert-card img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.cert-card__ov {
  position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px;
  padding: 12px 14px; color: #fff; opacity: 0; transition: opacity .35s;
  background: linear-gradient(0deg, rgba(11, 19, 38, .6), transparent 55%);
}
.cert-card:hover .cert-card__ov { opacity: 1; }
.cert-card__ov span { font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.cert-card__zoom { width: 34px; height: 34px; border-radius: 50%; background: var(--gold); color: var(--navy-900); display: grid; place-items: center; flex-shrink: 0; }
.cert-card__zoom svg { width: 17px; height: 17px; }

.cert-lb { position: fixed; inset: 0; z-index: 300; background: rgba(8, 14, 28, .93); display: none; align-items: center; justify-content: center; padding: 40px; }
.cert-lb.open { display: flex; animation: atfade .3s var(--ease); }
.cert-lb img { max-width: 92vw; max-height: 86vh; border-radius: 8px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.cert-lb__btn { position: absolute; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .25); color: #fff; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: .25s; }
.cert-lb__btn:hover { background: var(--gold); color: var(--navy-900); border-color: var(--gold); }
.cert-lb__btn svg { width: 24px; height: 24px; }
.cert-lb__close { top: 24px; right: 28px; }
.cert-lb__prev { left: 24px; top: 50%; transform: translateY(-50%); }
.cert-lb__next { right: 24px; top: 50%; transform: translateY(-50%); }
.cert-lb__count { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-size: .85rem; font-weight: 600; letter-spacing: .05em; }

@media (max-width: 760px) {
  .cert-card { width: 200px; height: 142px; }
}
@media (max-width: 600px) {
  .cert-lb__prev { left: 12px; } .cert-lb__next { right: 12px; }
  .cert-lb__btn { width: 42px; height: 42px; }
}

/* ============================================================
   PANTALLA DE BIENVENIDA (intro) — ámbito legal, navy + dorado
   ============================================================ */
body.uintro-active { overflow: hidden; }
.uintro {
  position: fixed; inset: 0; z-index: 6000; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 90% at 50% 28%, #0f2552 0%, var(--navy-900) 70%);
  transition: opacity .9s ease, visibility .9s; cursor: pointer;
}
.uintro.done { opacity: 0; visibility: hidden; pointer-events: none; }
.uintro__scene { position: absolute; inset: 0; overflow: hidden; perspective: 520px; }
.uintro__floor {
  position: absolute; left: -60%; right: -60%; bottom: -6%; height: 75%;
  background-image: linear-gradient(rgba(194,164,90,.32) 2px, transparent 2px), linear-gradient(90deg, rgba(194,164,90,.16) 2px, transparent 2px);
  background-size: 64px 64px; transform: rotateX(64deg); transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(transparent, #000 55%, transparent);
          mask-image: linear-gradient(transparent, #000 55%, transparent);
  animation: uintroFloor 1.1s linear infinite;
}
.uintro__floor--top { bottom: auto; top: -6%; transform: rotateX(-64deg); transform-origin: top center; }
@keyframes uintroFloor { to { background-position: 0 64px; } }
.uintro__halo {
  position: absolute; left: 50%; top: 40%; width: 560px; height: 560px; transform: translate(-50%, -50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(73,100,196,.32), rgba(194,164,90,.12) 42%, transparent 66%);
  filter: blur(34px); animation: uintroPulse 3s ease-in-out infinite;
}
@keyframes uintroPulse { 0%,100% { opacity: 1; } 50% { opacity: .5; } }
.uintro__net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
.uintro__dot { animation: uintroDot 2.2s ease-in-out infinite; }
@keyframes uintroDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .3; transform: scale(.6); } }
.uintro__scales { position: absolute; left: 50%; top: 40%; transform: translate(-50%,-50%); width: 360px; opacity: .07; color: var(--gold-soft); }
.uintro__scales g { transform-origin: 100px 36px; animation: sway 6s ease-in-out infinite; }

.uintro__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
.uintro__welcome { font-family: var(--sans); font-size: clamp(.82rem, 2.4vw, 1.08rem); letter-spacing: .42em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 1.6rem; opacity: 0; animation: uintroUp .8s ease .2s forwards; }
.uintro__logo { position: relative; width: 220px; height: 220px; display: grid; place-items: center; margin-bottom: 1.5rem; }
.uintro__rings { position: absolute; inset: 0; width: 100%; height: 100%; }
.uintro__rings .r { transform-box: fill-box; transform-origin: 120px 120px; }
.uintro__rings .ra { animation: uintroSpin 12s linear infinite; }
.uintro__rings .rb { animation: uintroSpin 18s linear infinite reverse; }
@keyframes uintroSpin { to { transform: rotate(360deg); } }
.uintro__emblem { width: 122px; height: 122px; object-fit: contain; filter: drop-shadow(0 0 22px rgba(194,164,90,.5)); opacity: 0; animation: uintroPop .7s cubic-bezier(.2,.9,.3,1.2) .35s forwards; }
@keyframes uintroPop { from { opacity: 0; transform: scale(.55); } to { opacity: 1; transform: scale(1); } }
.uintro__brand { max-width: min(72vw, 300px); height: auto; max-height: 70px; object-fit: contain; opacity: 0; animation: uintroUp .8s ease .6s forwards; }
.uintro__bar { width: min(60vw, 240px); height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; margin-top: 2rem; }
.uintro__bar i { display: block; height: 100%; width: 0; border-radius: 3px; background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft)); box-shadow: 0 0 16px rgba(194,164,90,.6); animation: uintroLoad 2.5s ease forwards; }
@keyframes uintroLoad { 0% { width: 0; } 70% { width: 88%; } 100% { width: 100%; } }
.uintro__skip { font-family: var(--sans); font-size: .74rem; color: rgba(255,255,255,.55); margin-top: .9rem; letter-spacing: .12em; opacity: 0; animation: uintroUp .8s ease .9s forwards; }
@keyframes uintroUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .uintro *, .uintro { animation-duration: .01ms !important; } }
@media (max-width: 600px) { .uintro__logo { width: 180px; height: 180px; } .uintro__emblem { width: 100px; height: 100px; } }

/* ============================================================
   Botón del header (más compacto) + Modal "Solicitar servicio"
   ============================================================ */
.header-cta .btn { padding: .58rem 1.2rem; font-size: .85rem; }

.service-modal {
  position: fixed; inset: 0; z-index: 5500; background: rgba(8, 14, 28, .72);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: none; align-items: flex-start; justify-content: center; padding: 6vh 18px; overflow-y: auto;
}
.service-modal.open { display: flex; animation: atfade .3s var(--ease); }
.service-modal__card { width: 100%; max-width: 540px; position: relative; }
.service-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; color: var(--navy-800); display: grid; place-items: center;
  cursor: pointer; transition: .25s;
}
.service-modal__close:hover { background: var(--navy-800); color: #fff; border-color: var(--navy-800); }
.service-modal__close svg { width: 20px; height: 20px; }
/* Evita que el botón cerrar tape el título/subtítulo */
.service-modal__card h3,
.service-modal__card .form-sub { padding-right: 48px; }
