/* ==========================================================================
   COSEGI · Sistema Visual Premium (HTML + CSS + JS puro)
   Paleta oficial del logo: Azul, Morado, Verde, Amarillo y Naranja sobre Azul Noche.
   ========================================================================== */

:root {
  --navy: #071a3a;
  --navy-2: #0c2754;
  --ink: #0d1b33;
  --muted: #586980;
  --line: #e2e8f2;
  --soft: #f4f7fb;
  --white: #ffffff;

  --blue: #0052b4;
  --purple: #7b1fa2;
  --green: #57a626;
  --yellow: #fdb913;
  --orange: #f37021;

  --grad-brand: linear-gradient(115deg, #0052b4 0%, #5b2bb0 60%, #7b1fa2 100%);
  --grad-spectrum: linear-gradient(90deg, #7b1fa2, #0052b4 28%, #57a626 56%, #fdb913 80%, #f37021);
  --grad-gold: linear-gradient(180deg, #ffe28a 0%, #fdb913 55%, #c98a0b 100%);

  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;

  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;

  --shadow-sm: 0 2px 12px rgba(7, 26, 58, .06);
  --shadow-md: 0 18px 42px -18px rgba(7, 26, 58, .18);
  --shadow-lg: 0 36px 76px -28px rgba(7, 26, 58, .32);

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ---------- Base & Guaranteed Smooth Scroll ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  padding-top: 76px;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  overflow-y: auto;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin: 0;
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; }

.container { width: min(1180px, 100% - 3rem); margin-inline: auto; position: relative; z-index: 2; }
.img-top { object-position: center top !important; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 999; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; }

:focus-visible { outline: 3px solid rgba(0, 82, 180, .45); outline-offset: 3px; border-radius: 8px; }
.todo { color: var(--orange); font-weight: 600; font-size: .82em; }

/* ---------- 3D Chrome + Brand-Color Icons ---------- */
.icon3d {
  width: 64px;
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(7, 26, 58, .16));
  transition: transform .45s var(--ease);
}
.icon3d--sm { width: 52px; height: 52px; }
.icon3d--lg { width: 84px; height: 84px; }
.section--dark .icon3d { filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .48)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  max-width: 100%;
  padding: .85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
  white-space: normal;
  word-break: break-word;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn i { flex-shrink: 0; font-size: .9em; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn i { font-size: .86em; }
.btn--sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn--lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn--primary { background: var(--grad-brand); color: #fff; box-shadow: 0 14px 28px -12px rgba(0, 82, 180, .6); }
.btn--primary:hover { box-shadow: 0 18px 34px -12px rgba(123, 31, 162, .62); }
.btn--ghost { background: rgba(255, 255, 255, .92); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: #fff; }
.btn--light { background: #fff; color: var(--navy); }
.btn--wa { background: #fff; color: #128c3e; border-color: rgba(37, 211, 102, .45); }
.btn--wa:hover { background: #25d366; color: #fff; border-color: #25d366; }

/* ---------- Fixed Header (Always pinned to top) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-bottom: 1px solid rgba(226, 232, 242, .65);
  transition: box-shadow .3s, border-color .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(7, 26, 58, .28); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.25rem; height: 76px; }

.brand { display: inline-flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.brand__mark { width: 46px; height: 46px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.24rem; color: var(--navy); letter-spacing: .04em; }
.brand__sub { font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: .2rem; }

.nav-list { display: flex; align-items: center; gap: .15rem; }
.nav-link {
  display: block;
  padding: .48rem .72rem;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: color .2s, background .2s;
}
.nav-link:hover, .nav-link.active { color: var(--navy); background: var(--soft); }

.header-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  font-size: 1.1rem;
}

/* ---------- Sections & Background Photos ---------- */
.section { position: relative; padding: 5.5rem 0 8rem; overflow: clip; }
.section--white { background: var(--white); }
.section--soft { background: var(--soft); }
.section--dark {
  background: var(--navy);
  color: #fff;
}

.section__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}
.section__bg--why {
  background-image:
    linear-gradient(180deg, #071a3a 0%, rgba(7, 26, 58, .88) 18%, rgba(7, 26, 58, .88) 82%, #071a3a 100%),
    url('../assets/img/bg-arquitectura.jpg');
}
.section__bg--anniversary {
  background-image:
    linear-gradient(180deg, #071a3a 0%, rgba(7, 26, 58, .72) 20%, rgba(7, 26, 58, .72) 80%, #071a3a 100%),
    url('../assets/img/bg-aniversario-oscuro.jpg');
}
.section__bg--contact {
  background-image:
    linear-gradient(180deg, #f4f7fb 0%, rgba(244, 247, 251, .84) 18%, rgba(244, 247, 251, .88) 82%, #f4f7fb 100%),
    url('../assets/img/bg-contacto-reunion.jpg');
}

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.5rem; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.eyebrow--light { color: rgba(255, 255, 255, .74); }
.eyebrow--gold { color: var(--yellow); }
.section-title { font-size: clamp(2rem, 3.6vw, 2.85rem); font-weight: 800; }
.section-sub { margin-top: 1rem; font-size: 1.06rem; color: var(--muted); }
.section--dark .section-title { color: #fff; }
.section--dark .section-sub { color: rgba(255, 255, 255, .74); }

/* ---------- Curved Section Dividers (Overlaps preceding section seamlessly!) ---------- */
.curve {
  background: transparent;
  line-height: 0;
  margin-top: -76px;
  margin-bottom: -1px;
  position: relative;
  z-index: 4;
  pointer-events: none;
}
.curve svg { display: block; width: 100%; height: 76px; }
.curve__fill { fill: var(--to); }
.curve__line { fill: none; stroke: url(#spectrum); stroke-width: 2.5; vector-effect: non-scaling-stroke; }

/* ---------- 01 · Hero ---------- */
.hero { position: relative; padding: 4.5rem 0 6.5rem; overflow: clip; background: #fff; }
.hero__bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, .84) 0%, rgba(255, 255, 255, .82) 78%, #ffffff 100%),
    url('../assets/img/bg-hero-oficina.jpg');
  background-size: cover;
  background-position: center;
  pointer-events: none;
  z-index: 0;
}
.hero__grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 4.5rem; align-items: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem 1rem .42rem .48rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .95);
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.kicker img { width: 22px; height: 22px; object-fit: contain; }

.hero__title { font-size: clamp(2.45rem, 4.8vw, 3.9rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; }
.text-gradient {
  display: block;
  background: linear-gradient(100deg, var(--blue), var(--purple) 55%, var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { margin-top: 1.45rem; max-width: 540px; font-size: 1.1rem; color: var(--muted); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }

.hero-photo { position: relative; max-width: 455px; margin-left: auto; }
.hero-photo::before {
  content: '';
  position: absolute;
  inset: 18px -18px -18px 18px;
  border-radius: 40px;
  background: var(--grad-spectrum);
  opacity: .92;
  z-index: 0;
}
.hero-photo__frame {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: 36px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: var(--shadow-lg);
  background: #e6ecf5;
}
.hero-photo__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}

.seal {
  position: absolute;
  z-index: 2;
  left: -46px;
  bottom: 40px;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--navy-2), var(--navy));
  box-shadow: 0 24px 40px -14px rgba(7, 26, 58, .55), inset 0 0 0 1px rgba(255, 255, 255, .14);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  line-height: 1;
}
.seal__laurel { position: absolute; top: 20px; width: 30px; height: 96px; color: var(--yellow); opacity: .92; }
.seal__laurel--l { left: 11px; }
.seal__laurel--r { right: 11px; transform: scaleX(-1); }
.seal__num {
  font-family: var(--font-display);
  font-size: 2.55rem;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.seal__txt { font-size: .68rem; font-weight: 800; letter-spacing: .3em; margin-top: .15rem; padding-left: .3em; }
.seal__yrs { font-size: .62rem; color: rgba(255, 255, 255, .68); margin-top: .32rem; letter-spacing: .08em; }

/* Laurel Awards Strip */
.awards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 4.25rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--line);
}
.award { display: flex; align-items: center; justify-content: center; gap: .4rem; }
.award__laurel { width: 30px; height: 84px; flex-shrink: 0; color: #b9c5d6; }
.award__laurel--r { transform: scaleX(-1); }
.award__body { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.award__body .icon3d { margin-bottom: .45rem; }
.award__body strong { font-family: var(--font-display); font-size: .95rem; color: var(--navy); line-height: 1.25; }
.award__body span { margin-top: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* ---------- 02 · Servicios ---------- */
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 2rem;
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .3rem;
  padding: 1.7rem 1rem 1.55rem;
  border: 0;
  background: #f9fbfd;
  cursor: pointer;
  transition: background .3s;
}
.tab .icon3d { margin-bottom: .55rem; }
.tab strong { font-family: var(--font-display); font-size: 1rem; color: var(--navy); }
.tab span { font-size: .85rem; color: var(--muted); }
.tab::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
  transform: translateX(-50%);
  transition: width .35s var(--ease);
}
.tab:hover { background: #fff; }
.tab:hover .icon3d { transform: translateY(-4px); }
.tab.is-active { background: #fff; }
.tab.is-active::after { width: 58%; }

.panel {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 3.25rem;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}
.panel.is-active { display: grid; animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.panel__photo {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #e6ecf5;
}
.panel__photo img { width: 100%; height: 100%; object-fit: cover; }

.panel__body { padding-right: .75rem; }
.panel__body h3 { font-size: 1.85rem; }
.panel__body > p { margin-top: .85rem; color: var(--muted); }
.panel__body h4 { margin-top: 1.5rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.checklist { margin-top: .75rem; display: grid; gap: .58rem; }
.checklist li { position: relative; padding-left: 1.85rem; font-size: .96rem; }
.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .22rem;
  width: 1.18rem;
  height: 1.18rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
}
.checklist li::after {
  content: '';
  position: absolute;
  left: .41rem;
  top: .45rem;
  width: .34rem;
  height: .56rem;
  border: solid var(--accent);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.panel__for { margin: 1.45rem 0 1.7rem; padding: 1rem 1.15rem; border-radius: var(--r-sm); background: var(--soft); font-size: .93rem; color: var(--muted); }
.panel__for strong { color: var(--navy); }

/* ---------- 03 · Por qué COSEGI (4-column unified dark hairline card) ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(8px);
}
.feature {
  background: rgba(7, 26, 58, .88);
  padding: 2.35rem 1.85rem 2.5rem;
  transition: background .3s;
}
.feature:hover { background: rgba(12, 39, 84, .95); }
.feature:hover .icon3d { transform: translateY(-4px) rotate(-2deg); }
.feature .icon3d { margin-bottom: 2.1rem; }
.feature p { font-size: .95rem; color: rgba(255, 255, 255, .68); }
.feature strong { color: #fff; font-weight: 700; }

.diff-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-top: 2.75rem;
  text-align: center;
}
.diff-bar p { color: rgba(255, 255, 255, .82); }
.diff-bar strong { color: var(--yellow); }

/* ---------- 04 · Nosotros ---------- */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: 2.75rem; max-width: 920px; margin: 0 auto; }
.founder { text-align: center; }
.founder__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 4px solid #fff;
  background: #e6ecf5;
}
.founder__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform .6s var(--ease); }
.founder:hover .founder__photo img { transform: scale(1.03); }
.founder__body { padding: 1.65rem 1rem 0; }
.founder__role { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--purple); }
.founder:nth-child(2) .founder__role { color: var(--blue); }
.founder__body h3 { margin-top: .4rem; font-size: 1.55rem; }
.founder__body p { margin-top: .7rem; color: var(--muted); }

.philosophy { margin: 4.25rem auto 3rem; max-width: 760px; text-align: center; }
.philosophy p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.3vw, 1.72rem);
  font-weight: 600;
  line-height: 1.42;
  color: var(--navy);
}

.pillars { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }
.pillars li {
  width: 170px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1.55rem 1rem 1.35rem;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, #f8fafd);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillars li:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pillars strong { font-family: var(--font-display); font-size: .98rem; color: var(--navy); }

/* ---------- 05 · 10 Años ---------- */
.emblem { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 2.5rem; }
.emblem__laurel { width: 56px; height: 140px; color: var(--yellow); }
.emblem__laurel--r { transform: scaleX(-1); }
.emblem__core {
  width: 172px;
  height: 172px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background:
    radial-gradient(circle at 35% 30%, var(--navy-2), var(--navy)) padding-box,
    conic-gradient(from 30deg, #fdb913, #f37021, #7b1fa2, #0052b4, #57a626, #fdb913) border-box;
  border: 4px solid transparent;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.emblem__core img { width: 46px; height: 46px; object-fit: contain; margin-bottom: .2rem; }
.emblem__num {
  font-family: var(--font-display);
  font-size: 3.4rem;
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.emblem__txt { font-size: .75rem; font-weight: 800; letter-spacing: .34em; padding-left: .34em; color: #fff; margin-top: .1rem; }

.timeline { max-width: 820px; margin: 0 auto 3.75rem; }
.timeline__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); margin-bottom: 2rem; }
.timeline__track::before {
  content: '';
  position: absolute;
  top: 11px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--grad-spectrum);
  opacity: .68;
}
.tl-node { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; background: none; border: 0; cursor: pointer; color: rgba(255, 255, 255, .6); }
.tl-node__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--navy); border: 2px solid rgba(255, 255, 255, .45); transition: all .3s var(--ease); }
.tl-node__year { font-family: var(--font-display); font-weight: 700; font-size: 1rem; transition: color .3s; }
.tl-node:hover { color: #fff; }
.tl-node.is-active { color: var(--yellow); }
.tl-node.is-active .tl-node__dot { background: var(--yellow); border-color: #fff; box-shadow: 0 0 0 6px rgba(253, 185, 19, .24); transform: scale(1.15); }

.timeline__display {
  text-align: center;
  padding: 2rem 2.25rem;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(7, 26, 58, .66);
  backdrop-filter: blur(8px);
  min-height: 165px;
}
.timeline__label { font-size: .75rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--yellow); }
.timeline__display h3 { color: #fff; font-size: 1.45rem; margin-top: .5rem; }
.timeline__display p { margin-top: .6rem; color: rgba(255, 255, 255, .78); }

/* Symmetric 3-photo spotlight gallery */
.memories { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 1.5rem; align-items: center; }
.memory {
  margin: 0;
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, .55);
}
.memory img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.memory:hover img { transform: scale(1.04); }
.memory figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.2rem 1.25rem 1.1rem;
  background: linear-gradient(180deg, transparent, rgba(7, 26, 58, .88));
  font-size: .86rem;
  font-weight: 600;
  color: #fff;
  text-align: center;
}

.gratitude { max-width: 680px; margin: 4rem auto 0; text-align: center; }
.gratitude h3 {
  font-size: 2.35rem;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gratitude p { margin-top: 1rem; font-size: 1.06rem; color: rgba(255, 255, 255, .82); }
.gratitude__sign { display: inline-block; margin-top: 1.4rem; font-size: .86rem; font-weight: 600; letter-spacing: .06em; color: rgba(255, 255, 255, .65); }

/* ---------- 06 · Cómo trabajamos (4-column unified hairline card) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.step { position: relative; background: #fff; padding: 2.5rem 1.75rem 2.25rem; text-align: center; transition: background .3s; }
.step:hover { background: #fafcff; }
.step:hover .icon3d { transform: translateY(-4px); }
.step__num {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .84rem;
  color: #b4c0d0;
  letter-spacing: .08em;
}
.step .icon3d { margin: 0 auto 1.5rem; }
.step h3 { font-size: 1.12rem; }
.step p { margin-top: .5rem; font-size: .93rem; color: var(--muted); }

/* ---------- Testimonios ---------- */
.quote { max-width: 820px; margin: 0 auto; text-align: center; }
.quote__stars { display: inline-flex; gap: .3rem; color: var(--yellow); font-size: 1rem; }
.quote blockquote {
  margin: 1.5rem 0 2rem;
  font-family: var(--font-display);
  font-size: clamp(1.22rem, 2.2vw, 1.62rem);
  font-weight: 600;
  line-height: 1.48;
  color: var(--navy);
  min-height: 6.5em;
}
.quote figcaption { display: inline-flex; align-items: center; gap: .9rem; text-align: left; }
.quote figcaption strong { display: block; color: var(--navy); }
.quote figcaption #tRole { font-size: .88rem; color: var(--muted); }
.quote__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  color: #fff;
  background: var(--grad-brand);
}
.quote__controls { display: flex; align-items: center; justify-content: center; gap: 1.1rem; margin-top: 2.25rem; }
.circle-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
  transition: all .25s;
}
.circle-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.dots { display: flex; gap: .45rem; }
.dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: #c9d3e0; cursor: pointer; transition: width .3s var(--ease), background .3s; }
.dot.is-active { width: 26px; background: var(--orange); }

/* ---------- 07 · Preguntas Frecuentes ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: .8rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; transition: border-color .3s, box-shadow .3s; }
.faq-item.is-open { border-color: #cdd8e6; box-shadow: var(--shadow-md); }
.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.3rem 1.5rem;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}
.faq-trigger i {
  width: 32px; height: 32px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--soft);
  color: var(--blue);
  font-size: .8rem;
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.faq-item.is-open .faq-trigger i { transform: rotate(45deg); background: var(--blue); color: #fff; }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-answer > p { overflow: hidden; padding: 0 1.5rem; color: var(--muted); }
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-item.is-open .faq-answer > p { padding-bottom: 1.4rem; }

/* ---------- 08 · Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }
.contact__info, .form {
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.wa-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  border-radius: var(--r-md);
  background: linear-gradient(120deg, #1fb457, #128c3e);
  color: #fff;
  transition: transform .25s var(--ease), box-shadow .25s;
}
.wa-card:hover { transform: translateY(-2px); box-shadow: 0 18px 30px -14px rgba(18, 140, 62, .6); }
.wa-card > i:first-child { font-size: 2rem; }
.wa-card strong { display: block; font-family: var(--font-display); }
.wa-card span span { font-size: .85rem; opacity: .88; }
.wa-card__arrow { margin-left: auto; }

.contact__list { margin-top: 1.75rem; display: grid; gap: 1.25rem; }
.contact__list li { display: flex; align-items: center; gap: 1rem; font-size: .93rem; color: var(--muted); }
.contact__list strong { display: block; color: var(--navy); font-size: .95rem; }
.contact__list a:hover { color: var(--blue); }

.social { display: flex; gap: .6rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.social__link {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--navy);
  transition: all .25s;
}
.social__link:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: block; margin-bottom: 1rem; }
.field > span { display: block; font-size: .82rem; font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fbfcfe;
  color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 82, 180, .1);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__error { margin-bottom: 1rem; padding: .75rem 1rem; border-radius: var(--r-sm); background: #fef2f2; color: #b91c1c; font-size: .9rem; font-weight: 600; }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: .5rem; }
.form__success { margin-top: 1.25rem; padding: 1.25rem; border-radius: var(--r-md); background: #f0fdf4; border: 1px solid #bbf7d0; text-align: center; }
.form__success strong { font-family: var(--font-display); color: #166534; font-size: 1.1rem; }
.form__success p { margin: .4rem 0 1rem; font-size: .93rem; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .72); }
.footer__line { height: 3px; background: var(--grad-spectrum); }
.footer__grid { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; padding: 3rem 0 2.25rem; }
.footer__brand { display: flex; align-items: center; gap: .9rem; }
.footer__mark { width: 54px; height: 54px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.footer__mark img { width: 40px; height: 40px; object-fit: contain; }
.footer__brand strong { display: block; font-family: var(--font-display); font-size: 1.2rem; color: #fff; letter-spacing: .04em; }
.footer__brand span { font-size: .9rem; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; font-size: .9rem; }
.footer__nav a:hover, .footer__bottom a:hover { color: var(--yellow); }
.footer__bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.25rem 0 1.5rem; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .84rem; }

/* ---------- Floating WhatsApp (tooltip only on hover/focus) ---------- */
.wa-float {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .7rem;
}
.wa-float__tip {
  background: var(--navy);
  color: #fff;
  font-size: .84rem;
  font-weight: 600;
  padding: .52rem .95rem;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity .25s, transform .25s var(--ease);
}
.wa-float__btn {
  width: 58px; height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  font-size: 1.75rem;
  box-shadow: 0 16px 30px -10px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease);
}
.wa-float:hover .wa-float__btn,
.wa-float:focus-visible .wa-float__btn { transform: scale(1.08); }
.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip { opacity: 1; transform: translateX(0); }

/* ---------- Safe Progressive Scroll Reveal ---------- */
.js-ready [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}
.js-ready [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-ready [data-reveal] { opacity: 1; transform: none; transition: none; }
  .panel.is-active { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav-toggle { display: grid; place-items: center; }
  .main-nav {
    position: absolute;
    top: 76px;
    left: 1rem;
    right: 1rem;
    display: none;
    padding: .75rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.is-open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-link { padding: .8rem 1rem; }
}

@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3.5rem; text-align: center; }
  .hero__lead { margin-inline: auto; }
  .hero__ctas { justify-content: center; }
  .hero-photo { margin: 0 auto; }
  .awards, .tabs, .feature-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .awards { row-gap: 2.25rem; }
  .panel { grid-template-columns: 1fr; gap: 2rem; }
  .panel__body { padding: 0; }
  .contact { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(1180px, 100% - 2rem); }
  .section { padding: 4rem 0; }
  .section-head { margin-bottom: 2.5rem; }
  .header-cta { display: none; }
  .curve { margin-top: -44px; }
  .curve svg { height: 44px; }
  .seal { left: 50%; transform: translateX(-50%); bottom: -56px; width: 120px; height: 120px; }
  .seal__laurel { height: 80px; top: 20px; }
  .seal__num { font-size: 2.2rem; }
  .hero-photo { margin-bottom: 3rem; }
  .hero-photo::before { inset: 12px -10px -10px 12px; }
  .awards { grid-template-columns: 1fr 1fr; gap: 1.75rem .5rem; }
  .award__laurel { width: 22px; height: 64px; }
  .tab { padding: 1.35rem .75rem; }
  .tab span { display: none; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .founders { grid-template-columns: 1fr; gap: 3rem; }
  .pillars li { width: calc(50% - .5rem); }
  .memories { grid-template-columns: 1fr 1fr; }
  .memories .memory--main { grid-column: 1 / -1; order: -1; aspect-ratio: 4 / 3; }
  .form__row, .form__actions { grid-template-columns: 1fr; }
  .contact__info, .form, .panel { padding: 1.5rem; }
  .emblem__laurel { width: 40px; height: 100px; }
  .emblem__core { width: 140px; height: 140px; }
  .emblem__num { font-size: 2.7rem; }
  .footer__grid, .footer__bottom { flex-direction: column; text-align: center; }
  .footer__nav { justify-content: center; }
  .wa-float__tip { display: none; }
}

/* ==========================================================================
   UPGRADED 3D MEDALLION, MULTIPAGE SUBPAGES & PREMIUM TRUST ELEMENTS
   ========================================================================== */

/* Hero Trust Pills & Floating Verification Badge */
.trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: 1.65rem;
}
.trust-pills span {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .38rem .82rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(255, 255, 255, .86);
  border: 1px solid var(--line);
}
.trust-pills i { color: var(--blue); font-size: .84rem; }

.float-badge {
  position: absolute;
  z-index: 2;
  right: -18px;
  top: 28px;
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .72rem 1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, .96);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}
.float-badge__icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(87, 166, 38, .14);
  color: var(--green);
  font-size: 1rem;
}
.float-badge strong { display: block; font-family: var(--font-display); font-size: .86rem; color: var(--navy); line-height: 1.1; }
.float-badge small { display: block; font-size: .74rem; color: var(--muted); }

/* Service Panel Dual Actions */
.panel__actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Section Centered CTA */
.section-cta { text-align: center; margin-top: 2.75rem; }

/* Visual Comparison Strip (Consultoría genérica vs. Método COSEGI) */
.compare-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 2.25rem;
}
.compare-col {
  border-radius: var(--r-lg);
  padding: 1.85rem 2rem;
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(8px);
}
.compare-col--bad { background: rgba(255, 255, 255, .04); }
.compare-col--good {
  background: linear-gradient(145deg, rgba(0, 82, 180, .32), rgba(123, 31, 162, .24));
  border-color: rgba(253, 185, 19, .36);
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .55);
}
.compare-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .86rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  margin-bottom: 1.15rem;
}
.compare-col--bad .compare-tag { background: rgba(248, 113, 113, .14); color: #fca5a5; }
.compare-col--good .compare-tag { background: rgba(253, 185, 19, .18); color: var(--yellow); }
.compare-col ul { display: grid; gap: .7rem; }
.compare-col li {
  position: relative;
  padding-left: 1.5rem;
  font-size: .95rem;
}
.compare-col--bad li { color: rgba(255, 255, 255, .6); }
.compare-col--bad li::before {
  content: '\f00d';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #f87171;
  font-size: .8rem;
}
.compare-col--good li { color: #fff; font-weight: 500; }
.compare-col--good li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: #7ee049;
  font-size: .82rem;
}

/* ==========================================================================
   3D LUXURY METALLIC 10-YEAR MEDALLION (Chrome + Sculpted Gold + Glass Dome)
   ========================================================================== */
.emblem--3d {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-bottom: 2.75rem;
  padding: 1rem 0;
}
.emblem__aura {
  position: absolute;
  width: 310px;
  height: 310px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(253, 185, 19, .24) 0%, rgba(0, 82, 180, .18) 45%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
}
.emblem--3d .emblem__laurel {
  position: relative;
  z-index: 2;
  width: 68px;
  height: 174px;
  color: url(#gold3d);
  fill: url(#gold3d);
  filter:
    drop-shadow(0 8px 14px rgba(0, 0, 0, .55))
    drop-shadow(0 0 12px rgba(253, 185, 19, .28));
  transform: translateX(8px);
}
.emblem--3d .emblem__laurel--r {
  transform: translateX(-8px) scaleX(-1);
}
.emblem--3d .emblem__laurel path {
  fill: url(#gold3d);
  stroke: rgba(255, 245, 190, .45);
  stroke-width: .4;
}

/* Sculpted 3D Beveled Metallic Coin */
.emblem__coin {
  position: relative;
  z-index: 3;
  width: 224px;
  height: 224px;
  border-radius: 50%;
  padding: 7px;
  background:
    linear-gradient(140deg, #ffffff 0%, #d2dce8 18%, #6c7c93 48%, #e8eef6 75%, #4b5a70 100%);
  box-shadow:
    0 28px 60px -14px rgba(0, 0, 0, .75),
    0 0 0 1px rgba(255, 255, 255, .28),
    inset 0 2px 4px rgba(255, 255, 255, .85),
    inset 0 -6px 10px rgba(4, 15, 36, .75);
}
.emblem__bezel {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 5px;
  background: conic-gradient(from 35deg, #fdb913, #f37021, #7b1fa2, #0052b4, #57a626, #fdb913);
  box-shadow: inset 0 2px 5px rgba(255, 255, 255, .45), inset 0 -3px 6px rgba(0, 0, 0, .5);
}
.emblem__face {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
  background:
    radial-gradient(circle at 30% 20%, #19458a 0%, #09204a 52%, #041129 100%);
  box-shadow:
    inset 0 10px 22px rgba(0, 0, 0, .65),
    inset 0 -6px 16px rgba(0, 136, 206, .18);
}
.emblem__sheen {
  position: absolute;
  top: -18%;
  left: -12%;
  width: 124%;
  height: 58%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, .04) 65%, transparent 100%);
  pointer-events: none;
}
.emblem__logo-well {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .14), rgba(4, 17, 41, .7));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .35);
  margin-bottom: .35rem;
}
.emblem__logo-well img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .5));
}
.emblem--3d .emblem__num {
  font-family: var(--font-display);
  font-size: 3.85rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, #fff6c4 0%, #ffd24c 38%, #e59400 72%, #ffe07d 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .65));
}
.emblem--3d .emblem__txt {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .34em;
  padding-left: .34em;
  color: #f1f5f9;
  text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
  margin-top: .12rem;
}
.emblem__dates {
  margin-top: .38rem;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .16em;
  color: rgba(255, 230, 148, .86);
  background: rgba(255, 255, 255, .08);
  padding: .2rem .6rem;
  border-radius: 999px;
  border: 1px solid rgba(253, 185, 19, .26);
}

/* Conversion CTA Banner */
.cta-banner {
  margin-top: 4rem;
  border-radius: var(--r-lg);
  padding: 2.75rem 3rem;
  background:
    radial-gradient(60% 100% at 90% 10%, rgba(123, 31, 162, .35), transparent 70%),
    radial-gradient(50% 80% at 10% 90%, rgba(0, 82, 180, .35), transparent 70%),
    var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-spectrum);
}
.cta-banner__text { max-width: 600px; }
.cta-banner__text h2 { color: #fff; font-size: clamp(1.55rem, 2.8vw, 2.15rem); margin-bottom: .55rem; }
.cta-banner__text p { color: rgba(255, 255, 255, .78); }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn--wa-dark { background: #25d366; color: #fff; }
.btn--wa-dark:hover { background: #1ea952; }

/* ==========================================================================
   DEDICATED SUBPAGE HEROES & LAYOUTS
   ========================================================================== */
.sub-hero {
  position: relative;
  padding: 4.5rem 0 7.5rem;
  color: #fff;
  background-color: var(--navy);
  background-size: cover;
  background-position: center;
}
.sub-hero--services {
  background-image:
    linear-gradient(180deg, rgba(7, 26, 58, .86) 0%, rgba(7, 26, 58, .8) 76%, #071a3a 100%),
    url('../assets/img/bg-arquitectura.jpg');
}
.sub-hero--about {
  background-image:
    linear-gradient(180deg, rgba(7, 26, 58, .86) 0%, rgba(7, 26, 58, .78) 76%, #071a3a 100%),
    url('../assets/img/bg-hero-oficina.jpg');
}
.sub-hero--contact {
  background-image:
    linear-gradient(180deg, rgba(7, 26, 58, .86) 0%, rgba(7, 26, 58, .78) 76%, #071a3a 100%),
    url('../assets/img/bg-contacto-reunion.jpg');
}
.sub-hero__inner { max-width: 780px; }
.sub-hero h1 { color: #fff; font-size: clamp(2.15rem, 4.2vw, 3.25rem); font-weight: 800; }
.sub-hero p { margin-top: 1.1rem; font-size: 1.08rem; color: rgba(255, 255, 255, .8); max-width: 640px; }
.sub-hero__chips { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.75rem; }
.sub-hero__chips a {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .95rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff;
  font-size: .86rem;
  font-weight: 600;
  transition: background .2s, transform .2s;
}
.sub-hero__chips a:hover { background: rgba(255, 255, 255, .2); transform: translateY(-2px); }

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .82rem;
  color: rgba(255, 255, 255, .68);
  margin-bottom: 1.25rem;
}
.breadcrumb--center { display: flex; justify-content: center; }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb i { font-size: .65rem; opacity: .6; }

/* Alternating Service Blocks (servicios.html) */
.service-blocks { display: grid; gap: 4.5rem; }
.service-block {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.service-block--rev .service-block__media { order: 2; }
.service-block__media {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.service-block__media img { width: 100%; height: 100%; object-fit: cover; }
.service-block__num {
  position: absolute;
  top: 1rem;
  left: 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .85rem;
  color: #fff;
  background: rgba(7, 26, 58, .82);
  padding: .35rem .75rem;
  border-radius: 999px;
  backdrop-filter: blur(6px);
}
.service-block__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.service-block__head .eyebrow { margin-bottom: .25rem; }
.service-block__head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.service-block__body > p { color: var(--muted); }
.service-block__body .checklist { margin-top: 1.15rem; }

/* Story Split & Expanded Founders (nosotros.html) */
.story-split {
  display: grid;
  grid-template-columns: .95fr 1.05fr;
  gap: 3.5rem;
  align-items: center;
}
.story-split__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.story-split__photo img { width: 100%; height: 100%; object-fit: cover; }
.story-split__body p { margin-top: 1rem; color: var(--muted); font-size: 1.04rem; }
.philosophy--left { text-align: left; margin: 1.75rem 0 0; padding-left: 1.25rem; border-left: 3px solid var(--purple); }

.founder--card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 1.5rem 1.5rem 2rem;
  box-shadow: var(--shadow-sm);
}
.founder__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: 1.2rem;
}
.founder__tags span {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 600;
  padding: .34rem .75rem;
  border-radius: 999px;
  background: var(--soft);
  color: var(--navy);
}
.founder__tags i { color: var(--blue); }

.pillars--rich li {
  width: 210px;
  text-align: center;
  border-top: 3px solid var(--accent, var(--blue));
}
.pillars--rich span { font-size: .84rem; color: var(--muted); line-height: 1.45; }

/* Security Assurance Note (contacto.html) */
.security-note {
  margin-top: 1.5rem;
  padding: .95rem 1.1rem;
  border-radius: var(--r-sm);
  background: var(--soft);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  font-size: .86rem;
  color: var(--muted);
}
.security-note i { color: var(--green); font-size: 1.05rem; margin-top: .15rem; }
.security-note strong { color: var(--navy); }

.anniversary--page { padding-top: 3.75rem; }

/* Prevent floating WhatsApp button from overlapping footer email */
.footer__bottom { padding-right: 4.75rem; }

@media (max-width: 980px) {
  .compare-strip,
  .service-block,
  .story-split { grid-template-columns: 1fr; gap: 2rem; }
  .service-block--rev .service-block__media { order: 0; }
  .float-badge { display: none; }
}

@media (max-width: 720px) {
  .cta-banner { padding: 2rem 1.5rem; }
  .emblem__coin { width: 176px; height: 176px; }
  .emblem--3d .emblem__num { font-size: 3rem; }
  .emblem--3d .emblem__laurel { width: 46px; height: 126px; }
  .footer__bottom { padding-right: 0; }
}

/* ==========================================================================
   LEGAL FOOTER BAR & POLICY PAGES
   ========================================================================== */
.footer__legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  flex-wrap: wrap;
  padding: 1.15rem 0;
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer__legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.4rem;
  font-size: .85rem;
}
.footer__legal-nav a {
  color: rgba(255, 255, 255, .78);
  transition: color .2s;
}
.footer__legal-nav a:hover { color: var(--yellow); }
.footer__norm {
  font-size: .78rem;
  color: rgba(255, 255, 255, .52);
  letter-spacing: .02em;
}

.form__consent {
  margin-top: 1rem;
  font-size: .8rem;
  color: var(--muted);
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  line-height: 1.5;
}
.form__consent i { color: var(--green); margin-top: .2rem; }
.form__consent a { color: var(--blue); text-decoration: underline; }

/* Legal Document Pages */
.legal-wrap { max-width: 820px; }
.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-sm);
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 2.5rem;
}
.legal-meta i { color: var(--blue); margin-right: .35rem; }

.legal-doc h2 {
  font-size: 1.35rem;
  margin-top: 2.25rem;
  margin-bottom: .75rem;
  padding-bottom: .45rem;
  border-bottom: 1px solid var(--line);
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p { color: var(--muted); margin-bottom: .9rem; }
.legal-doc a { color: var(--blue); text-decoration: underline; }
.legal-doc ul {
  margin: .5rem 0 1.15rem;
  display: grid;
  gap: .55rem;
}
.legal-doc li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--muted);
}
.legal-doc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .58rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
.legal-doc strong { color: var(--navy); }

.legal-links-box {
  margin-top: 3rem;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-md);
  background: var(--soft);
  border: 1px solid var(--line);
}
.legal-links-box strong { display: block; font-family: var(--font-display); color: var(--navy); margin-bottom: .85rem; }
.legal-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.legal-pills a {
  padding: .45rem .95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy);
  transition: all .2s;
}
.legal-pills a:hover,
.legal-pills a[aria-current="page"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (max-width: 720px) {
  .footer__legal { flex-direction: column; text-align: center; }
  .footer__legal-nav { justify-content: center; }
}

/* ==========================================================================
   10-YEAR ANIMATED STATS, INTERACTIVE DIAGNOSTIC & WHATSAPP WIDGET
   ========================================================================== */
.section-cta--dual {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .9rem;
}

.decade-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, .14);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  overflow: hidden;
  max-width: 960px;
  margin: 0 auto 3rem;
  backdrop-filter: blur(8px);
}
.decade-stat {
  background: rgba(7, 26, 58, .72);
  padding: 1.65rem 1.25rem;
  text-align: center;
}
.decade-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.decade-stat span {
  display: block;
  margin-top: .45rem;
  font-size: .84rem;
  color: rgba(255, 255, 255, .78);
}

/* Interactive 3-Step Express Diagnostic */
.diag-card {
  margin-top: 3.75rem;
  border-radius: var(--r-lg);
  padding: 2.5rem;
  background:
    radial-gradient(60% 90% at 95% 5%, rgba(123, 31, 162, .26), transparent 70%),
    radial-gradient(50% 80% at 5% 95%, rgba(0, 82, 180, .3), transparent 70%),
    var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.diag-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-spectrum);
}
.diag-card__head { text-align: center; max-width: 660px; margin: 0 auto 2.25rem; }
.diag-card__head h3 { color: #fff; font-size: clamp(1.45rem, 2.6vw, 2rem); margin-bottom: .5rem; }
.diag-card__head p { color: rgba(255, 255, 255, .76); }

.diag-steps {
  display: grid;
  gap: 1.45rem;
  max-width: 880px;
  margin: 0 auto 2rem;
}
.diag-label {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .92rem;
  color: var(--yellow);
  margin-bottom: .65rem;
}
.diag-options {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.diag-opt {
  padding: .62rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .88);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s var(--ease);
}
.diag-opt:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .45); }
.diag-opt.is-selected {
  background: #fff;
  color: var(--navy);
  border-color: #fff;
  box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5);
}

.diag-result {
  max-width: 880px;
  margin: 0 auto;
  padding: 1.5rem 1.75rem;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.diag-result__info { flex: 1; min-width: 260px; }
.diag-result__tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--yellow);
  margin-bottom: .35rem;
}
.diag-result__info strong { display: block; font-family: var(--font-display); font-size: 1.12rem; color: #fff; }
.diag-result__info p { margin-top: .35rem; font-size: .86rem; color: rgba(255, 255, 255, .76); }

/* Interactive Floating WhatsApp Quick-Chat Widget */
.wa-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 5.75rem;
  width: min(350px, calc(100vw - 2rem));
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 28px 60px -16px rgba(7, 26, 58, .38);
  border: 1px solid var(--line);
  overflow: hidden;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(.97);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.wa-widget.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.wa-widget__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.15rem;
  background: linear-gradient(120deg, #071a3a, #0c2754);
  color: #fff;
}
.wa-widget__head img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  object-fit: contain;
}
.wa-widget__head strong { display: block; font-family: var(--font-display); font-size: .95rem; line-height: 1.15; }
.wa-widget__head span { display: block; font-size: .75rem; color: #86efac; }
.wa-widget__close {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  cursor: pointer;
}
.wa-widget__body { padding: 1.1rem 1.15rem 1.2rem; }
.wa-widget__greet { font-size: .86rem; color: var(--muted); margin-bottom: .95rem; line-height: 1.5; }
.wa-widget__greet strong { color: var(--navy); }
.wa-widget__list { display: grid; gap: .55rem; }
.wa-widget__opt {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .7rem .85rem;
  border-radius: 12px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .86rem;
  font-weight: 600;
  color: var(--navy);
  transition: all .2s;
}
.wa-widget__opt i:first-child { color: #16a34a; width: 18px; text-align: center; }
.wa-widget__opt i:last-child { margin-left: auto; font-size: .75rem; color: var(--muted); }
.wa-widget__opt:hover { background: #ecfdf5; border-color: #86efac; transform: translateX(2px); }

@media (max-width: 900px) {
  .decade-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .diag-card { padding: 1.65rem 1.25rem; }
  .decade-stats { grid-template-columns: 1fr 1fr; }
}

/* Responsive Button & WhatsApp Overflow Protection */
.wa-card strong { display: block; font-family: var(--font-display); }
.wa-card span span { font-size: .85rem; opacity: .88; }
.diag-result__info { min-width: 0; }
.diag-result .btn { flex-shrink: 0; }

@media (max-width: 720px) {
  .btn--lg { padding: .92rem 1.25rem; font-size: .94rem; }
  .hero__ctas,
  .panel__actions,
  .section-cta--dual,
  .cta-banner__actions {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .hero__ctas .btn,
  .panel__actions .btn,
  .section-cta--dual .btn,
  .cta-banner__actions .btn,
  .diag-result .btn,
  .form__actions .btn {
    width: 100%;
  }
  .diag-result {
    padding: 1.2rem;
    flex-direction: column;
    align-items: stretch;
  }
  .wa-card { padding: 1rem 1.05rem; gap: .75rem; }
  .wa-float { right: 1rem; bottom: 1rem; }
  .wa-widget { right: 1rem; bottom: 5.25rem; width: calc(100vw - 2rem); }
}
.wa-card { max-width: 100%; }
.wa-card > span { min-width: 0; flex: 1; }
.wa-card > i { flex-shrink: 0; }

/* ==========================================================================
   MOBILE CENTERING, SYMMETRY & ZERO-OVERFLOW LOCK (320px – 768px)
   ========================================================================== */
main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.hero__grid > *,
.panel > *,
.contact > *,
.service-block > *,
.story-split > *,
.founders > *,
.compare-strip > *,
.feature-grid > *,
.steps > *,
.decade-stats > *,
.footer__grid > *,
.footer__bottom > * {
  min-width: 0;
}

.contact__list a,
.footer__bottom a,
.legal-doc a {
  overflow-wrap: anywhere;
  word-break: break-word;
}

@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding-inline: 1.15rem;
    margin-inline: auto;
  }

  .header-inner {
    gap: .75rem;
  }

  .hero {
    padding: 2.75rem 0 5.5rem;
  }

  .hero__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .trust-pills {
    justify-content: center;
  }

  .hero-photo {
    width: 100%;
    max-width: 340px;
    margin: 0 auto 3.5rem;
  }

  .hero-photo::before {
    inset: 8px -6px -8px 6px;
    border-radius: 30px;
  }

  .hero-photo__frame {
    border-radius: 26px;
    border-width: 4px;
  }

  .seal {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: -52px;
    width: 116px;
    height: 116px;
  }

  .awards {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem .75rem;
    margin-top: 3rem;
  }

  .award {
    gap: .25rem;
  }

  .award__laurel {
    width: 18px;
    height: 58px;
  }

  .award__body strong {
    font-size: .86rem;
  }

  .award__body span {
    font-size: .62rem;
    letter-spacing: .06em;
  }

  .pillars li,
  .pillars--rich li {
    width: calc(50% - .5rem);
    padding: 1.25rem .75rem;
  }

  .emblem--3d {
    gap: 0;
    padding: .5rem 0;
    max-width: 100%;
  }

  .emblem__aura {
    width: 240px;
    height: 240px;
  }

  .emblem__coin {
    width: 164px;
    height: 164px;
  }

  .emblem--3d .emblem__num {
    font-size: 2.8rem;
  }

  .emblem--3d .emblem__laurel {
    width: 42px;
    height: 116px;
    transform: translateX(4px);
  }

  .emblem--3d .emblem__laurel--r {
    transform: translateX(-4px) scaleX(-1);
  }

  .timeline__display {
    padding: 1.4rem 1.15rem;
  }

  .memories {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .memories .memory,
  .memories .memory--main {
    grid-column: auto;
    order: 0;
    aspect-ratio: 4 / 3;
  }

  .compare-col {
    padding: 1.35rem 1.2rem;
  }

  .cta-banner {
    padding: 1.75rem 1.25rem;
    text-align: center;
    justify-content: center;
  }

  .cta-banner__text {
    margin-inline: auto;
  }

  .footer__grid,
  .footer__legal,
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-right: 0;
  }

  .footer__brand {
    flex-direction: column;
    text-align: center;
  }

  .footer__nav,
  .footer__legal-nav {
    justify-content: center;
  }
}

@media (max-width: 460px) {
  .awards {
    grid-template-columns: 1fr;
    gap: 1.4rem;
  }

  .decade-stats {
    grid-template-columns: 1fr 1fr;
  }

  .pillars li,
  .pillars--rich li {
    width: 100%;
  }
}

/* WhatsApp Floating Button & Popup Layering Fix (Always above fixed header) */
.wa-float {
  z-index: 1100;
}
.wa-widget {
  z-index: 1110;
  max-height: calc(100dvh - 110px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-width: 720px) {
  .wa-widget {
    left: 1rem;
    right: 1rem;
    width: auto;
    bottom: 5.25rem;
    max-height: calc(100dvh - 104px);
  }
}
