/* Uniofken · Propuesta de rediseño (demo estática)
   Variables centralizadas: colores, tipografía, espacios. */

@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-soft.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --paper: #f7f5f0;
  --paper-2: #efebe3;
  --white: #ffffff;
  --ink: #102440;
  --ink-soft: #3d4b5f;
  --muted: #5b6676;
  --line: #d9d3c7;
  --brand: #00449c;       /* azul del isotipo */
  --brand-2: #007db2;
  --brand-tint: #e5edf7;
  --warm: #c2410c;        /* naranja del isotipo, oscurecido para texto */
  --wa: #157347;          /* verde WhatsApp con contraste AA sobre blanco */
  --wa-hover: #0f5c38;
  --focus: #f5a400;
  --night: #0c1d36;

  /* Espectro del isotipo (solo decorativo) */
  --s1: #007db2; --s2: #5d9f18; --s3: #9dc428; --s4: #f5dc00;
  --s5: #ffb224; --s6: #ff8b00; --s7: #ee3130; --s8: #c71038; --s9: #00449c;

  /* Tipografía */
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-xs: 0.8125rem;
  --fs-sm: 0.9375rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem);
  --fs-2xl: clamp(1.9rem, 1.4rem + 2.2vw, 3rem);
  --fs-hero: clamp(2.2rem, 1.5rem + 3.4vw, 4.1rem);

  /* Espacios */
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.5rem; --sp-6: 2rem; --sp-7: 3rem; --sp-8: 4.5rem; --sp-9: 6.5rem;
  --gutter: clamp(1rem, 0.6rem + 2vw, 2.5rem);
  --maxw: 1180px;
  --radius: 14px;
  --radius-lg: 28px;
  --header-h: 72px;
  --shadow: 0 1px 2px rgba(16, 36, 64, .06), 0 8px 24px rgba(16, 36, 64, .08);
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--sp-4);
  color: var(--ink);
  font-variation-settings: "SOFT" 60;
}
h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); line-height: 1.25; }
p { margin: 0 0 var(--sp-4); }
ul { padding-left: 1.1rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--sp-4); top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: var(--sp-3) var(--sp-4); border-radius: 8px;
}
.skip-link:focus { top: var(--sp-3); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); margin-bottom: var(--sp-4);
}
.eyebrow::before {
  content: ""; width: 22px; height: 6px; border-radius: 6px;
  background: linear-gradient(90deg, var(--s1), var(--s3), var(--s5), var(--s7), var(--s9));
}
.lead { font-size: var(--fs-lg); color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.25rem; border-radius: 999px;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-hover); color: #fff; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-ghost { border-color: currentColor; color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: .55rem 1rem; font-size: var(--fs-sm); }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* Aviso de demo */
.demo-bar {
  background: var(--night); color: #dfe7f2; font-size: var(--fs-xs);
  text-align: center; padding: .45rem var(--gutter); letter-spacing: .02em;
}
.demo-bar strong { color: #fff; font-weight: 600; }

/* Cabecera */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 240, .94);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: var(--sp-5); min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; }
.brand img { width: 132px; height: auto; }
.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--sp-1); }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem;
  color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm); border-radius: 8px;
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--paper-2); }
.header-cta { flex: none; }
.menu-toggle {
  display: none; margin-left: auto; width: 48px; height: 48px; border: 1px solid var(--line);
  border-radius: 12px; background: var(--white); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

/* Hero */
.hero { padding: clamp(2rem, 1rem + 4vw, 5rem) 0 var(--sp-8); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4.5rem); align-items: center; }
.hero h1 { max-width: 16ch; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin: var(--sp-6) 0 var(--sp-5); }
.hero-call { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.hero-call a { font-weight: 600; white-space: nowrap; }
.hero-places { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-5); }
.hero-places li {
  display: inline-flex; align-items: center; gap: .4rem; font-size: var(--fs-sm); font-weight: 500;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .8rem;
}
.hero-places svg { width: 16px; height: 16px; color: var(--brand); }

/* Elemento distintivo: el "iris" cromático alrededor de la fotografía */
.iris { position: relative; width: min(100%, 460px); margin-inline: auto; aspect-ratio: 1; }
.iris-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.iris-photo {
  position: absolute; inset: 13%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 20px 50px rgba(16, 36, 64, .18); background: var(--brand-tint);
}
.iris-photo img { width: 100%; height: 100%; object-fit: cover; }
.iris figcaption {
  position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%);
  font-size: .72rem; color: var(--muted); background: var(--paper); padding: .1rem .6rem; border-radius: 999px; white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  .iris-ring { animation: iris-turn 90s linear infinite; }
  @keyframes iris-turn { to { transform: rotate(360deg); } }
}

/* Franja de datos rápidos */
.quick { background: var(--white); border-block: 1px solid var(--line); }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.quick-item { padding: var(--sp-5) var(--sp-5) var(--sp-5) 0; }
.quick-item + .quick-item { border-left: 1px solid var(--line); padding-left: var(--sp-5); }
.quick-item h2 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; margin-bottom: var(--sp-2); }
.quick-item p { margin: 0; font-weight: 500; }
.quick-item a { font-weight: 600; }

/* Secciones */
.section { padding: var(--sp-9) 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: end; margin-bottom: var(--sp-7); }
.section-head p { color: var(--ink-soft); margin: 0; max-width: 34rem; }
.section-alt { background: var(--white); }

/* Servicios: filas editoriales, no tarjetas idénticas */
.services { border-top: 1px solid var(--ink); }
.service {
  display: grid; grid-template-columns: 4.5rem 1.1fr 1.3fr auto; gap: var(--sp-5);
  padding: var(--sp-6) 0; border-bottom: 1px solid var(--line); align-items: start;
}
.service-num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--brand); }
.service h3 { font-size: var(--fs-xl); margin-bottom: var(--sp-2); }
.service p { color: var(--ink-soft); margin-bottom: var(--sp-3); }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.tags li { font-size: var(--fs-xs); background: var(--paper-2); border-radius: 999px; padding: .25rem .65rem; color: var(--ink-soft); }
.service-actions { display: flex; flex-direction: column; gap: var(--sp-2); align-items: flex-end; }

/* Condiciones */
.conditions { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-6) 0 0; }
.conditions a {
  display: inline-flex; align-items: center; min-height: 44px; padding: .4rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 500; font-size: var(--fs-sm);
}
.conditions a:hover { border-color: var(--brand); color: var(--brand); }

/* Equipo */
.team-intro { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--sp-7); align-items: start; margin-bottom: var(--sp-7); }
.founder { display: grid; grid-template-columns: 140px 1fr; gap: var(--sp-5); align-items: center; background: var(--paper); border-radius: var(--radius-lg); padding: var(--sp-5); }
.founder img { border-radius: 50%; width: 140px; height: 140px; object-fit: cover; }
.founder h3 { margin-bottom: var(--sp-1); }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--sp-6) var(--sp-5); list-style: none; padding: 0; margin: 0; }
.doc img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); background: var(--paper-2); margin-bottom: var(--sp-3); }
.doc h3 { font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; margin: 0 0 .15rem; line-height: 1.35; }
.doc p { font-size: var(--fs-xs); color: var(--muted); margin: 0; line-height: 1.45; }
.note { font-size: var(--fs-xs); color: var(--muted); border-left: 3px solid var(--line); padding-left: var(--sp-3); margin-top: var(--sp-6); }

/* Tecnología (banda oscura) */
.band-dark { background: var(--night); color: #dbe4f0; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .eyebrow { color: #8fc3ff; }
.band-dark a { color: #9fd0ff; }
.tech-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: var(--sp-7); align-items: start; }
.tech-list { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.tech-list li { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.tech-list li::before { counter-increment: t; content: counter(t, decimal-leading-zero); font-family: var(--font-display); color: var(--s5); font-size: 1.1rem; }
.tech-list strong { color: #fff; font-weight: 600; display: block; }
.tech-list span { font-size: var(--fs-sm); color: #b8c6d9; }

/* Historia */
.story { display: grid; grid-template-columns: auto 1fr; gap: var(--sp-7); align-items: center; }
.story-year { font-family: var(--font-display); font-size: clamp(4rem, 2rem + 8vw, 8.5rem); line-height: .9; color: var(--brand); font-weight: 400; }
.story-year small { display: block; font-family: var(--font-body); font-size: var(--fs-sm); color: var(--muted); letter-spacing: .04em; font-weight: 500; margin-top: var(--sp-3); }

/* Testimonios */
.quotes { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: var(--sp-5); }
.quote { margin: 0; background: var(--white); border-radius: var(--radius-lg); padding: var(--sp-6); border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote:first-child { background: var(--brand); color: #fff; border-color: var(--brand); }
.quote:first-child blockquote p { font-size: var(--fs-lg); }
.quote:first-child figcaption { color: #d4e2f6; }
.quote blockquote { margin: 0 0 var(--sp-5); flex: 1; }
.quote blockquote p { font-family: var(--font-display); font-size: 1.08rem; line-height: 1.5; margin: 0; }
.quote figcaption { font-size: var(--fs-sm); color: var(--muted); }
.quote figcaption strong { display: block; font-weight: 600; color: inherit; }
.quote:first-child figcaption strong { color: #fff; }

/* Seguros */
.insurers { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--sp-6); align-items: start; background: var(--paper-2); border-radius: var(--radius-lg); padding: var(--sp-6); }
.insurers ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.insurers li { background: var(--white); border-radius: 999px; padding: .35rem .85rem; font-size: var(--fs-sm); font-weight: 500; }
.insurers .verified { border: 2px solid var(--brand); }

/* Preguntas frecuentes */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--sp-5) 2.5rem var(--sp-5) 0; position: relative;
  font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: .4rem; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 var(--sp-5); color: var(--ink-soft); }

/* Sedes y contacto */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-5); margin-bottom: var(--sp-7); }
.place { background: var(--white); border-radius: var(--radius-lg); padding: var(--sp-6); border: 1px solid var(--line); }
.place-tag { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--warm); }
.place h3 { font-size: var(--fs-xl); margin: var(--sp-2) 0 var(--sp-3); }
.place address { font-style: normal; color: var(--ink-soft); margin-bottom: var(--sp-4); }
.phones { list-style: none; padding: 0; margin: 0 0 var(--sp-5); display: flex; flex-wrap: wrap; gap: .4rem; }
.phones a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 .9rem; border-radius: 10px; background: var(--brand-tint); text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; }
.phones a:hover { background: var(--brand); color: #fff; }
.place-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--sp-7); align-items: start; }
.wa-card { background: var(--wa); color: #fff; border-radius: var(--radius-lg); padding: var(--sp-6); }
.wa-card h3 { color: #fff; }
.wa-card p { color: #e1f3e8; }
.wa-card .btn { background: #fff; color: var(--wa); }
.wa-card .btn:hover { background: var(--night); color: #fff; }
.wa-card .small { margin: var(--sp-4) 0 0; color: #cdebd9; }
.contact-alt { margin-top: var(--sp-5); font-size: var(--fs-sm); color: var(--ink-soft); }

/* Formulario demostrativo */
.form { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--sp-6); }
.form-badge { display: inline-block; font-size: var(--fs-xs); font-weight: 600; background: #fff4d6; color: #6b4a00; border-radius: 6px; padding: .25rem .6rem; margin-bottom: var(--sp-3); }
.field { margin-bottom: var(--sp-4); }
.field label { display: block; font-weight: 600; font-size: var(--fs-sm); margin-bottom: .35rem; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .7rem .85rem; border: 1px solid #b9b2a4; border-radius: 10px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.error { color: #b42318; font-size: var(--fs-xs); margin: .3rem 0 0; }
.error:empty { display: none; }
[aria-invalid="true"] { border-color: #b42318 !important; }
.form-status { margin-top: var(--sp-4); padding: var(--sp-4); border-radius: 10px; background: #fff4d6; color: #5c3f00; font-weight: 600; }
.form-status[hidden] { display: none; }

/* Páginas interiores */
.page-hero { padding: var(--sp-8) 0 var(--sp-7); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: var(--fs-2xl); max-width: 22ch; }
.breadcrumb { font-size: var(--fs-sm); margin-bottom: var(--sp-4); }
.breadcrumb a { color: var(--muted); display: inline-flex; align-items: center; min-height: 44px; }
.toc { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: var(--sp-5) 0 0; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 1rem; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 500; font-size: var(--fs-sm); }
.toc a:hover { border-color: var(--brand); color: var(--brand); }
.detail-block { padding: var(--sp-8) 0; border-bottom: 1px solid var(--line); }
.detail-block > .wrap > header { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6); align-items: end; margin-bottom: var(--sp-6); }
.detail-block > .wrap > header p { margin: 0; color: var(--ink-soft); }
.group-title { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--warm); font-weight: 700; margin: var(--sp-6) 0 var(--sp-3); }
.def-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 var(--sp-7); margin: 0; }
.def-list > div { padding: var(--sp-4) 0; border-top: 1px solid var(--line); }
.def-list dt { font-weight: 600; margin-bottom: .2rem; }
.def-list dd { margin: 0; color: var(--ink-soft); font-size: var(--fs-sm); }
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-top: var(--sp-6); padding: var(--sp-5); background: var(--white); border-radius: var(--radius); border: 1px solid var(--line); }
.cta-inline p { margin: 0; flex: 1 1 260px; }
.disclaimer { font-size: var(--fs-sm); color: var(--muted); background: var(--paper-2); padding: var(--sp-4) var(--sp-5); border-radius: var(--radius); margin-top: var(--sp-6); }

.bio-list { list-style: none; margin: 0; padding: 0; }
.bio { display: grid; grid-template-columns: 160px 1fr; gap: var(--sp-6); padding: var(--sp-6) 0; border-bottom: 1px solid var(--line); }
.bio img { width: 160px; height: 160px; object-fit: cover; border-radius: 50% 50% var(--radius) var(--radius); }
.bio h2 { font-size: var(--fs-xl); margin-bottom: var(--sp-1); }
.bio .spec { color: var(--brand); font-weight: 600; margin-bottom: var(--sp-3); }
.bio p { color: var(--ink-soft); }
.bio ul { color: var(--ink-soft); font-size: var(--fs-sm); margin: 0; }

/* Pie */
.site-footer { background: var(--night); color: #b8c6d9; padding: var(--sp-8) 0 var(--sp-6); font-size: var(--fs-sm); }
.site-footer a { color: #e6eef8; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: var(--sp-6); }
.site-footer h2 { font-family: var(--font-body); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: #fff; font-weight: 600; margin-bottom: var(--sp-3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer li { margin-bottom: 0; }
.footer-logo { background: #fff; border-radius: 12px; padding: .6rem .8rem; display: inline-block; margin-bottom: var(--sp-4); }
.footer-logo img { width: 120px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--sp-7); padding-top: var(--sp-5); display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: space-between; }

/* WhatsApp flotante (escritorio) y barra inferior (móvil) */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; display: inline-flex; align-items: center; gap: .5rem;
  background: var(--wa); color: #fff; text-decoration: none; font-weight: 600; border-radius: 999px;
  padding: .8rem 1.15rem .8rem .95rem; box-shadow: 0 10px 30px rgba(21, 115, 71, .35); min-height: 52px;
}
.wa-float:hover { background: var(--wa-hover); color: #fff; }
.wa-float svg { width: 24px; height: 24px; }
.mobile-bar { display: none; }

/* Revelado suave: solo si JS añadió .js y el usuario no pidió menos movimiento */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
  .js .reveal.is-in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

@media (min-width: 1041px) { .team { grid-template-columns: repeat(7, 1fr); } }

/* Responsive */
@media (max-width: 1040px) {
  .nav ul { gap: 0; }
  .nav a { padding: 0 .55rem; }
  .service { grid-template-columns: 3.5rem 1fr; }
  .service > :nth-child(3) { grid-column: 2; }
  .service-actions { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .menu-toggle { display: inline-flex; }
  .header-cta { display: none; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--paper);
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow); display: none; margin: 0;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; padding: var(--sp-3) var(--gutter) var(--sp-5); }
  .nav a { min-height: 52px; font-size: 1.05rem; padding: 0 .5rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .no-js .nav { position: static; display: block; box-shadow: none; border: 0; background: transparent; }
  .no-js .menu-toggle { display: none; }
  .no-js .header-in { flex-wrap: wrap; }
  .no-js .nav ul { flex-direction: row; flex-wrap: wrap; padding: 0 0 var(--sp-3); }
  .no-js .nav a { border: 0; min-height: 44px; font-size: var(--fs-sm); }

  .hero { padding-top: var(--sp-6); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-6); }
  .iris { width: min(70vw, 280px); }
  .brand img { width: 112px; }
  .demo-long { display: none; }
  .quick-grid { grid-template-columns: 1fr; }
  .quick-item, .quick-item + .quick-item { border-left: 0; padding: var(--sp-4) 0; }
  .quick-item + .quick-item { border-top: 1px solid var(--line); }
  .section { padding: var(--sp-8) 0; }
  .section-head, .team-intro, .tech-grid, .contact-grid, .insurers,
  .detail-block > .wrap > header { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .def-list { grid-template-columns: 1fr; }
  .story { grid-template-columns: 1fr; gap: var(--sp-4); }

  /* Barra inferior móvil: reemplaza al botón flotante */
  .wa-float { display: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: .5rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    padding: .55rem .75rem calc(.55rem + env(safe-area-inset-bottom)); background: rgba(247,245,240,.97); border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { min-height: 48px; padding: .6rem .5rem; font-size: .95rem; }
  .site-footer { padding-bottom: calc(var(--sp-6) + 76px); }
}

@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
  .founder { grid-template-columns: 1fr; text-align: left; }
  .founder img { width: 112px; height: 112px; }
  .team { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5) var(--sp-4); }
  .bio { grid-template-columns: 1fr; gap: var(--sp-4); }
  .bio img { width: 120px; height: 120px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  .service { grid-template-columns: 1fr; gap: var(--sp-3); }
  .service > :nth-child(3), .service-actions { grid-column: 1; }
  .service-num { font-size: 1.5rem; }
  .form, .place, .wa-card, .insurers, .quote { padding: var(--sp-5); }
}
