/* ==========================================================================
   Punto Contable — estilos
   1. Tokens   2. Base   3. Layout   4. Componentes   5. Secciones
   6. Header/menú   7. Pie   8. Formulario   9. Movimiento   10. Responsive
   ========================================================================== */

/* ---------- 0. Tipografías (alojadas en el sitio: sin pedidos a Google) ----------
   Subconjunto latino: incluye á é í ó ú ñ ü ¿ ¡ € –. Montserrat es variable (400–600). */
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/cormorant-garamond-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/montserrat-latin.woff2") format("woff2");
}

/* ---------- 1. Tokens (manual de marca + brief) ---------- */
:root {
  /* Colores oficiales */
  --c-bordo: #75211E;
  --c-bordo-dark: #5C1917;      /* hover de botones: "un bordó un poco más oscuro" */
  --c-gris: #504E4E;            /* texto corrido y títulos */
  --c-rosa: #D6BCBB;            /* detalles sobre bordó */
  --c-gris-claro: #E3DEDE;      /* líneas y bordes */
  --c-blanco: #FFFFFF;
  --c-blanco-calido: #FAF7F6;   /* secciones alternas */
  --c-gris-suave: #6B6868;      /* texto secundario (contraste AA sobre blanco y blanco cálido) */
  --c-error: #9E1B17;

  /* Tipografía */
  --f-display: "Cormorant Garamond", Garamond, "Times New Roman", serif;
  --f-sans: "Montserrat", Arial, Helvetica, sans-serif;

  --fs-body: 1.0625rem;         /* 17px */
  --fs-small: 0.9375rem;        /* 15px */
  --fs-xs: 0.875rem;            /* 14px: mínimo del brief */
  --fs-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);
  --fs-h2: clamp(2.125rem, 1.6rem + 2.1vw, 3rem);
  --fs-h3: 1.125rem;

  /* Espaciado */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-y: clamp(4rem, 2.5rem + 5vw, 6.5rem);

  /* Forma */
  --radius: 4px;                /* "esquinas rectas o apenas redondeadas (4 px)" */
  --border: 1px solid var(--c-gris-claro);
  --shadow-header: 0 1px 0 var(--c-gris-claro);

  /* Layout */
  --container: 1080px;
  --container-narrow: 780px;
  --gutter: clamp(1.25rem, 0.6rem + 3vw, 2.5rem);
  --header-h: 72px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  background: var(--c-blanco);
  color: var(--c-gris);
  font-family: var(--f-sans);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: inherit; text-underline-offset: 0.2em; }

button, input, select, textarea { font: inherit; color: inherit; }

strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--c-bordo);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--c-rosa); color: var(--c-gris); }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nowrap { white-space: nowrap; }

.sr-only {
  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(--space-4);
  top: -100px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--c-bordo);
  color: var(--c-blanco);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}
.skip-link:focus { top: var(--space-4); }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(var(--container-narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section-y); }
.section-alt { background: var(--c-blanco-calido); }

.section-head { margin-bottom: clamp(2rem, 1.5rem + 2vw, 3rem); }

/* ---------- 4. Componentes ---------- */
.eyebrow {
  margin-bottom: var(--space-3);
  color: var(--c-bordo);
  font-size: 0.75rem;               /* manual: bajada 12 px, mayúsculas, 0,30 em */
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow--light { color: var(--c-rosa); }

.display,
.title {
  font-family: var(--f-display);
  font-weight: 600;
  color: var(--c-gris);
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.display { font-size: var(--fs-h1); line-height: 1.08; }
.title { font-size: var(--fs-h2); line-height: 1.12; }
.title--light { color: var(--c-blanco); }

.subtitle {
  margin-top: var(--space-2);
  color: var(--c-gris-suave);
  font-size: var(--fs-body);
}

.lead { font-size: var(--fs-body); line-height: 1.75; }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;                 /* brief: ≥ 44 px */
  padding: 0.75rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--f-sans);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn .icon { width: 1.15em; height: 1.15em; }

.btn-primary { background: var(--c-bordo); color: var(--c-blanco); }
.btn-primary:hover { background: var(--c-bordo-dark); }

.btn-outline { background: var(--c-blanco); color: var(--c-bordo); border-color: var(--c-bordo); }
.btn-outline:hover { background: var(--c-bordo); color: var(--c-blanco); }

.btn-light { background: var(--c-blanco); color: var(--c-bordo); }
.btn-light:hover { background: var(--c-blanco-calido); color: var(--c-bordo-dark); }
.btn-light:focus-visible { outline-color: var(--c-blanco); }

.btn-lg { min-height: 52px; padding-inline: 1.75rem; font-size: 1rem; }
.btn-block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  color: var(--c-bordo);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
}
.text-link span[aria-hidden] { transition: transform 0.25s var(--ease); }
.text-link:hover { text-decoration: underline; }
.text-link:hover span[aria-hidden] { transform: translateX(3px); }

.cta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: var(--space-3);
  margin-top: var(--space-6);
  font-size: var(--fs-small);
}

/* Contenido pendiente de completar por el cliente (visible a propósito) */
.pending { color: var(--c-gris-suave); }

/* ---------- 5. Secciones ---------- */

/* 5.1 Portada */
.hero { padding-top: clamp(3rem, 1.5rem + 5vw, 5.5rem); padding-bottom: clamp(4rem, 2rem + 5vw, 6rem); }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3.5vw, 3.75rem);
  align-items: center;
}

.hero-copy .display { margin-bottom: var(--space-5); }
.hero-copy .lead { max-width: 34em; margin-bottom: var(--space-6); }
.hero-copy .btn-row { margin-bottom: var(--space-5); }

.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.3rem 0.7rem;
  border: var(--border);
  border-radius: 2px;
  background: var(--c-blanco);
  color: var(--c-gris);
  font-size: var(--fs-xs);
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.chip:hover { border-color: var(--c-bordo); color: var(--c-bordo); }

.hero-media {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 5 / 4;
  background: var(--c-bordo);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-media img { width: 50%; }
.hero-media figcaption {
  position: absolute;
  left: clamp(1rem, 0.5rem + 1.5vw, 1.5rem);
  bottom: clamp(0.85rem, 0.5rem + 1vw, 1.25rem);
  color: var(--c-rosa);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
}

/* 5.2 Servicios */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

.service-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-5) var(--space-5) var(--space-4);
  background: var(--c-blanco);
  border: var(--border);
  border-radius: var(--radius);
  transition: border-color 0.25s var(--ease);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.service-card:hover { border-color: var(--c-rosa); }
.service-card:target { border-color: var(--c-bordo); box-shadow: inset 0 0 0 1px var(--c-bordo); }

.card-num { margin-bottom: var(--space-4); color: var(--c-bordo); font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.04em; }
.card-title { margin-bottom: var(--space-3); font-size: var(--fs-h3); font-weight: 600; line-height: 1.3; color: var(--c-gris); }
.card-for { margin-bottom: var(--space-4); color: var(--c-gris-suave); font-size: var(--fs-small); line-height: 1.6; }

.card-list { display: grid; gap: var(--space-2); margin-bottom: var(--space-5); font-size: var(--fs-xs); line-height: 1.5; }
.card-list li { position: relative; padding-left: 1em; }
.card-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--c-gris);
}
.service-card .text-link { margin-top: auto; }

/* 5.3 Modalidades */
.modes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.mode-card {
  padding: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  border: var(--border);
  border-radius: var(--radius);
  background: var(--c-blanco);
}
.mode-title { margin-bottom: var(--space-3); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.mode-card p { font-size: var(--fs-small); }
.mode-card--accent { background: var(--c-bordo); border-color: var(--c-bordo); color: var(--c-blanco); }

.modes-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: var(--border);
}
.modes-note p { max-width: 32em; font-size: var(--fs-small); }
.modes-note .btn { flex: none; }

/* 5.4 Cómo trabajamos */
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}
.step { padding-top: var(--space-5); border-top: 1px solid var(--c-bordo); }
.step-num {
  display: block;
  margin-bottom: var(--space-2);
  color: var(--c-bordo);
  font-family: var(--f-display);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
}
.step-title { margin-bottom: var(--space-2); font-size: var(--fs-h3); font-weight: 600; line-height: 1.35; }
.step p { color: var(--c-gris-suave); font-size: var(--fs-small); line-height: 1.6; }

/* 5.5 Nosotras */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.about-photo {
  aspect-ratio: 10 / 7;
  border-radius: var(--radius);
  overflow: hidden;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.about-photo.is-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  background: var(--c-blanco-calido);
  border: 1px dashed var(--c-rosa);
  color: var(--c-gris-suave);
  font-size: var(--fs-xs);
}
.about-photo.is-placeholder .icon { width: 28px; height: 28px; color: var(--c-bordo); }

.about-copy .title { margin-bottom: var(--space-5); }
.people { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-bottom: var(--space-5); }
.people li { display: grid; line-height: 1.4; }
.people strong { font-size: var(--fs-body); }
.people span { color: var(--c-bordo); font-size: var(--fs-xs); }
.about-copy p + p { margin-top: var(--space-3); }
.about-copy p { font-size: var(--fs-small); }

/* 5.6 Preguntas frecuentes */
.faq { border-top: var(--border); }
.faq details { border-bottom: var(--border); }
.faq summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 56px;
  padding: var(--space-3) 0;
  font-weight: 600;
  font-size: var(--fs-body);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "";
  flex: none;
  width: 0; height: 0;
  border-left: 7px solid currentColor;
  border-top: 4.5px solid transparent;
  border-bottom: 4.5px solid transparent;
  transition: transform 0.25s var(--ease);
}
.faq details[open] > summary::before { transform: rotate(90deg); }
.faq summary:hover { color: var(--c-bordo); }
.faq-body { padding: 0 0 var(--space-5) calc(7px + var(--space-3)); font-size: var(--fs-small); }

/* 5.7 Contacto */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: stretch;
}
.contact-panel {
  padding: clamp(1.75rem, 1rem + 2.5vw, 2.5rem);
  background: var(--c-bordo);
  border-radius: var(--radius);
  color: var(--c-blanco);
}
.contact-panel .title { margin-bottom: var(--space-4); }
.contact-intro { margin-bottom: var(--space-5); font-size: var(--fs-small); }
.contact-list {
  display: grid;
  gap: var(--space-2);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(214, 188, 187, 0.45);
  font-size: var(--fs-small);
}
.contact-list li { display: flex; align-items: center; gap: var(--space-3); min-height: 36px; }
.contact-list .icon { width: 18px; height: 18px; color: var(--c-rosa); }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }
.contact-list a:focus-visible { outline-color: var(--c-blanco); }
.contact-panel .pending { color: var(--c-rosa); }

.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  background: var(--c-blanco);
  border: var(--border);
  border-radius: var(--radius);
}
.form-title { margin-bottom: var(--space-4); font-size: 1.25rem; font-weight: 600; line-height: 1.3; }

/* ---------- 6. Header y menú ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--c-blanco);
  box-shadow: var(--shadow-header);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; gap: 0.85rem; text-decoration: none; flex: none; }
.brand-mark { width: auto; height: 30px; }
.brand-name {
  color: var(--c-gris);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.42em;          /* manual: espaciado amplio 0,42 em */
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav { display: flex; align-items: center; gap: var(--space-6); }
.nav-list { display: flex; align-items: center; gap: clamp(1rem, 0.2rem + 1.6vw, 2rem); }
.nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: var(--fs-xs);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.nav-list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 8px;
  height: 1px;
  background: var(--c-bordo);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-list a:hover,
.nav-list a.is-active { color: var(--c-bordo); }
.nav-list a:hover::after,
.nav-list a.is-active::after { transform: scaleX(1); }

.nav-cta { min-height: 44px; padding: 0.6rem 1.15rem; font-size: var(--fs-xs); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -10px;
  border: 0;
  background: transparent;
  color: var(--c-gris);
  cursor: pointer;
}
.menu-toggle .icon { width: 26px; height: 26px; }
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Botón flotante WhatsApp (celular) */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--c-bordo);
  color: var(--c-blanco);
  border: 2px solid var(--c-blanco);       /* se distingue también sobre el pie bordó */
  box-shadow: 0 2px 8px rgba(80, 78, 78, 0.22);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.wa-float:hover { background: var(--c-bordo-dark); }
.wa-float:active { transform: scale(0.96); }
.wa-float .icon { width: 26px; height: 26px; }

/* ---------- 7. Pie ---------- */
.site-footer {
  padding-block: clamp(3rem, 2rem + 3vw, 4rem) var(--space-6);
  background: var(--c-bordo);
  color: var(--c-blanco);
  font-size: var(--fs-xs);
}
.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid rgba(214, 188, 187, 0.35);
}
.footer-logo { display: inline-block; flex: none; }
.footer-logo img { width: 210px; }
.footer-logo:focus-visible { outline-color: var(--c-blanco); }
.footer-cols { display: flex; gap: clamp(2rem, 1rem + 4vw, 4rem); }
.footer-label {
  margin-bottom: var(--space-2);
  color: var(--c-rosa);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.footer-cols ul { display: grid; gap: 0.15rem; }
.footer-cols a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-decoration: none;
}
.footer-cols a:hover { text-decoration: underline; }
.site-footer a:focus-visible { outline-color: var(--c-blanco); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
}
.footer-bottom a { text-decoration: underline; }

/* ---------- 8. Formulario ---------- */
.contact-form { display: grid; gap: var(--space-4); }
.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-xs); font-weight: 500; }

.field input[type="text"],
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.7rem 0.85rem;
  border: 1px solid #CFC8C8;
  border-radius: var(--radius);
  background: var(--c-blanco);
  font-size: 1rem;                /* 16 px: evita el zoom automático en iOS */
  line-height: 1.4;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23504E4E' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 18px;
  cursor: pointer;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B3AAAA; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-bordo);
  box-shadow: 0 0 0 3px rgba(117, 33, 30, 0.14);
}
.field.has-error input, .field.has-error textarea { border-color: var(--c-error); }

.field-error { min-height: 0; color: var(--c-error); font-size: var(--fs-xs); line-height: 1.4; }
.field-error:empty { display: none; }

.field-check {
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: var(--space-3);
}
.field-check input {
  width: 20px; height: 20px;
  margin: 0;
  accent-color: var(--c-bordo);
  cursor: pointer;
}
.field-check label { font-weight: 400; color: var(--c-gris-suave); cursor: pointer; }
.field-check label a { color: var(--c-bordo); }
.field-check .field-error { grid-column: 1 / -1; }

/* Campo trampa anti-spam: fuera de pantalla, no display:none (algunos bots lo detectan) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


.contact-form button[type="submit"] { margin-top: var(--space-2); }
.contact-form.is-sending button[type="submit"] { opacity: 0.75; cursor: progress; }

.form-status:empty { display: none; }
.form-status { font-size: var(--fs-xs); line-height: 1.5; }
.form-status.is-error { color: var(--c-error); }
.form-status a { color: var(--c-bordo); font-weight: 600; }

.form-success {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-5);
  border-left: 2px solid var(--c-bordo);
  background: var(--c-blanco-calido);
  font-size: var(--fs-small);
}
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success-title { color: var(--c-bordo); font-weight: 600; font-size: var(--fs-body); }
.form-success a { color: var(--c-bordo); font-weight: 600; }

/* ---------- 9. Movimiento ---------- */
/* El contenido es visible sin JS. Solo si JS arranca (html.js) se ocultan los .reveal.
   main.js quita .reveal cuando termina la aparición, así cada componente recupera sus
   propias transiciones (hover de tarjetas, etc.). */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }
/* Red de seguridad: si main.js no llegó a arrancar (html sin .js-ready), todo se ve a los 3 s */
.js:not(.js-ready) .reveal { animation: failsafe 0.01s linear 3s forwards; }
@keyframes failsafe { to { opacity: 1; transform: none; } }
.reveal[data-split] { opacity: 1; transform: none; }   /* red de seguridad (skill, gotcha A.4.5) */

/* Portada: el texto se pinta al instante (mejor LCP); solo la imagen entra suave */
.js .hero-media { animation: settle 0.9s var(--ease) both; }
.js .hero-media img { animation: fade 1s var(--ease) 0.2s both; }

@keyframes settle { from { opacity: 0; transform: scale(0.985); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Movimiento reducido: sin desplazamientos, solo fundidos cortos */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { transform: none; transition-duration: 0.3s; }
  .js .hero-media, .js .hero-media img { animation-name: fade; animation-duration: 0.4s; }
}

/* ---------- 10. Responsive ---------- */
.nav-list a, .nav-cta { white-space: nowrap; }

@media (min-width: 961px) and (max-width: 1180px) {
  .header-inner { gap: var(--space-4); }
  .main-nav { gap: var(--space-4); }
  .nav-list { gap: 0.95rem; }
  .nav-list a { font-size: 0.8125rem; }
  .brand { gap: 0.6rem; }
  .brand-mark { height: 26px; }
  .brand-name { font-size: 0.75rem; letter-spacing: 0.3em; }
  .nav-cta { padding-inline: 0.9rem; font-size: 0.8125rem; }
}

@media (max-width: 1080px) {
  .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .menu-toggle { display: inline-flex; }

  .main-nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-5);
    max-height: calc(100dvh - var(--header-h));
    padding: var(--space-3) var(--gutter) var(--space-6);
    overflow-y: auto;
    background: var(--c-blanco);
    border-top: var(--border);
    box-shadow: 0 12px 24px -16px rgba(80, 78, 78, 0.35);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s linear 0.25s;
  }
  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0s;
  }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list li + li { border-top: var(--border); }
  .nav-list a { display: flex; min-height: 54px; font-size: 1rem; }
  .nav-list a::after { display: none; }
  .nav-cta { min-height: 52px; font-size: var(--fs-small); }

  .wa-float { display: inline-flex; }
  body.menu-open .wa-float { display: none; }

  .hero-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; }

  .hero-media { aspect-ratio: 4 / 3; }
  .hero-media img { width: 56%; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }

  /* En celular el pie deja aire para el botón flotante */
  .site-footer { padding-bottom: calc(var(--space-6) + 72px); }
}

@media (max-width: 640px) {
  :root { --fs-body: 1rem; }

  .brand-mark { height: 26px; }
  .brand-name { font-size: 0.75rem; letter-spacing: 0.32em; }

  .hero { padding-top: var(--space-6); }
  .hero-copy .btn-row { flex-direction: column; }
  .hero-copy .btn-row .btn { width: 100%; }

  .cards-grid,
  .modes-grid,
  .steps { grid-template-columns: 1fr; }

  .steps { gap: var(--space-5); }
  .step { display: grid; grid-template-columns: 2.25rem 1fr; column-gap: var(--space-3); }
  .step-num { grid-row: span 2; margin: 0; font-size: 2rem; }

  .modes-note { flex-direction: column; align-items: stretch; }
  .modes-note .btn { width: 100%; }

  .contact-panel { padding: var(--space-6) var(--space-5); }
  .contact-panel .btn { width: 100%; padding-inline: var(--space-4); font-size: var(--fs-small); white-space: nowrap; }

  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-cols { flex-direction: column; gap: var(--space-5); }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 380px) {
  .brand-name { letter-spacing: 0.24em; }
}

@media print {
  .site-header, .wa-float, .contact-form, .menu-toggle { display: none !important; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 11. Páginas simples (privacidad, gracias, 404, servicios) ---------- */
.page-simple .site-header .main-nav,
.page-simple .menu-toggle { display: none; }
.page-simple .header-back { display: inline-flex; }
.header-back {
  display: none;
  align-items: center;
  gap: 0.4em;
  min-height: 44px;
  color: var(--c-bordo);
  font-size: var(--fs-xs);
  font-weight: 600;
  text-decoration: none;
}
.header-back:hover { text-decoration: underline; }

.legal { padding-block: var(--section-y); }
.legal .title { margin-bottom: var(--space-3); }
.legal-meta { margin-bottom: var(--space-7); color: var(--c-gris-suave); font-size: var(--fs-xs); }
.legal h2 {
  margin: var(--space-7) 0 var(--space-3);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}
.legal p, .legal li { font-size: var(--fs-small); }
.legal p + p { margin-top: var(--space-3); }
.legal ul { display: grid; gap: var(--space-2); margin-top: var(--space-3); }
.legal ul li { position: relative; padding-left: 1em; }
.legal ul li::before {
  content: ""; position: absolute; left: 0; top: 0.7em;
  width: 4px; height: 4px; border-radius: 50%; background: var(--c-bordo);
}
.legal a { color: var(--c-bordo); }
.legal-note {
  margin-bottom: var(--space-6);
  padding: var(--space-4) var(--space-5);
  border-left: 2px solid var(--c-bordo);
  background: var(--c-blanco-calido);
  font-size: var(--fs-xs);
}

.message-page {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--space-5);
  min-height: calc(100svh - var(--header-h) - 220px);
  padding-block: var(--section-y);
}
.message-page p { max-width: 36em; }
