/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f2f7f6;
  --bg-2:      #e3f0ee;
  --surface:   #ffffff;
  --ink:       #0e2a2c;
  --ink-soft:  #24494c;
  --ink-mute:  #5c7678;
  --teal-deep: #0a4844;
  --teal:      #157b73;
  --mint:      #57b9ab;
  --copper:    #c96a2e;
  --copper-soft: #e2a06f;
  --line:      rgba(14,42,44,0.12);
  --cream:     #fbf8f3;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --display: "Manrope", var(--sans);

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 20px 50px -20px rgba(10,72,68,0.25);
  --shadow-soft: 0 10px 30px -12px rgba(10,72,68,0.18);
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; letter-spacing: -0.02em; font-family: var(--display); color: var(--ink); }
ul { list-style: none; padding: 0; }
::selection { background: var(--mint); color: var(--teal-deep); }

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

.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--cream); color: var(--ink);
  z-index: 9999; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* =============================================================
   3. Utilities
   ============================================================= */
.container { max-width: 1200px; margin-inline: auto; padding-inline: 1.25rem; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.section { position: relative; padding-block: clamp(4rem, 9vw, 7.5rem); }
.section-inner { position: relative; z-index: 2; }
.kicker {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 1rem;
}
.kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--copper); display: inline-block;
}
.section-head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); margin-bottom: 1rem; }
.section-head p { color: var(--ink-mute); font-size: 1.05rem; max-width: 56ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .95rem 1.7rem; border-radius: 999px; font-family: var(--display);
  font-weight: 700; font-size: .98rem; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .35s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--copper); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(201,106,46,.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -10px rgba(201,106,46,.6); }
.btn-ghost {
  background: var(--surface); color: var(--teal-deep);
  border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--teal); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-block { width: 100%; }

/* =============================================================
   4. Nav
   ============================================================= */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(242,247,246,0.82);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-color: var(--line); box-shadow: 0 8px 30px -18px rgba(10,72,68,.4); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .9rem; }
.brand { display: flex; align-items: center; gap: .55rem; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--teal-deep); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  display: grid; place-items: center; color: #fff; flex-shrink: 0;
}
.nav-links { display: none; align-items: center; gap: 1.9rem; }
.nav-links a { font-weight: 600; font-size: .95rem; position: relative; padding-block: .3rem; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: var(--copper); transform: scaleX(0); transform-origin: right;
  transition: transform .35s var(--ease-out);
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-right { display: flex; align-items: center; gap: .75rem; }
.lang-switch { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch button {
  padding: .35rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700;
  color: var(--ink-mute); transition: background .25s ease, color .25s ease;
}
.lang-switch button.is-active { background: var(--teal-deep); color: #fff; }
.nav-cta { display: none; }
.nav-toggle { display: grid; place-items: center; width: 42px; height: 42px; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink); position: relative;
  transition: transform .3s ease, opacity .3s ease;
}
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: fixed; inset: 0; top: 0; z-index: 90;
  background: var(--cream);
  display: flex; flex-direction: column; padding: 6rem 1.5rem 2rem;
  transform: translateY(-100%); transition: transform .45s var(--ease-out);
}
.nav-mobile.is-open { transform: translateY(0); }
.nav-mobile a { font-family: var(--display); font-size: 1.6rem; font-weight: 700; padding-block: .7rem; border-bottom: 1px solid var(--line); }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* =============================================================
   5. Hero (liquid waves + blobs)
   ============================================================= */
.hero {
  position: relative;
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(5rem, 10vw, 8rem);
  overflow: clip;
  isolation: isolate;
}
.hero-wave {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
}
.hero-wave svg { width: 100%; height: 100%; }
.hero-blob {
  position: absolute; z-index: -1; border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%;
  filter: blur(2px);
  animation: blobMorph 14s ease-in-out infinite;
  opacity: .55;
}
.hero-blob.b1 { width: 340px; height: 340px; top: -80px; right: 6%; background: radial-gradient(circle at 30% 30%, var(--mint), transparent 70%); }
.hero-blob.b2 { width: 260px; height: 260px; bottom: -60px; left: 2%; background: radial-gradient(circle at 60% 40%, var(--copper-soft), transparent 70%); animation-delay: -6s; }
@keyframes blobMorph {
  0%, 100% { border-radius: 38% 62% 63% 37% / 41% 44% 56% 59%; transform: translate3d(0,0,0) scale(1); }
  50%      { border-radius: 55% 45% 40% 60% / 55% 60% 40% 45%; transform: translate3d(0,-16px,0) scale(1.05); }
}
.hero-grid {
  display: grid; gap: clamp(2.5rem, 6vw, 4rem); align-items: center;
}
.hero-text .kicker { color: var(--copper); }
.hero-text .kicker::before { background: var(--teal); }
.hero-title {
  font-size: clamp(2.3rem, 6.4vw, 4.4rem);
  max-width: 15ch;
  margin-bottom: 1.3rem;
}
.hero-title em { font-style: normal; color: var(--teal); }
.hero-sub { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.5rem; }
.hero-badges { display: flex; flex-wrap: wrap; gap: .6rem .9rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .84rem; font-weight: 600; color: var(--ink-soft);
  background: rgba(255,255,255,.65); border: 1px solid var(--line);
  padding: .45rem .9rem; border-radius: 999px;
}
.hero-badge svg { width: 15px; height: 15px; color: var(--teal); flex-shrink: 0; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; background: var(--surface); border-radius: var(--radius-lg);
  padding: 1.6rem; box-shadow: var(--shadow-card);
  transform: rotate(-2deg);
}
.hero-card img { border-radius: var(--radius-md); aspect-ratio: 4/3; object-fit: cover; }
.hero-card-caption { display: flex; align-items: center; gap: .7rem; margin-top: 1.1rem; }
.hero-card-caption .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  display: grid; place-items: center; color: #fff; font-weight: 700;
}
.hero-card-caption strong { display: block; font-size: .92rem; color: var(--ink); }
.hero-card-caption span { display: block; font-size: .8rem; color: var(--ink-mute); }
.hero-float {
  position: absolute; background: var(--surface); border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft); padding: .9rem 1.15rem; display: flex; align-items: center; gap: .7rem;
  animation: floatY 5s ease-in-out infinite;
}
.hero-float.f1 { top: -6%; left: -8%; }
.hero-float.f2 { bottom: -8%; right: -6%; animation-delay: -2.5s; }
.hero-float svg { width: 26px; height: 26px; color: var(--copper); flex-shrink: 0; }
.hero-float strong { display: block; font-size: 1.05rem; color: var(--ink); font-family: var(--display); }
.hero-float span { display: block; font-size: .74rem; color: var(--ink-mute); }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

/* Wave divider used between sections */
.wave-divider { position: relative; line-height: 0; }
.wave-divider svg { width: 100%; height: clamp(50px, 9vw, 130px); display: block; }

/* =============================================================
   6. Reveal system
   ============================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }

/* =============================================================
   7. Servicios
   ============================================================= */
.servicios { background: var(--bg-2); }
.servicios-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.3rem;
}
.service-card {
  background: var(--surface); border-radius: var(--radius-md); padding: 1.9rem 1.6rem;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out), border-color .4s var(--ease-out);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: transparent; }
.service-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--teal), var(--teal-deep)); color: #fff; margin-bottom: 1.1rem;
}
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-card p { font-size: .92rem; color: var(--ink-mute); }

/* =============================================================
   8. Precios
   ============================================================= */
.precios-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.3rem; }
.price-card {
  background: var(--surface); border-radius: var(--radius-md); padding: 2rem 1.6rem;
  border: 1px solid var(--line); position: relative; overflow: clip;
}
.price-card.is-featured { border-color: var(--teal); box-shadow: var(--shadow-card); }
.price-card.is-featured::before {
  content: "Más solicitado"; position: absolute; top: 14px; right: -32px;
  background: var(--copper); color: #fff; font-size: .68rem; font-weight: 700;
  padding: .3rem 2.2rem; transform: rotate(35deg); letter-spacing: .04em;
}
.price-name { font-family: var(--display); font-weight: 700; color: var(--ink); margin-bottom: .4rem; }
.price-amount { font-family: var(--display); font-size: 1.9rem; font-weight: 800; color: var(--teal-deep); margin-bottom: .7rem; }
.price-detail { font-size: .88rem; color: var(--ink-mute); }
.precios-note { margin-top: 2rem; font-size: .88rem; color: var(--ink-mute); max-width: 60ch; }

/* =============================================================
   9. Testimonios
   ============================================================= */
.testimonios { background: var(--bg-2); }
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.3rem; }
.testi-card {
  background: var(--surface); border-radius: var(--radius-md); padding: 1.7rem;
  border: 1px solid var(--line); position: relative;
}
.testi-stars { display: flex; gap: .2rem; color: var(--copper); margin-bottom: .8rem; }
.testi-stars svg { width: 16px; height: 16px; }
.testi-text { font-size: .95rem; color: var(--ink-soft); margin-bottom: 1rem; }
.testi-name { font-weight: 700; font-size: .88rem; color: var(--ink); }
.testi-demo-flag {
  display: inline-block; margin-top: .6rem; font-size: .7rem; font-weight: 700;
  color: var(--copper); background: rgba(201,106,46,.1); padding: .2rem .6rem; border-radius: 999px;
}
.testi-note { margin-top: 1.6rem; font-size: .85rem; color: var(--ink-mute); }
#ti-widget:empty { display: none; }

/* =============================================================
   10. FAQ
   ============================================================= */
.faq-list { max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-block: 1.3rem; text-align: left; font-family: var(--display); font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.faq-q .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.faq-q .plus::before, .faq-q .plus::after {
  content: ""; position: absolute; background: var(--teal); border-radius: 2px; transition: transform .3s var(--ease-out);
}
.faq-q .plus::before { top: 50%; left: 0; width: 100%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after { left: 50%; top: 0; height: 100%; width: 2px; transform: translateX(-50%); }
.faq-item.is-open .faq-q .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out); }
.faq-a p { padding-bottom: 1.3rem; color: var(--ink-mute); max-width: 62ch; font-size: .95rem; }
.faq-item.is-open .faq-a { max-height: 300px; }

/* =============================================================
   11. Contacto + mapa
   ============================================================= */
.contacto-grid { display: grid; gap: 2.5rem; }
.contact-form { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(1.6rem, 3vw, 2.4rem); border: 1px solid var(--line); box-shadow: var(--shadow-soft); }
.form-row { display: grid; gap: 1.1rem; margin-bottom: 1.1rem; }
.form-row.two { grid-template-columns: 1fr; }
.field label { display: block; font-size: .84rem; font-weight: 700; color: var(--ink-soft); margin-bottom: .45rem; }
.field input, .field select, .field textarea {
  width: 100%; padding: .85rem 1rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  background: var(--bg); font: inherit; color: var(--ink); transition: border-color .25s ease, box-shadow .25s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px rgba(21,123,115,.12);
}
.field textarea { min-height: 120px; resize: vertical; }
.form-note { font-size: .82rem; color: var(--ink-mute); margin-top: 1rem; }

.contact-side { display: flex; flex-direction: column; gap: 1rem; }
.contact-chip {
  display: flex; align-items: center; gap: 1rem; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.2rem 1.4rem;
  transition: transform .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.contact-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.contact-chip .ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg-2); display: grid; place-items: center; color: var(--teal); flex-shrink: 0; }
.contact-chip .ic svg { width: 21px; height: 21px; }
.contact-chip strong { display: block; font-size: .95rem; color: var(--ink); }
.contact-chip span { display: block; font-size: .84rem; color: var(--ink-mute); }

.zona { position: relative; }
.zona-grid { display: grid; gap: 1.6rem; }
.map-frame { border-radius: var(--radius-lg); overflow: clip; border: 1px solid var(--line); box-shadow: var(--shadow-card); }
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }
.zona-hours { display: flex; align-items: center; gap: .7rem; font-weight: 600; color: var(--ink-soft); }
.zona-hours svg { width: 20px; height: 20px; color: var(--teal); flex-shrink: 0; }

@media (min-width: 860px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
  .contacto-grid { grid-template-columns: 1.2fr .8fr; }
  .zona-grid { grid-template-columns: .8fr 1.2fr; }
}

/* =============================================================
   12. CTA final
   ============================================================= */
.cta-final { position: relative; overflow: clip; }
.cta-final-inner {
  background: linear-gradient(135deg, var(--teal-deep), var(--teal));
  border-radius: var(--radius-lg); padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center; color: #fff; position: relative; overflow: clip;
}
.cta-final-inner h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.cta-final-inner p { color: rgba(255,255,255,.85); max-width: 52ch; margin-inline: auto; margin-bottom: 2rem; }
.cta-final-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.cta-final .btn-ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.3); }
.cta-final .btn-ghost:hover { background: rgba(255,255,255,.2); }

/* =============================================================
   13. Footer
   ============================================================= */
.footer { background: var(--teal-deep); color: rgba(255,255,255,.78); padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; gap: 2.2rem; margin-bottom: 2.5rem; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand-mark { background: rgba(255,255,255,.15); }
.footer-tagline { margin-top: .8rem; font-size: .92rem; max-width: 32ch; color: rgba(255,255,255,.65); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .6rem; font-size: .9rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .82rem; color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.7); }
.footer-bottom a:hover { color: #fff; }

@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); }
}

/* =============================================================
   14. Responsive base breakpoints
   ============================================================= */
@media (min-width: 540px) { .container { padding-inline: 1.75rem; } }
@media (min-width: 960px) { .container { padding-inline: 2.5rem; } }
