/* ---- fonts (alojadas aquí mismo, no en los servidores de Google — así ningún visitante envía su IP a un tercero) ---- */
@font-face {
  font-family: "Playfair Display";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/playfair-display-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Playfair Display";
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url("assets/fonts/playfair-display-italic.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/public-sans.woff2") format("woff2");
}

/* ---- tokens ---- */
:root {
  --paper: #F6F3EC;
  --white: #FFFFFF;
  --ink: #100F0C;
  --ink-soft: #4A473F;
  --brass: #A8844E;
  --brass-soft: #E4C98F;
  --gold-deep: #786541;
  --silver: #C9C8C4;
  --line: rgba(16, 15, 12, 0.12);

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  margin: 0;
  color: var(--ink);
}

p { margin: 0; }

/* un solo tamaño para todos los subtítulos de tercer nivel (servicios, pasos, preguntas) */
.service-row h3,
.process-list h3,
.faq-item summary {
  font-size: 1.25rem;
  font-weight: 600;
}

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

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

/* ---- layout helpers ---- */
main > section {
  padding: 5rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

.kicker {
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--gold-deep);
  font-weight: 600;
  margin-bottom: 0.75rem;
}
.kicker-light { color: var(--brass-soft); }

/* ---- top bar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  position: sticky;
  top: 0;
  z-index: 20;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.topbar.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 var(--line);
  max-width: 100%;
}
.topbar.is-scrolled .topbar-inner { max-width: 1080px; margin: 0 auto; }

.logo {
  display: inline-flex;
  align-items: center;
}
.logo-img {
  height: 46px;
  width: auto;
  display: block;
}

.nav {
  display: flex;
  gap: 2rem;
  font-size: 0.95rem;
}
.nav a {
  position: relative;
  padding-bottom: 4px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold-deep);
  transition: width 0.2s ease;
}
.nav a:hover { color: var(--gold-deep); }
.nav a:hover::after,
.nav a.is-active::after { width: 100%; }
.nav a.is-active { color: var(--gold-deep); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  display: block;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 1.6rem;
  border-radius: 3px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: var(--paper);
}
.btn-primary:hover { background: #000; color: var(--brass-soft); transform: translateY(-1px); }
.btn-small { padding: 0.6rem 1.2rem; font-size: 0.9rem; }
.lang-switch {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 0.4rem 0.65rem;
}
.lang-switch:hover { color: var(--gold-deep); border-color: var(--gold-deep); }
.btn-ghost {
  border: 1px solid var(--ink);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold-deep); color: var(--gold-deep); }
.btn-ghost-on-media {
  border-color: rgba(255, 255, 255, 0.6);
  color: #fff;
}
.btn-ghost-on-media:hover { border-color: #fff; color: #fff; }

/* ---- hero ---- */
.hero {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 0;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 55%;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(11, 10, 8, 0.95) 0%, rgba(11, 10, 8, 0.74) 34%, rgba(11, 10, 8, 0.3) 62%, rgba(11, 10, 8, 0.1) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1080px;
  margin: 0 auto;
  padding: 6rem 1.5rem;
  width: 100%;
}
.hero-text { max-width: 640px; }

.kicker-on-media { color: var(--brass-soft); }

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  color: var(--paper);
}

.signature-stroke {
  width: 220px;
  height: 42px;
  margin: 0.6rem 0 1.6rem;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}
.signature-stroke path {
  stroke: var(--brass-soft);
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw 1.4s ease-out 0.3s forwards;
}
@media (prefers-reduced-motion: reduce) {
  .signature-stroke path { animation: none; stroke-dashoffset: 0; }
}
@keyframes draw {
  to { stroke-dashoffset: 0; }
}

.hero-sub {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ---- stat strip ---- */
.stat-strip {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 0 !important;
  max-width: 100% !important;
}
.stat-row {
  display: flex;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2.2rem 1.5rem;
  flex-wrap: wrap;
}
.stat {
  flex: 1 1 200px;
  padding: 0 2rem;
  border-left: 1px solid var(--line);
}
.stat:first-child { border-left: none; padding-left: 0; }
.stat dd {
  font-family: var(--serif);
  font-size: 2.1rem;
  color: var(--gold-deep);
  margin: 0 0 0.2rem;
}
.stat dt {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ---- agitate ---- */
.agitate {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: stretch;
}
.agitate-text { display: flex; flex-direction: column; justify-content: center; gap: 1.6rem; }
.agitate blockquote {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  font-style: italic;
  line-height: 1.35;
  border-left: 3px solid var(--brass);
  padding-left: 1.4rem;
  margin: 0;
  color: var(--ink);
}
.agitate-body p {
  margin-bottom: 1rem;
  color: var(--ink-soft);
}
.agitate-body p:last-child { margin-bottom: 0; }
.agitate-media {
  margin: 0;
  min-height: 320px;
  border-radius: 2px;
  overflow: hidden;
}
.agitate-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---- offer ---- */
.offer {
  position: relative;
  color: var(--paper);
  max-width: 100%;
  padding: 5rem 1.5rem;
  overflow: hidden;
}
.offer-media { position: absolute; inset: 0; z-index: 0; }
.offer-media img { width: 100%; height: 100%; object-fit: cover; }
.offer-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(15, 14, 11, 0.95), rgba(4, 4, 3, 0.92));
}
.offer-inner {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}
.guarantee-statement {
  color: var(--paper);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 2.2rem;
}
.included-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.included-list li {
  padding-left: 1.4rem;
  border-left: 2px solid var(--brass-soft);
  color: rgba(255, 255, 255, 0.9);
}

/* ---- services ---- */
.services h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 2rem; }
.services-media {
  margin: 0 0 2.5rem;
  border-radius: 2px;
  overflow: hidden;
  max-height: 360px;
}
.services-media img { width: 100%; height: 100%; object-fit: cover; }
.service-list { border-top: 1px solid var(--line); }
.service-row {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  padding: 1.8rem 1rem;
  margin: 0 -1rem;
  border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.service-row:hover {
  border-left-color: var(--brass);
  background: rgba(169, 129, 46, 0.05);
}
.service-row h3 { margin-bottom: 0.4rem; }
.service-row p { color: var(--ink-soft); max-width: 60ch; }

/* ---- process ---- */
.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: center;
}
.process-media {
  margin: 0;
  border-radius: 2px;
  overflow: hidden;
  height: 100%;
  max-height: 520px;
}
.process-media img { width: 100%; height: 100%; object-fit: cover; }
.process-content h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 2rem; }
.process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.2rem;
}
.process-list li {
  display: grid;
  grid-template-columns: 3rem 1fr;
  gap: 1.2rem;
}
.step-num {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--brass);
}
.process-list h3 { margin-bottom: 0.4rem; }
.process-list p { color: var(--ink-soft); }

/* ---- about ---- */
.about h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 1.6rem; max-width: 28ch; }
.about-body {
  display: grid;
  gap: 1.2rem;
  max-width: 640px;
}
.about-body p { color: var(--ink-soft); }

/* ---- coverage ---- */
.coverage h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.75rem; max-width: 34ch; }
.coverage-sub { color: var(--ink-soft); max-width: 60ch; margin-bottom: 2rem; }
.municipio-list {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}
.municipio-list li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 0.45rem 1rem;
  font-size: 0.92rem;
}

/* ---- faq ---- */
.faq-list { border-top: 1px solid var(--line); max-width: 760px; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 1.2rem 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-weight: 500;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 1.6rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 0;
  color: var(--brass);
  font-size: 1.3rem;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  max-width: 65ch;
}

/* ---- contact ---- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
.contact-text { min-width: 0; }
.contact-text h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin: 0.75rem 0 1rem; }
.contact-text p { color: var(--ink-soft); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.8rem;
  border-radius: 3px;
  min-width: 0;
}
.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  min-width: 0;
}
.contact-form .full { grid-column: 1 / -1; }
.contact-form input,
.contact-form select,
.contact-form textarea {
  min-width: 0;
  font-family: var(--sans);
  font-size: 1rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
}
.form-note {
  font-size: 0.8rem;
  color: var(--gold-deep);
  margin-top: 0.4rem;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.consent-label {
  flex-direction: row !important;
  align-items: flex-start;
  gap: 0.6rem !important;
  font-size: 0.85rem !important;
}
.consent-label input { margin-top: 0.2rem; }
.consent-label a { text-decoration: underline; text-decoration-color: var(--brass-soft); }

/* ---- footer ---- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.75);
  padding: 3.5rem 1.5rem 2rem;
  max-width: 100%;
  font-size: 0.9rem;
}
.footer-top {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.logo-on-dark .logo-img { height: 52px; }
.footer-tagline {
  font-family: var(--serif);
  font-style: italic;
  color: var(--silver);
  margin-top: 0.6rem;
  font-size: 1.05rem;
}
.footer-links { display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a:hover { color: var(--brass-soft); }
.footer-contact p {
  margin: 0 0 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer-contact a:hover { color: var(--brass-soft); }
.contact-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}
.text-link {
  color: var(--gold-deep);
  text-decoration: underline;
  text-decoration-color: var(--brass-soft);
  text-underline-offset: 2px;
}
.footer-legal {
  max-width: 1080px;
  margin: 1.6rem auto 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}
.footer-legal a:hover { color: var(--brass-soft); }

/* ---- legal pages ---- */
.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 4rem 1.5rem 6rem;
}
.legal-page h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 0.5rem; }
.legal-page .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 2.5rem; display: block; }
.legal-page h2 { font-size: 1.3rem; margin: 2.2rem 0 0.8rem; }
.legal-page p { color: var(--ink-soft); margin-bottom: 1rem; }
.legal-page p:last-child { margin-bottom: 0; }
.legal-page ul { color: var(--ink-soft); padding-left: 1.2rem; margin: 0 0 1rem; }
.legal-page li { margin-bottom: 0.4rem; }
.legal-page a { color: var(--gold-deep); text-decoration: underline; text-decoration-color: var(--brass-soft); }
.legal-page .back-link { display: inline-block; margin-bottom: 2rem; color: var(--gold-deep); font-size: 0.9rem; }

/* ---- responsive ---- */
@media (max-width: 860px) {
  .nav { display: none; }
  .nav.nav-open {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 100%;
    right: 1.5rem;
    background: var(--white);
    padding: 1.2rem 1.6rem;
    border-radius: 3px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  }
  .nav-toggle { display: flex; }
  .agitate,
  .contact,
  .process-grid { grid-template-columns: 1fr; }
  .agitate-media { order: -1; min-height: 220px; }
  .process-media { max-height: 260px; }
  .service-row { grid-template-columns: 1fr; gap: 0.4rem; }
  .contact-form { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.8rem; }
  .stat-row { gap: 1.5rem 0; }
  .stat { border-left: none; padding: 0; flex: 1 1 45%; }
  .hero-media::after {
    background: linear-gradient(180deg, rgba(11, 10, 8, 0.8) 0%, rgba(11, 10, 8, 0.88) 55%, rgba(11, 10, 8, 0.93) 100%);
  }
}

/* ---- phones: menos aire entre secciones, hero más compacto ---- */
@media (max-width: 600px) {
  main > section { padding: 3.5rem 1.25rem; }
  .hero { min-height: auto; }
  .hero-inner { padding: 4.5rem 1.25rem 3rem; }
  .hero h1 { font-size: clamp(2rem, 8vw, 2.4rem); }
  .services-media { margin-bottom: 1.8rem; }
}
