/* ==========================================================
   A&Co. Arteaga y Compañía — estilos
   Tipografía: IBM Plex Serif (títulos y texto) + IBM Plex Sans (etiquetas, menú, botones)
   Colores: rojo vivo (logo) · rojo oscuro #7a1c1c · negro · blanco
   ========================================================== */

@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 400; font-style: italic; font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Serif"; font-weight: 700; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-serif-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap;
  src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  --rojo: #ff1a1a;          /* rojo vivo del logo */
  --vino: #7a1c1c;          /* rojo oscuro */
  --vino-2: #5f1515;
  --negro: #111111;
  --carbon: #1a1a1a;
  --gris: #4a4a4a;
  --gris-claro: #767676;
  --regla: #d9d5ce;
  --papel: #faf8f4;
  --blanco: #ffffff;

  --serif: "IBM Plex Serif", Georgia, "Times New Roman", serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--negro);
  background: var(--blanco);
  border-top: 6px solid var(--rojo);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--negro); color: #fff; padding: 8px 14px; z-index: 100; font-family: var(--sans); }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--rojo); outline-offset: 3px; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-bottom-color: var(--regla); box-shadow: 0 6px 24px -18px rgba(0,0,0,.35); }
.header-in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 64px; width: auto; }

.nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 34px); font-family: var(--sans); font-size: .9rem; font-weight: 500; letter-spacing: .02em; }
.nav a:not(.btn) { text-decoration: none; position: relative; padding: 6px 0; color: var(--negro); }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--rojo); transition: width .25s; }
.nav a:not(.btn):hover::after, .nav a.active::after { width: 100%; }

.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: var(--negro); margin: 6px 0; transition: transform .25s, opacity .25s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  padding: 15px 26px; border: 2px solid transparent; border-radius: 2px;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: .85rem; }
.btn-wide { width: 100%; }
.btn-solid { background: var(--vino); color: #fff; border-color: var(--vino); }
.btn-solid:hover { background: var(--rojo); border-color: var(--rojo); }
.btn-line { background: transparent; color: var(--negro); border-color: var(--negro); }
.btn-line:hover { background: var(--negro); color: #fff; }
.ico { width: 20px; height: 20px; flex: none; }

/* ---------- Elementos de marca ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--serif); font-weight: 700; font-size: .88rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--rojo);
}
.bar { width: 5px; height: 22px; background: var(--rojo); flex: none; }
.rule { display: block; width: 76px; height: 5px; background: var(--rojo); }
em { font-style: normal; color: var(--rojo); }

/* ---------- Inicio ---------- */
.hero { padding-top: clamp(36px, 7vw, 84px); }
.hero-grid { display: grid; grid-template-columns: 1.4fr .6fr; align-items: center; gap: clamp(24px, 5vw, 72px); }
.hero-copy .eyebrow { margin-bottom: 30px; }
.hero h1 {
  font-weight: 700; font-size: clamp(1.9rem, 4.6vw, 3.35rem); line-height: 1.22; letter-spacing: -.01em;
}
.hero h1 em { white-space: nowrap; }
h1, h2, h3, .lead { text-wrap: balance; }
.hero h1 .line { display: block; }
.hero .rule { margin: 34px 0 26px; }
.lead { font-size: clamp(1.15rem, 2vw, 1.5rem); color: var(--gris); max-width: 28ch; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

.hero-mark { justify-self: center; width: min(100%, 420px); position: relative; }
.hero-mark img { width: 100%; }

.credentials {
  margin-top: clamp(40px, 7vw, 80px);
  border-top: 2px solid var(--regla);
  padding: 26px 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px;
}
.credentials div { display: flex; flex-direction: column; line-height: 1.35; }
.credentials strong { font-weight: 700; font-size: 1.05rem; }
.credentials span { font-size: .92rem; color: var(--gris); }
.phone { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 700; font-size: 1.4rem; letter-spacing: .01em; }
.phone .ico { width: 40px; height: 40px; padding: 9px; background: var(--rojo); color: #fff; border-radius: 50%; }
.phone:hover { color: var(--vino); }

/* ---------- Secciones ---------- */
.section { padding-block: clamp(64px, 10vw, 120px); }
.section-paper { background: var(--papel); border-block: 1px solid var(--regla); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head .eyebrow, .about-copy .eyebrow, .contact-copy .eyebrow { margin-bottom: 20px; }
h2 { font-weight: 700; font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.2; letter-spacing: -.005em; }
.section-lead { margin-top: 18px; color: var(--gris); font-size: 1.15rem; max-width: 52ch; }

/* ---------- Servicios ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 88px); border-top: 2px solid var(--negro); }
.services li { display: flex; gap: 22px; padding: 32px 0; border-bottom: 1px solid var(--regla); transition: background .25s; }
.num { font-style: italic; font-size: 1.6rem; line-height: 1.1; color: var(--rojo); min-width: 2.2ch; padding-top: 2px; }
.services h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; line-height: 1.3; transition: color .2s; }
.services p { color: var(--gris); font-size: 1rem; }
.services li:hover h3 { color: var(--vino); }

/* ---------- El despacho ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 7vw, 100px); align-items: start; }
.about-copy p { margin-top: 20px; color: var(--gris); font-size: 1.1rem; }
.about-copy h2 { margin-bottom: 6px; }
.about-copy .eyebrow { color: var(--rojo); font-size: .88rem; margin-top: 0; }
.values { display: grid; gap: 0; border-top: 2px solid var(--negro); }
.values article { padding: 22px 0; border-bottom: 1px solid var(--regla); }
.values h3 { font-size: 1.35rem; font-weight: 700; color: var(--vino); margin-bottom: 4px; }
.values p { color: var(--gris); }

.partner {
  margin-top: clamp(40px, 6vw, 72px);
  display: flex; align-items: center; gap: clamp(20px, 4vw, 40px);
  background: var(--blanco); border: 1px solid var(--regla); border-left: 5px solid var(--rojo);
  padding: clamp(22px, 4vw, 36px);
}
.partner img { width: 84px; flex: none; }
.partner .phone { margin-left: auto; font-size: 1.15rem; }
.partner .phone .ico { width: 36px; height: 36px; padding: 8px; }
.partner h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
.partner .role { color: var(--gris); font-style: italic; font-size: 1.1rem; }
.partner .ced { font-family: var(--sans); font-size: .9rem; letter-spacing: .04em; color: var(--gris-claro); margin-top: 6px; }

/* ---------- Contacto ---------- */
.section-dark { background: var(--carbon); color: #fff; }
.section-dark .section-lead { color: #cfcfcf; }
.section-dark em { color: var(--rojo); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 7vw, 100px); align-items: start; }
.phone-big { display: inline-flex; align-items: center; gap: 14px; margin: 34px 0 22px; text-decoration: none; font-size: clamp(1.7rem, 3.6vw, 2.5rem); font-weight: 700; }
.phone-big .ico { width: 52px; height: 52px; padding: 12px; background: var(--rojo); color: #fff; border-radius: 50%; }
.phone-big:hover { color: #fff; opacity: .85; }
.contact-copy .btn { max-width: 340px; }
.section-dark .btn-solid { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.section-dark .btn-solid:hover { background: #fff; border-color: #fff; color: var(--vino); }

.form { background: #fff; color: var(--negro); padding: clamp(24px, 4vw, 40px); border-top: 5px solid var(--rojo); }
.form h3 { font-size: 1.35rem; margin-bottom: 20px; }
.form label { display: block; margin-bottom: 18px; }
.form label span { display: block; font-family: var(--sans); font-weight: 600; font-size: .85rem; letter-spacing: .03em; margin-bottom: 6px; }
.form small { font-weight: 400; color: var(--gris-claro); }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--negro);
  padding: 13px 14px; background: var(--papel); border: 1px solid #c9c4bb; border-radius: 2px;
}
.form textarea { resize: vertical; min-height: 110px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--vino); box-shadow: 0 0 0 3px rgba(122,28,28,.18); }
.section-dark .form .btn-solid { background: var(--vino); border-color: var(--vino); }
.section-dark .form .btn-solid:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.fine { font-family: var(--sans); font-size: .8rem; color: var(--gris-claro); margin-top: 12px; text-align: center; }

/* ---------- Pie ---------- */
.site-footer { background: #fff; border-top: 2px solid var(--regla); padding-block: 40px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 40px; }
.foot-in img { height: 70px; width: auto; }
.foot-text { display: flex; flex-direction: column; line-height: 1.45; flex: 1 1 260px; }
.foot-text strong { font-size: 1.05rem; }
.foot-text span { font-size: .92rem; color: var(--gris); }
.copy { font-family: var(--sans); font-size: .8rem; color: var(--gris-claro); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--vino); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 26px -8px rgba(0,0,0,.5); transition: background .2s, transform .2s;
}
.wa-float:hover { background: var(--rojo); transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Animación de entrada ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.services li.reveal:nth-child(even) { transition-delay: .08s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: .01ms !important; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .brand img { height: 54px; }
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 2px solid var(--regla);
    padding: 8px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--regla); font-size: 1rem; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 16px; padding: 14px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-mark { display: none; }
  .hero-copy .eyebrow { margin-bottom: 22px; }
  .services { grid-template-columns: 1fr; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .credentials { flex-direction: column; align-items: flex-start; }
}
@media (min-width: 901px) {
  .wa-float { display: none; }
}
@media (max-width: 480px) {
  .cta-row .btn { width: 100%; }
  .partner { flex-direction: column; align-items: flex-start; }
  .partner .phone { margin-left: 0; }
  .partner img { width: 64px; }
}


/* ==========================================================
   v2 — Inicio en vino, servicios en negro (sin logo grande)
   ========================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  padding-block: clamp(56px, 9vw, 120px) 0;
  background:
    radial-gradient(900px 520px at 85% 10%, rgba(255,26,26,.30), rgba(255,26,26,0) 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(0,0,0,.35), rgba(0,0,0,0) 60%),
    linear-gradient(135deg, #8a2020 0%, #7a1c1c 45%, #5a1212 100%);
}
.hero::before {            /* "&" decorativo de fondo */
  content: "&"; position: absolute; right: -2vw; top: 50%; transform: translateY(-58%);
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(22rem, 48vw, 46rem); color: rgba(255,255,255,.07);
  pointer-events: none; user-select: none;
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-grid { display: block; }
.hero-copy { max-width: 880px; }
.hero .eyebrow { color: #fff; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 4.2rem); }
.hero h1 em {
  color: #fff; background: var(--rojo);
  padding: .02em .2em .06em; margin-left: -.04em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone; white-space: nowrap;
}
.hero .lead { color: rgba(255,255,255,.88); max-width: 34ch; }
.hero .rule { background: #fff; }
.hero .btn-solid { background: #fff; color: var(--vino); border-color: #fff; }
.hero .btn-solid:hover { background: var(--rojo); border-color: var(--rojo); color: #fff; }
.hero .btn-line { color: #fff; border-color: rgba(255,255,255,.75); }
.hero .btn-line:hover { background: #fff; color: var(--vino); border-color: #fff; }
.hero .credentials { border-top: 1px solid rgba(255,255,255,.28); }
.hero .credentials span { color: rgba(255,255,255,.78); }
.hero .phone:hover { color: #fff; opacity: .85; }
.hero .phone .ico { background: #fff; color: var(--vino); }

/* Servicios sobre negro */
#servicios.section-dark .services { border-top-color: rgba(255,255,255,.7); }
#servicios.section-dark .services li { border-bottom-color: rgba(255,255,255,.16); }
#servicios.section-dark .services h3 { color: #fff; }
#servicios.section-dark .services p { color: #c9c9c9; }
#servicios.section-dark .services li:hover h3 { color: #fff; }
#servicios.section-dark .num { color: var(--rojo); }
#servicios.section-dark h2 { color: #fff; }


@media (max-width: 900px) {
  .hero::before { font-size: 24rem; right: -10vw; top: 38%; }
}

/* Servicios especializados */
.sub-head { max-width: 760px; margin: clamp(56px, 8vw, 96px) 0 clamp(28px, 4vw, 44px); }
.sub-head .eyebrow { margin-bottom: 18px; }
.sub-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 700; line-height: 1.2; }
#servicios .sub-title { color: #fff; }
.services-esp { grid-template-columns: repeat(3, 1fr); column-gap: clamp(24px, 3.5vw, 48px); }
.services-esp li { flex-direction: column; gap: 10px; }
@media (max-width: 900px) { .services-esp { grid-template-columns: 1fr; } .services-esp li { flex-direction: row; gap: 22px; } }

/* ==========================================================
   v3 — Sección "Quién soy"
   ========================================================== */
.who { background: #fff; }
.who-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.who-photo { margin: 0; }
.who-photo img { width: min(100%, 400px); margin-inline: auto; mix-blend-mode: multiply; }
.who-copy .eyebrow { margin-bottom: 18px; }
.who-copy h2 { font-size: clamp(2rem, 4.4vw, 3.3rem); }
.who-uni { margin-top: 22px; font-style: italic; font-size: 1.2rem; color: var(--gris); }
.who-ced { margin-top: 10px; font-family: var(--sans); font-size: .95rem; letter-spacing: .04em; font-weight: 600; }

.who-sub { margin: clamp(48px, 8vw, 84px) 0 34px; text-align: center; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; }
.who-sub::after { content: ""; display: block; width: 76px; height: 5px; background: var(--rojo); margin: 18px auto 0; }

.timeline { display: grid; grid-template-columns: repeat(3, 1fr); }
.timeline li { position: relative; padding: 34px 36px 0 0; border-top: 3px solid var(--rojo); }
.timeline li::before { content: ""; position: absolute; top: -11px; left: 0; width: 19px; height: 19px; border-radius: 50%; background: var(--rojo); }
.year { display: block; font-weight: 700; font-size: clamp(2.2rem, 4vw, 2.9rem); color: var(--rojo); line-height: 1; margin-bottom: 14px; }
.timeline p { color: var(--negro); font-size: 1.08rem; }

/* Bandas */
.band { padding-block: clamp(56px, 9vw, 104px); color: #fff; }
.band .pre, .band .post { color: rgba(255,255,255,.78); font-style: italic; }

.band-clientes { background: var(--vino); }
.clientes-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 88px); align-items: center; }
.clientes-num { text-align: center; }
.clientes-num .pre { font-style: normal; font-size: 1.25rem; }
.big-num { display: block; font-weight: 700; font-size: clamp(8rem, 20vw, 14rem); line-height: .95; color: #fff; letter-spacing: -.03em; }
.clientes-num .post { font-style: normal; font-weight: 700; color: #fff; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; margin-top: 4px; }
.clientes-copy .how { font-size: clamp(1.2rem, 2.2vw, 1.5rem); line-height: 1.5; }
.clientes-copy .rule { background: var(--rojo); margin: 26px 0 22px; }
.clientes-copy .among { font-style: italic; color: rgba(255,255,255,.78); margin-bottom: 8px; }
.clientes-copy ul { margin-bottom: 22px; }
.clientes-copy li { font-weight: 700; font-size: 1.15rem; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.clientes-copy li:first-child { border-top: 1px solid rgba(255,255,255,.22); }
.clientes-copy .quality { font-style: italic; color: rgba(255,255,255,.85); }


.contact-note { margin-top: 20px; font-weight: 700; font-size: 1.25rem; color: #fff; }

@media (max-width: 900px) {
  .who-intro, .clientes-grid { grid-template-columns: 1fr; }
  .who-photo img { width: min(70%, 300px); }
  .who-intro { text-align: center; }
  .who-copy .eyebrow { justify-content: center; }
  .timeline { grid-template-columns: 1fr; gap: 8px; }
  .timeline li { border-top: 0; border-left: 3px solid var(--rojo); padding: 0 0 30px 30px; margin-left: 9px; }
  .timeline li::before { top: 4px; left: -11px; }
  .timeline li:last-child { padding-bottom: 0; }
  .clientes-copy { text-align: center; }
  .clientes-copy .rule { margin-inline: auto; }
}


/* ---------- Redes sociales ---------- */
.social { margin-top: 36px; }
.social-title { font-family: var(--sans); font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.7); margin-bottom: 12px; }
.social-links { display: flex; flex-wrap: wrap; gap: 12px; }
.social-link { display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border: 1px solid rgba(255,255,255,.4); border-radius: 2px; text-decoration: none; color: #fff; font-family: var(--sans); font-weight: 600; font-size: .92rem; transition: background .2s, color .2s, border-color .2s; }
.social-link:hover { background: #fff; border-color: #fff; color: var(--carbon); }
.foot-social { display: flex; gap: 10px; }
.foot-social a { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--regla); border-radius: 50%; color: var(--negro); transition: background .2s, color .2s, border-color .2s; }
.foot-social a:hover { background: var(--vino); border-color: var(--vino); color: #fff; }
.foot-social svg { width: 20px; height: 20px; }


/* ---------- Encabezado: WhatsApp + redes ---------- */
.nav-cta { display: flex; align-items: stretch; gap: 8px; }
.btn-icon { width: 46px; padding: 0; }
@media (max-width: 900px) {
  .nav .nav-cta { margin-top: 16px; }
  .nav .nav-cta .btn { margin-top: 0; }
  .nav .nav-cta .btn:first-child { flex: 1; }
  .nav .nav-cta .btn-icon { width: 54px; padding: 0; }
}


/* ==========================================================
   v4 — Animaciones sutiles (se desactivan si el visitante
   tiene activada la opción de "reducir movimiento")
   ========================================================== */
@keyframes heroUp   { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes paint    { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes ruleGrow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* 1) Inicio: el lema entra por líneas y el rojo se "pinta" como marcatextos */
.hero h1 em { background: linear-gradient(var(--rojo), var(--rojo)) left center / 100% 100% no-repeat; }
.js .hero.on .eyebrow                 { animation: heroUp .7s ease .05s both; }
.js .hero.on h1 .line:nth-child(1)    { animation: heroUp .8s ease .15s both; }
.js .hero.on h1 .line:nth-child(2)    { animation: heroUp .8s ease .40s both; }
.js .hero.on h1 .line:nth-child(1) em { animation: paint .8s cubic-bezier(.65,0,.2,1) .70s both; }
.js .hero.on h1 .line:nth-child(2) em { animation: paint .8s cubic-bezier(.65,0,.2,1) .95s both; }
.js .hero.on .rule                       { transform-origin: left; animation: ruleGrow .7s ease 1.25s both; }
.js .hero.on .lead                       { animation: heroUp .8s ease 1.35s both; }
.js .hero.on .cta-row                    { animation: heroUp .8s ease 1.50s both; }
.js .hero.on .credentials                { animation: heroUp .8s ease 1.65s both; }

/* 2) Contador de clientes */
.big-num { font-variant-numeric: tabular-nums; }

/* 3) Trayectoria: la línea se dibuja y los puntos aparecen en orden */
.timeline li { border-top: 0; }
.timeline li::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--rojo); transform-origin: left; }
.js .timeline li::after  { transform: scaleX(0); transition: transform .9s cubic-bezier(.4,0,.2,1); }
.js .timeline li.in::after { transform: scaleX(1); }
.js .timeline li::before { transform: scale(0); transition: transform .45s cubic-bezier(.3,1.6,.5,1); }
.js .timeline li.in::before { transform: scale(1); transition-delay: .1s; }
@media (min-width: 901px) {
  .timeline li:nth-child(2) { transition-delay: .45s; }
  .timeline li:nth-child(2)::after { transition-delay: .45s; }
  .js .timeline li:nth-child(2).in::before { transition-delay: .55s; }
  .timeline li:nth-child(3) { transition-delay: .9s; }
  .timeline li:nth-child(3)::after { transition-delay: .9s; }
  .js .timeline li:nth-child(3).in::before { transition-delay: 1s; }
}
@media (max-width: 900px) {
  .timeline li { border-left: 0; }
  .timeline li::after { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: top; }
  .js .timeline li::after { transform: scaleY(0); }
  .js .timeline li.in::after { transform: scaleY(1); }
}

@media (prefers-reduced-motion: reduce) {
  .js .hero .eyebrow, .js .hero h1 .line, .js .hero h1 em, .js .hero .rule,
  .js .hero .lead, .js .hero .cta-row, .js .hero .credentials { animation: none !important; opacity: 1; transform: none; }
  .js .timeline li::after, .js .timeline li::before { transform: none !important; transition: none !important; }
}

/* Aliados en Servicios especializados */
#servicios .services p.ally { margin-top: 10px; font-family: var(--serif); font-weight: 700; font-size: 1.05rem; color: #fff; }
.ally span { display: block; font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rojo); margin-bottom: 2px; }


/* ==========================================================
   v5 — Animaciones que se repiten, movimiento ambiental
   suave y efectos al pasar el ratón
   ========================================================== */

/* El lema del inicio vuelve a "pintarse" cada vez que se regresa arriba */
.js .hero:not(.on) :is(.eyebrow, h1 .line, .rule, .lead, .cta-row, .credentials) { opacity: 0; }

/* Movimiento ambiental: muy lento y discreto */
@keyframes drift {
  from { transform: translateY(-58%) translateX(0) rotate(-1.5deg); }
  to   { transform: translateY(-54%) translateX(-1.6vw) rotate(1.5deg); }
}
.hero::before { animation: drift 18s ease-in-out infinite alternate; }

@keyframes waPulse {
  0%   { box-shadow: 0 10px 26px -8px rgba(0,0,0,.5), 0 0 0 0 rgba(255,26,26,.45); }
  70%, 100% { box-shadow: 0 10px 26px -8px rgba(0,0,0,.5), 0 0 0 18px rgba(255,26,26,0); }
}
.wa-float { animation: waPulse 3.8s ease-out 2s infinite; }
.wa-float:hover { animation-play-state: paused; }

@keyframes dotPulse {
  0%   { box-shadow: 0 0 0 0 rgba(255,26,26,.45); }
  70%, 100% { box-shadow: 0 0 0 13px rgba(255,26,26,0); }
}
.js .timeline li.in::before { animation: dotPulse 3.4s ease-out 1.6s infinite; }
.js .timeline li:nth-child(2).in::before { animation-delay: 2.3s; }
.js .timeline li:nth-child(3).in::before { animation-delay: 3s; }

/* Al pasar el ratón (solo dispositivos con ratón) */
@media (hover: hover) {
  .btn { transition: transform .25s ease, box-shadow .25s ease, background .2s, color .2s, border-color .2s; }
  .btn:hover { transform: translateY(-3px); box-shadow: 0 14px 24px -12px rgba(0,0,0,.5); }
  .btn:active { transform: translateY(0); box-shadow: none; }
  .btn .ico { transition: transform .3s cubic-bezier(.3,1.5,.5,1); }
  .btn:hover .ico { transform: scale(1.18) rotate(-6deg); }

  /* Servicios: línea roja que se dibuja, número que salta, texto que se desliza */
  .services li { position: relative; }
  .services li::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 100%; height: 2px; background: var(--rojo);
    transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.4,0,.2,1); pointer-events: none; }
  .services li:hover::after { transform: scaleX(1); }
  .services li > div { transition: transform .35s ease; }
  .services li:hover > div { transform: translateX(8px); }
  .services .num { display: inline-block; transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
  .services li:hover .num { transform: scale(1.2); }

  /* El despacho: barra roja lateral */
  .values article { position: relative; transition: padding-left .35s ease; }
  .values article::before { content: ""; position: absolute; left: 0; top: 22px; bottom: 22px; width: 3px; background: var(--rojo);
    transform: scaleY(0); transition: transform .35s ease; }
  .values article:hover { padding-left: 20px; }
  .values article:hover::before { transform: scaleY(1); }

  /* Trayectoria */
  .timeline .year { transition: color .25s, transform .3s ease; transform-origin: left; }
  .timeline li:hover .year { color: var(--vino); transform: scale(1.06); }
  .js .timeline li.in:hover::before { transform: scale(1.4); transition-delay: 0s; }

  /* Foto */
  .who-photo img { transition: transform .8s cubic-bezier(.2,.7,.2,1); }
  .who-photo:hover img { transform: scale(1.035); }

  /* Clientes */
  .clientes-copy li { transition: padding-left .3s ease, border-color .3s; }
  .clientes-copy li:hover { padding-left: 14px; border-bottom-color: var(--rojo); }

  /* Contacto y redes */
  .phone-big .ico { transition: transform .35s cubic-bezier(.3,1.5,.5,1); }
  .phone-big:hover .ico { transform: rotate(-14deg) scale(1.1); }
  .social-link { transition: background .2s, color .2s, border-color .2s, transform .25s ease; }
  .social-link:hover { transform: translateY(-3px); }
  .foot-social a { transition: background .2s, color .2s, border-color .2s, transform .25s ease; }
  .foot-social a:hover { transform: translateY(-3px) scale(1.06); }
  .foot-in img { transition: transform .4s ease; }
  .foot-in img:hover { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before, .wa-float, .js .timeline li.in::before { animation: none !important; }
  .btn, .btn:hover, .services li > div, .services li:hover > div, .services .num, .services li:hover .num,
  .who-photo img, .who-photo:hover img { transform: none !important; }
}


/* ==========================================================
   v6 — Plantilla: "Si tu operación te supera"
   ========================================================== */
.team { margin-top: clamp(28px, 4vw, 44px); display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 5vw, 64px); align-items: center;
  padding: clamp(24px, 3.5vw, 40px); background: rgba(255,255,255,.05); border-left: 4px solid var(--rojo); }
.team-copy { display: flex; gap: 22px; }
.team-copy h3 { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; color: #fff; }
.team-copy p { color: #c9c9c9; font-size: 1rem; }
.team-label { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--rojo); margin-bottom: 10px; }
.team-list li { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: #fff; padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.team-list li:first-child { border-top: 1px solid rgba(255,255,255,.18); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; } }
@media (hover: hover) {
  .team-list li { transition: padding-left .3s ease, border-color .3s; }
  .team-list li:hover { padding-left: 12px; border-bottom-color: var(--rojo); }
}


/* Servicios especializados: 4 aliados en 2 columnas */
@media (min-width: 901px) {
  .services-esp { grid-template-columns: repeat(2, 1fr); column-gap: clamp(32px, 6vw, 88px); }
  .services-esp li { flex-direction: row; gap: 22px; }
}


/* Nota discreta bajo el título de "Quién soy" */
.who-note { margin-top: 12px; font-family: var(--sans); font-size: .9rem; font-weight: 400; color: var(--gris-claro); letter-spacing: .01em; }
.who-note + .who-uni { margin-top: 18px; }


/* ==========================================================
   v7 — Cómo trabajamos, agenda y aviso de privacidad
   ========================================================== */

/* Cómo trabajamos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: none; }
.steps li { position: relative; }
.step-n { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--rojo); color: #fff;
  font-family: var(--serif); font-style: italic; font-weight: 700; font-size: 1.6rem; line-height: 1; margin-bottom: 22px;
  box-shadow: 0 10px 22px -10px rgba(255,26,26,.7); transition: background .25s, transform .35s cubic-bezier(.3,1.5,.5,1); }
.steps h3 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.steps p { color: var(--gris); font-size: 1rem; }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 27px; left: 70px; right: -14px; height: 2px; background: var(--rojo); opacity: .55; transform-origin: left; }
.js .steps li::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.4,0,.2,1) .35s; }
.js .steps li.in::after { transform: scaleX(1); }
.js .steps .step-n { transform: scale(.55); }
.js .steps li.in .step-n { transform: scale(1); }
.js .steps li:nth-child(2) { transition-delay: .12s; }
.js .steps li:nth-child(3) { transition-delay: .24s; }
.js .steps li:nth-child(4) { transition-delay: .36s; }
.steps-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(36px, 5vw, 56px); }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { padding: 0 0 34px 80px; }
  .step-n { position: absolute; left: 0; top: 0; margin: 0; }
  .steps li:not(:last-child)::after { top: 64px; bottom: 6px; left: 27px; right: auto; width: 2px; height: auto; transform-origin: top; }
  .js .steps li::after { transform: scaleY(0); }
  .js .steps li.in::after { transform: scaleY(1); }
  .steps li:last-child { padding-bottom: 0; }
}

/* Botón claro sobre fondo oscuro + separación */
.btn-line-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-line-light:hover { background: #fff; color: var(--carbon); border-color: #fff; }
.contact-copy .btn + .btn { margin-top: 12px; }
.contact-copy .btn-line-light { max-width: 340px; }

/* Enlaces discretos del pie y del formulario */
.copy a, .fine a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.copy a:hover, .fine a:hover { color: var(--rojo); }

/* Aviso de privacidad */
.legal-top { background: #fff; border-bottom: 1px solid var(--regla); border-top: 6px solid var(--rojo); }
.legal-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-block: 14px; }
.legal-top img { height: 64px; width: auto; }
.legal { padding-block: clamp(40px, 7vw, 80px); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(2rem, 4.4vw, 3rem); line-height: 1.15; margin: 14px 0 8px; }
.legal .upd { font-family: var(--sans); font-size: .85rem; color: var(--gris-claro); margin-bottom: 34px; }
.legal h2 { font-size: 1.35rem; margin: 34px 0 10px; color: var(--vino); }
.legal p, .legal li { color: var(--negro); margin-bottom: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 12px; }
.legal .pendiente { background: #fff3a8; padding: 1px 6px; font-family: var(--sans); font-size: .92em; }

@media (prefers-reduced-motion: reduce) {
  .js .steps li::after, .js .steps .step-n { transition: none !important; animation: none !important; }
  .js .steps li::after { transform: none !important; }
  .js .steps .step-n { transform: none !important; }
}
@media (hover: hover) {
  .steps li:hover .step-n { background: var(--vino); transform: scale(1.1) !important; }
  .js .steps li.in:hover .step-n { transform: scale(1.1); }
}

/* Menú: una sola línea por opción también en pantallas medianas */
.nav a:not(.btn) { white-space: nowrap; }
@media (min-width: 901px) and (max-width: 1120px) {
  .nav { gap: 14px; font-size: .84rem; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn-sm { padding-inline: 12px; }
  .nav-cta .btn-sm:first-child { font-size: 0; gap: 0; }
  .nav-cta .btn-sm:first-child .ico { margin: 0; }
}
