:root {
  --teal: #039a95;
  --teal-dark: #027a76;
  --teal-soft: #e3f3f1;
  --ink: #0d141a;
  --ink-2: #3b4650;
  --sand: #f6f3ee;
  --paper: #fffdf9;
  --line: #e4ded4;
  --radius: 18px;
  --wrap: 1160px;
  --font-head: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.75rem); font-weight: 600; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
section { padding: clamp(64px, 10vw, 120px) 0; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 1rem;
}
.eyebrow-light { color: #7fd6d1; }
.accent { color: var(--teal); }
.signature { font-family: var(--font-head); font-size: 1.4rem; font-weight: 600; color: var(--teal-dark); }

/* Botones */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  background: var(--teal); color: #fff; text-decoration: none;
  font: 600 1rem/1 var(--font-body);
  padding: 16px 26px; border-radius: 999px; border: 2px solid var(--teal);
  cursor: pointer; transition: background .2s, border-color .2s, transform .2s;
}
.btn:hover { background: var(--teal-dark); border-color: var(--teal-dark); transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; fill: currentColor; }
.btn-sm { padding: 10px 18px; font-size: .95rem; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--sand); border-color: var(--ink); }
.btn-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.08); border-color: #fff; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,253,249,.88); backdrop-filter: blur(12px);
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { height: 44px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.nav a:not(.btn):hover { color: var(--teal-dark); }
.nav .btn { color: #fff; }
.nav-toggle { display: none; }

/* Hero */
.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }
.lead em { font-style: normal; color: var(--ink); font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.hero-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .95rem; color: var(--ink-2); }
.hero-points li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); margin-right: 8px; vertical-align: middle; }
.hero-media { margin: 0; border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.2; box-shadow: 0 30px 60px -30px rgba(13,20,26,.35); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }

/* Calma */
.calm { background: var(--sand); }
.calm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.calm-copy p { font-size: 1.12rem; color: var(--ink-2); }
.pains { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pains li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; font-weight: 500; color: var(--ink-2); }
.pains s { text-decoration-color: var(--teal); text-decoration-thickness: 2px; }

/* Servicios */
.section-head { max-width: 760px; margin-bottom: 56px; }
.service-list { display: grid; gap: 28px; }
.service {
  display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: stretch;
  background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
}
.service:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.service:nth-child(even) img { order: 2; }
.service img { width: 100%; height: 100%; min-height: 300px; max-height: 440px; object-fit: cover; }
.service-body { padding: clamp(28px, 4vw, 52px); align-self: center; }
.service-body p { color: var(--ink-2); }
.num { font-family: var(--font-head); font-weight: 600; color: var(--teal); font-size: .95rem; letter-spacing: .1em; display: block; margin-bottom: 10px; }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23027a76' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Proceso */
.process { background: var(--sand); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 64px; }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--teal); color: #fff; font: 600 1rem var(--font-head);
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 24px; left: 60px; right: 0; height: 2px; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 12px); opacity: .45; }
.steps p { color: var(--ink-2); }

/* Somos */
.about { background: var(--ink); color: #e9eef0; }
.about-grid { display: grid; grid-template-columns: 0.6fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.about-mark { aspect-ratio: 1; border-radius: 50%; background: var(--teal); display: grid; place-items: center; max-width: 320px; width: 100%; justify-self: center; }
.about-mark img { width: 62%; }
.about blockquote { margin: 0; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; }
.about blockquote .strong { font-family: var(--font-head); font-size: 1.6rem; font-weight: 600; color: #fff; margin-top: 1.4em; }
.author { margin-top: 28px; display: flex; flex-direction: column; }
.author strong { color: #fff; font-size: 1.1rem; }
.author span { color: #9fb0b8; font-size: .95rem; }

/* Para quién */
.for-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.for-grid p { font-size: 1.12rem; color: var(--ink-2); }

/* FAQ */
.faq { background: var(--sand); }
.faq-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-list { display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 0 24px; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font: 400 1.6rem/1 var(--font-head); color: var(--teal); transition: rotate .2s; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { color: var(--ink-2); padding-bottom: 8px; }

/* Contacto */
.contact { background: var(--ink); color: #e9eef0; }
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-lines { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.contact-lines span { display: block; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb0b8; }
.contact-lines a { color: #fff; font-size: 1.2rem; font-weight: 500; text-decoration-color: var(--teal); text-underline-offset: 4px; }
.contact-form { background: #16212a; border: 1px solid #24323d; border-radius: 24px; padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.field { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-weight: 500; font-size: .95rem; color: #cfd8dc; padding: 0; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: #fff; background: #0d141a; border: 1px solid #2c3b47; border-radius: 12px; padding: 12px 14px;
}
.field input::placeholder { color: #66757f; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(3,154,149,.25); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid #2c3b47; cursor: pointer; color: #cfd8dc; transition: all .15s; }
.chips input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.form-error { color: #ffb4a8; margin: 0; }

/* Footer */
.site-footer { background: #091015; color: #9fb0b8; padding: 48px 0; font-size: .95rem; }
.footer-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; }
.footer-logo { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.site-footer p { margin: 0; }
.small { font-size: .85rem; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.07); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .calm-grid, .for-grid, .faq-wrap, .contact-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-media { aspect-ratio: 16 / 10; }
  .pains { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .steps li::after { display: none; }
  .service, .service:nth-child(even) { grid-template-columns: 1fr; }
  .service:nth-child(even) img { order: 0; }
  .service img { min-height: 0; max-height: 280px; }
  .about-mark { max-width: 180px; }
  .footer-inner { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 36px; }
  .nav-toggle {
    display: grid; gap: 6px; place-content: center; width: 44px; height: 44px; background: none; border: 0; cursor: pointer;
  }
  .nav-toggle span { width: 24px; height: 2px; background: var(--ink); transition: transform .2s; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav .btn { justify-content: center; margin-top: 16px; }
  .pains, .steps { grid-template-columns: 1fr; }
  .cta-row .btn { flex: 1 1 100%; justify-content: center; }
  .form-actions .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
