:root {
  --purple-700: #4C3FBF;
  --purple-600: #6C5CE7;
  --purple-400: #9C8CF2;
  --purple-100: #ECE9FD;
  --pink-600: #E63C9A;
  --pink-500: #F0479E;
  --pink-100: #FBE4F1;
  --ink: #1E1B3A;
  --ink-soft: #4B4768;
  --gray: #6B7280;
  --gray-light: #9CA3AF;
  --bg-page: #F5F3FD;
  --bg-card: #FFFFFF;
  --border-soft: #EDEAFB;
  --shadow-card: 0 20px 45px -18px rgba(76, 63, 191, 0.18);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --font-heading: 'Poppins', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-cursive: 'Caveat', cursive;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

/* ---------- SCROLL REVEAL ---------- */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal="left"] { transform: translateX(-36px); }
[data-reveal="right"] { transform: translateX(36px); }
[data-reveal="up"] { transform: translateY(32px); }
[data-reveal="down"] { transform: translateY(-32px); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* fade-only reveal: for elements that already animate transform on their own (e.g. drifting deco squares) */
[data-reveal="fade"] {
  transform: none;
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal="fade"].is-revealed { opacity: 1; }

/* "filling circle" reveal: grows in from the center, shrinks back out when leaving view */
[data-reveal="grow"] {
  opacity: 0;
  transform: scale(0.25);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal="grow"].is-revealed {
  opacity: 1;
  transform: scale(1);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
}

/* pause continuous animations (drift, chomp, zoom) while their element is scrolled out of view,
   so the browser isn't compositing/painting dozens of off-screen animations while scrolling */
[data-reveal]:not(.is-revealed) { animation-play-state: paused; }
.hero-banner:not(.is-revealed) .hero-banner-img { animation-play-state: paused; }
.contact-section:not(.in-view)::after { animation-play-state: paused; }

/* overflow-x: clip (not hidden) on both html and body: hidden on <html> silently breaks
   position: sticky in some browsers, but clip still stops decorative elements from
   creating a horizontal scrollbar without establishing a scroll container. */
html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container {
  max-width: 1560px;
  margin: 0 auto;
  padding: 0 40px;
}

.hero-grid > *,
.about-grid > *,
.contact-grid > *,
.service-detail-grid > *,
.about-features > *,
.about-stats > * {
  min-width: 0;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 16px;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 700; }

.text-accent { color: var(--purple-600); }

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.eyebrow-pink { color: var(--pink-600); }
.eyebrow-purple { color: var(--purple-600); }

.section-lead {
  color: var(--gray);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 0 8px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-gradient {
  color: #fff;
  background: linear-gradient(90deg, var(--purple-600), var(--pink-500));
  box-shadow: 0 12px 24px -10px rgba(108, 92, 231, 0.55);
}

.btn-whatsapp {
  color: #fff;
  background: var(--pink-500);
  box-shadow: 0 12px 24px -10px rgba(240, 71, 158, 0.5);
}

/* ---------- HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 243, 253, 0.82);
  /* backdrop-filter has to re-sample and blur whatever's behind it on every scroll frame
     because the sticky header stays on screen for the entire page; a lower radius keeps
     the frosted-glass look while cutting that per-frame GPU cost substantially */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo-mark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.site-header .logo-mark {
  animation: logo-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes logo-in {
  0% { opacity: 0; transform: translateY(-12px) scale(0.92); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .site-header .logo-mark { animation: none; }
}
.logo-img {
  height: 54px;
  width: auto;
}
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-lar {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo-accent { color: var(--purple-600); }
.logo-text {
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  font-size: 0.68rem;
  margin-top: 3px;
}
.main-nav { display: flex; align-items: center; justify-content: center; gap: 28px; }
.main-nav a {
  position: relative;
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding-bottom: 6px;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--purple-600);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.main-nav a:hover { color: var(--purple-600); }
.main-nav a.is-active {
  color: var(--purple-600);
  font-weight: 700;
}
.main-nav a.is-active::after { transform: scaleX(1); }
.nav-cta {
  background: var(--purple-100);
  color: var(--purple-700) !important;
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 600 !important;
}
.nav-cta::after { display: none; }
.nav-cta.is-active { background: var(--purple-600); color: #fff !important; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 0;
  overflow: hidden;
}
.hero-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--pink-500), var(--purple-400), var(--purple-600));
  z-index: 2;
}

.hero-banner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.hero-banner-img {
  width: 100%;
  height: auto;
  aspect-ratio: 2172 / 724;
  object-fit: cover;
  object-position: center;
  display: block;
  transform-origin: center;
  animation: hero-zoom 22s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes hero-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-banner-img { animation: none; }
}

.hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 130px;
  background: linear-gradient(to bottom, transparent, var(--bg-page));
  z-index: 2;
  pointer-events: none;
}

.hero-copy {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 44%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3% 4% 3% 5%;
}
.hero-copy .eyebrow { margin-bottom: 10px; }
.hero-eyebrow-mobile, .hero-h1-mobile { display: none; }
.hero-copy h1 {
  font-size: clamp(1.3rem, 2.5vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 10px;
  color: #1E1B3A;
}
.hero-underline {
  display: block;
  width: 44px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--purple-600), var(--pink-500));
  margin-bottom: 14px;
}
.hero-copy .lead {
  color: #4B4768;
  font-size: clamp(0.78rem, 1vw, 0.98rem);
  line-height: 1.5;
  max-width: 90%;
  margin-bottom: 18px;
}
.hero-copy .btn {
  align-self: flex-start;
  padding: clamp(9px, 1.1vw, 14px) clamp(16px, 2vw, 28px);
  font-size: clamp(0.8rem, 1vw, 1rem);
}

.section { padding: 80px 0; text-align: center; }
.section-alt { background: var(--bg-card); }
.section .eyebrow, .section h2, .section-lead { }
.section h2 { margin-left: auto; margin-right: auto; }
.section .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- SOBRE NOSOTROS ---------- */
.about-section { padding: 100px 0 90px; text-align: left; }

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: start;
}

.about-copy h2 { max-width: 480px; margin-bottom: 22px; }
.about-text {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.65;
  max-width: 480px;
  margin: 0 0 18px;
}
.about-copy .btn { margin-top: 12px; }

.about-quote {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 44px 0 0;
  padding-left: 18px;
  border-left: 3px solid var(--purple-200, #C9BFF7);
}
.about-quote-mark {
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  color: var(--purple-300, #B3A6F0);
  flex-shrink: 0;
}
.about-quote p {
  font-family: var(--font-cursive);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--purple-600);
  line-height: 1.25;
  margin: 6px 0 0;
}

.about-media { position: relative; }
.deco-purple-light {
  background: #C9BFF7;
  box-shadow: 0 20px 40px -18px rgba(108, 92, 231, 0.4);
}
.about-deco-a { width: 56px; height: 56px; top: -22px; left: 36px; }
.about-deco-b { width: 44px; height: 44px; top: 42%; right: -20px; opacity: 0.85; }
.about-deco-c { width: 32px; height: 32px; bottom: 18%; right: -14px; opacity: 0.7; }

.about-photo {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.about-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

.about-stats {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.about-stat {
  text-align: center;
  padding: 0 10px;
  border-left: 1px solid var(--border-soft);
}
.about-stat:first-child { border-left: none; }
.about-stat-icon {
  width: 42px;
  height: 42px;
  margin: 0 auto 12px;
  border-radius: var(--radius-sm);
  background: var(--purple-100);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.about-stat-icon svg { width: 20px; height: 20px; }
.about-stat-number {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--purple-600);
  margin: 0 0 6px;
}
.about-stat-label {
  font-size: 0.78rem;
  color: var(--gray);
  line-height: 1.35;
  margin: 0;
}

.about-stats-mobile { display: none; }

.about-features {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.about-feature {
  background: #F7F6FF;
  border-radius: var(--radius-md);
  padding: 20px 18px;
}
.feature-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--purple-100);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-icon svg { width: 20px; height: 20px; }
.about-feature h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.3;
  margin: 0;
}

/* ---------- SERVICIOS ---------- */
.services-section {
  position: relative;
  padding: 90px 0;
  text-align: left;
  background: var(--bg-page);
}

.services-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.services-head h2 { max-width: 560px; }
.eyebrow-dash { display: inline-flex; align-items: center; }
.eyebrow-dash::after {
  content: "";
  display: inline-block;
  width: 26px;
  height: 2px;
  margin-left: 10px;
  background: var(--pink-500);
  border-radius: 2px;
}
.services-tagline {
  color: var(--ink);
  font-weight: 500;
  text-align: right;
  max-width: 220px;
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--purple-300, #B3A6F0);
}

.service-block {
  background: var(--bg-card);
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 32px;
  margin-bottom: 32px;
}
.service-block:last-of-type { margin-bottom: 0; }

.category-caption {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  margin: 0 0 24px;
  cursor: default;
  text-align: left;
}
.category-caption-left { display: flex; align-items: center; gap: 12px; }
.category-caption-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--purple-100);
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.category-caption-icon svg { width: 18px; height: 18px; }
.category-caption-chevron { display: none; }

/* condensed summary card: replaces the interactive icon-grid + detail on tablet/mobile,
   until the visitor taps "ver todos los servicios" */
.service-summary { display: none; }
.service-summary-inner {
  display: flex;
  gap: 24px;
  align-items: stretch;
}
.service-summary-photo {
  flex: 0 0 42%;
  border-radius: var(--radius-md);
  overflow: hidden;
}
.service-summary-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-summary-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.service-summary-list { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.service-summary-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.92rem; color: var(--ink-soft); }
.service-summary-list svg { width: 18px; height: 18px; color: var(--purple-600); flex-shrink: 0; margin-top: 1px; }
.service-summary-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: auto; }
.service-summary-expand {
  background: none;
  border: none;
  padding: 0;
  color: var(--purple-600);
  font-weight: 700;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: var(--font-body);
}
.service-summary-expand:hover { text-decoration: underline; }
.service-summary-expand .arrow { transition: transform 0.15s ease; }
.service-summary-expand:hover .arrow { transform: translateX(3px); }

@media (max-width: 680px) {
  .service-summary-inner { flex-direction: column; }
  .service-summary-photo { flex: none; aspect-ratio: 16 / 10; }
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 12px;
}
.service-card {
  background: none;
  border: none;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  cursor: pointer;
  transition: transform 0.15s ease;
  font-family: var(--font-body);
}
.service-card:hover { transform: translateY(-2px); }
.service-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background: var(--purple-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple-600);
  transition: background 0.15s ease, color 0.15s ease;
}
.service-icon svg { width: 22px; height: 22px; }
.service-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.3;
}
.service-goto { display: none; }
.service-card.is-active .service-icon { background: var(--purple-600); color: #fff; }
.service-card.is-active .service-label { color: var(--purple-600); }

.service-detail.is-visible {
  margin-top: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  overflow: hidden;
}
.service-detail-inner {
  transition: transform 0.26s ease, opacity 0.26s ease;
}
.service-detail-inner.slide-out-left { transform: translateX(-28px); opacity: 0; }
.service-detail-inner.slide-out-right { transform: translateX(28px); opacity: 0; }
.service-detail-inner.slide-in-right { transform: translateX(28px); opacity: 0; }
.service-detail-inner.slide-in-left { transform: translateX(-28px); opacity: 0; }
.service-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr) minmax(0, 0.9fr);
  gap: 28px;
}

.service-visual { display: flex; flex-direction: column; gap: 14px; }
.service-visual-graphic {
  aspect-ratio: 4 / 3.2;
  border-radius: var(--radius-md);
  background: var(--purple-100);
  overflow: hidden;
}
.service-visual-graphic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.service-visual-caption {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F7F6FD;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.service-visual-caption p { margin: 0; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); line-height: 1.3; }
.service-visual-caption .info-icon { width: 36px; height: 36px; flex-shrink: 0; }
.service-visual-caption .info-icon svg { width: 18px; height: 18px; }

.service-copy h3 {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.service-description {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.55;
  margin: 0 0 20px;
}
.service-checklist {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.service-checklist svg {
  width: 18px;
  height: 18px;
  color: var(--purple-600);
  flex-shrink: 0;
  margin-top: 1px;
}
.btn-sm { padding: 11px 22px; font-size: 0.9rem; }
.btn-service { background: linear-gradient(90deg, var(--purple-700), var(--purple-400)); }

.service-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.faq-title { font-family: var(--font-heading); font-weight: 700; margin: 0 0 14px; color: var(--ink); }
.faq-item { border-bottom: 1px solid var(--border-soft); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: none;
  border: none;
  text-align: left;
  padding: 13px 0;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
}
.faq-question .chevron { width: 16px; height: 16px; flex-shrink: 0; color: var(--purple-600); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.faq-item.is-open .faq-question .chevron { transform: rotate(180deg); }
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.is-open .faq-answer { grid-template-rows: 1fr; }
.faq-answer-inner { overflow: hidden; min-height: 0; }
.faq-answer p { margin: 0 0 14px; font-size: 0.85rem; color: var(--gray); line-height: 1.5; }
@media (prefers-reduced-motion: reduce) {
  .faq-answer, .faq-question .chevron { transition: none; }
}

.service-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
.pagination-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  background: #fff;
  color: var(--purple-600);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.pagination-arrow svg { width: 14px; height: 14px; }
.pagination-arrow:hover { background: var(--purple-100); }
.pagination-count { font-weight: 600; color: var(--ink-soft); font-size: 0.85rem; white-space: nowrap; }

.services-cta { margin-top: 36px; }

@media (max-width: 680px) {
  .service-detail-grid { grid-template-columns: 1fr; }
  .services-head { flex-direction: column; align-items: flex-start; }
  .services-tagline { text-align: left; }
  /* the "Consultar sobre este servicio" button's text doesn't fit a phone width on one
     line at its desktop size, and white-space:nowrap was letting it overflow the card
     instead of shrinking */
  .service-actions { width: 100%; }
  .service-actions .service-cta { flex: 1 1 100%; white-space: normal; text-align: center; }

  /* less text + smaller type in the expanded service detail, mobile only:
     the full desktop copy (description + checklist + faq) made each service
     very long to scroll through on a phone */
  .service-detail.is-visible { padding: 22px 18px; }
  .service-copy h3 { font-size: 1.1rem; margin-bottom: 8px; }
  .service-description {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .service-checklist { gap: 7px; margin-bottom: 16px; }
  .service-checklist li { font-size: 0.8rem; }
  .service-checklist svg { width: 15px; height: 15px; }
  .service-visual-caption { padding: 10px 12px; gap: 9px; }
  .service-visual-caption p { font-size: 0.75rem; }
  .service-visual-caption .info-icon { width: 30px; height: 30px; }
  .service-visual-caption .info-icon svg { width: 15px; height: 15px; }
  .faq-title { font-size: 0.95rem; margin-bottom: 8px; }
  .faq-question { font-size: 0.8rem; padding: 10px 0; }
  .faq-answer p { font-size: 0.78rem; line-height: 1.4; margin-bottom: 10px; }
}

/* ---------- FAQ ---------- */
.faq-section {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  /* pins the section to a constant height across accordion states (only one answer is ever open
     at a time, so the real variance is small) so .faq-bg below never has to recompute its
     background-size: cover — that recalculation is what read as the photo "zooming" on open/close. */
  min-height: 1130px;
}
@media (max-width: 680px) {
  /* tall enough to fit any single answer open (not just the fully-closed state) so the
     section never grows past this and rescales .faq-bg's background-size:cover underneath */
  .faq-section { min-height: 980px; }
}
.faq-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-color: #F3EAF6;
  background-image:
    linear-gradient(100deg, rgba(247,240,250,0.95) 0%, rgba(247,240,250,0.82) 30%, rgba(247,240,250,0.35) 50%, transparent 66%),
    url("../assets/img/faq-fondo.webp");
  background-repeat: no-repeat, no-repeat;
  background-size: cover, cover;
  background-position: center, 30% center;
  /* gradient scrolls normally with the section; the photo stays pinned to the
     viewport, so the page scrolls over it instead of the photo scrolling too */
  background-attachment: scroll, fixed;
}
@media (max-width: 680px) {
  /* a portrait-cropped version of the same photo — the landscape one, scaled to cover a
     narrow tall section, only ever shows a thin sliver of the desk instead of the room.
     the single mobile column runs the full height of the section (not just a 44%-wide
     strip like desktop), so the veil has to stay dense top-to-bottom instead of fading
     out halfway, or the busy desk photo fights with the list text for legibility. */
  .faq-bg {
    background-image:
      linear-gradient(180deg, rgba(247,240,250,0.92) 0%, rgba(247,240,250,0.8) 40%, rgba(247,240,250,0.62) 70%, rgba(247,240,250,0.45) 100%),
      url("../assets/img/faq-fondo-mobile.webp");
    background-position: center, center 12%;
    /* iOS Safari doesn't render a fixed background reliably when an ancestor has
       overflow:hidden (the case here, on .faq-section) — the photo layer was
       silently failing to paint at all on real iPhones. mobile falls back to a
       normal scrolling background; the pinned/parallax effect stays on desktop. */
    background-attachment: scroll, scroll;
  }
}

.faq-fade-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 130px;
  background: linear-gradient(to bottom, var(--bg-page), transparent);
  z-index: 2;
  pointer-events: none;
}
.faq-fade-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 280px;
  /* with the photo now pinned to the viewport (background-attachment: fixed),
     whatever part of it lands near this edge changes as you scroll — ramping
     opacity up well before the edge (not just fading right at it) keeps the
     seam soft no matter which part of the photo happens to be there */
  background: linear-gradient(to bottom, transparent 0%, rgba(247,217,220,0.55) 45%, #F7D9DC 80%, #F7D9DC 100%);
  z-index: 2;
  pointer-events: none;
}
.faq-deco-a { top: 1.5%; left: 2%; width: 40px; height: 40px; animation-name: drift-b; animation-duration: 14s; animation-delay: -5s; }
.faq-deco-b { top: 3.5%; right: 2%; width: 34px; height: 34px; opacity: 0.7; animation-name: drift-c; animation-duration: 17s; animation-delay: -2s; }
.faq-deco-c { bottom: 4%; right: 3%; width: 42px; height: 42px; animation-name: drift-a; animation-duration: 13s; animation-delay: -7s; }
.faq-deco-d { bottom: 8%; left: 7%; width: 30px; height: 30px; opacity: 0.65; animation-name: drift-c; animation-duration: 16s; animation-delay: -3s; }

.faq-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: start;
}

.faq-intro { text-align: left; }
.faq-intro h2 { max-width: 460px; color: #1E1B3A; }
.faq-intro .section-lead { margin: 0; max-width: 420px; color: #4B4768; }

.faq-help-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 36px;
  max-width: 400px;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  padding: 22px 24px;
}
.faq-help-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--purple-600), var(--pink-500));
  color: #fff;
}
.faq-help-icon svg { width: 24px; height: 24px; }
.faq-help-title { font-family: var(--font-heading); font-weight: 700; font-size: 1rem; color: var(--ink); margin: 0 0 4px; }
.faq-help-text { font-size: 0.86rem; color: var(--ink-soft); margin: 0 0 12px; }
.faq-help-card .btn { padding: 10px 20px; font-size: 0.86rem; }

.faq-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.faq-expand {
  display: none;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  margin-top: 4px;
  color: var(--purple-600);
  font-weight: 700;
  font-size: 0.92rem;
  font-family: var(--font-body);
  cursor: pointer;
  align-self: flex-start;
}
.faq-expand:hover { text-decoration: underline; }
.faq-expand .arrow { transition: transform 0.15s ease; }
.faq-expand:hover .arrow { transform: translateX(3px); }
@media (max-width: 1024px) {
  .faq-list .faq-item:nth-child(n+5) { display: none; }
  .faq-expand { display: inline-flex; }
  .faq-list.is-expanded .faq-item { display: block; }
  .faq-list.is-expanded .faq-expand { display: none; }
}
.faq-list .faq-item {
  background: var(--bg-card);
  border: none;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 2px 20px;
}
.faq-list .faq-question { font-size: 0.92rem; padding: 12px 0; }
.faq-q-left { display: flex; align-items: center; gap: 12px; text-align: left; }
.faq-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--purple-100);
  color: var(--purple-600);
}
.faq-icon svg { width: 16px; height: 16px; }
.faq-list .faq-answer-inner { padding-left: 46px; }
.faq-list .faq-answer p {
  font-size: 0.9rem;
  margin: 0 0 16px;
  padding-top: 14px;
  border-top: 1px solid transparent;
}
.faq-list .faq-item.is-open .faq-answer p { border-top-color: var(--border-soft); }

.faq-cursive {
  font-family: var(--font-cursive);
  font-weight: 600;
  font-size: 1.4rem;
  color: var(--purple-600);
  text-align: right;
  line-height: 1.15;
  margin: 32px 0 0;
  position: relative;
  z-index: 1;
}

@media (max-width: 680px) {
  .faq-grid { grid-template-columns: 1fr; gap: 20px; }
  .faq-intro h2, .faq-intro .section-lead, .faq-help-card { max-width: none; }
  /* the reference keeps mobile to just the eyebrow + heading above the list */
  .faq-intro .section-lead, .faq-help-card { display: none; }
}
@media (max-width: 640px) {
  .faq-section { padding: 72px 0 76px; }
  .faq-help-card { flex-direction: column; }
  .faq-list .faq-answer-inner { padding-left: 0; }
}

/* ---------- CONTACTO ---------- */
.contact-section {
  position: relative;
  padding: 90px 0 70px;
  overflow: hidden;
  background-color: #F7D9DC;
  background-image:
    radial-gradient(ellipse 55% 45% at 12% 15%, rgba(255,255,255,0.6), transparent 60%),
    radial-gradient(ellipse 60% 55% at 88% 8%, rgba(236,140,168,0.4), transparent 65%),
    radial-gradient(ellipse 70% 65% at 75% 85%, rgba(247,190,199,0.55), transparent 62%),
    radial-gradient(ellipse 55% 50% at 5% 90%, rgba(255,222,225,0.6), transparent 60%),
    radial-gradient(ellipse 45% 40% at 45% 45%, rgba(255,235,236,0.4), transparent 65%);
}
.contact-section::after {
  content: "";
  position: absolute;
  inset: -15%;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.55), transparent 60%),
    radial-gradient(circle, rgba(236,140,168,0.4), transparent 60%);
  background-repeat: no-repeat;
  background-size: 55% 55%, 45% 45%;
  background-position: 15% 20%, 85% 75%;
  animation: bg-flow 26s ease-in-out infinite alternate;
  will-change: transform;
}
/* animates transform instead of background-position: the compositor can move the whole
   layer on the GPU for free, versus repainting the gradient every frame */
@keyframes bg-flow {
  0% { transform: translate(0, 0); }
  50% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .contact-section::after { animation: none; }
}
.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url("../assets/img/contacto-textura.webp");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  opacity: 0.6;
  mix-blend-mode: multiply;
  pointer-events: none;
}

.deco-square {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 16px;
  background: var(--purple-400);
  box-shadow: 0 20px 40px -16px rgba(30, 27, 58, 0.35);
  z-index: 5;
  opacity: 0.55;
  mix-blend-mode: multiply;
  animation: drift-a 15s ease-in-out infinite;
  will-change: transform;
  pointer-events: none;
}
.deco-purple { background: var(--purple-400); }
.deco-pink { background: var(--pink-500); }
.deco-pink-soft { background: rgba(255, 210, 220, 0.55); box-shadow: none; }
.deco-top { top: 6%; right: 8%; }
.deco-bottom { bottom: 14%; right: 4%; width: 38px; height: 38px; animation-name: drift-b; animation-duration: 12.5s; animation-delay: -4s; }

.hero-deco-a { width: 58px; height: 58px; top: 3%; left: 3%; opacity: 0.5; animation-name: drift-b; animation-duration: 14s; animation-delay: -3s; }
.hero-deco-b { width: 34px; height: 34px; top: 5.5%; left: 34%; opacity: 0.8; animation-name: drift-c; animation-duration: 11s; animation-delay: -6s; }
.hero-deco-c { width: 110px; height: 110px; border-radius: 30px; bottom: 3%; left: 2%; opacity: 0.4; animation-name: drift-a; animation-duration: 19s; animation-delay: -8s; }
.hero-deco-d { width: 44px; height: 44px; bottom: 5%; left: 32%; opacity: 0.75; animation-name: drift-b; animation-duration: 13s; animation-delay: -1s; }
.hero-deco-e { width: 36px; height: 36px; bottom: 9%; left: 19%; opacity: 0.6; animation-name: drift-c; animation-duration: 16s; animation-delay: -10s; }

@keyframes drift-a {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(16px, -20px) rotate(9deg); }
  50% { transform: translate(-8px, 8px) rotate(-6deg); }
  75% { transform: translate(10px, 18px) rotate(6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes drift-b {
  0% { transform: translate(0, 0) rotate(0deg); }
  30% { transform: translate(-18px, 12px) rotate(-8deg); }
  60% { transform: translate(12px, 20px) rotate(7deg); }
  85% { transform: translate(-10px, -14px) rotate(-5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
@keyframes drift-c {
  0% { transform: translate(0, 0) rotate(0deg); }
  20% { transform: translate(14px, 14px) rotate(6deg); }
  45% { transform: translate(-16px, -6px) rotate(-9deg); }
  70% { transform: translate(6px, -18px) rotate(5deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.about-deco-a { animation-name: drift-b; animation-duration: 13s; animation-delay: -2s; }
.about-deco-b { animation-name: drift-c; animation-duration: 17s; animation-delay: -6s; }
.about-deco-c { animation-name: drift-a; animation-duration: 11s; animation-delay: -1s; }
.services-deco-a { animation-name: drift-c; animation-duration: 15s; animation-delay: -4s; }
.services-deco-b { animation-name: drift-a; animation-duration: 12s; animation-delay: -8s; }
.services-deco-c { animation-name: drift-b; animation-duration: 18s; animation-delay: -3s; }
.services-deco-d { animation-name: drift-c; animation-duration: 14s; animation-delay: -9s; }

@media (prefers-reduced-motion: reduce) {
  .deco-square { animation: none; }
}

/* mirrors .faq-fade-bottom from the other side: contact's own radial-gradient
   background + texture overlay start abruptly right at its top edge, which read
   as a hard seam against the fade FAQ already used to ease out of its photo */
.contact-fade-top {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 220px;
  background: linear-gradient(to bottom, #F7D9DC 0%, #F7D9DC 20%, rgba(247,217,220,0.55) 55%, transparent 100%);
  z-index: 0;
  pointer-events: none;
}

.contact-container { position: relative; z-index: 1; }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 72px;
  align-items: start;
}

.contact-intro h2 { max-width: 460px; }

.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 32px;
  margin-top: 28px;
}

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.input-icon {
  position: relative;
  display: flex;
  align-items: center;
  background: #F7F6FD;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input-icon:focus-within {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px var(--purple-100);
}
.input-icon svg {
  width: 19px;
  height: 19px;
  color: var(--gray-light);
  flex-shrink: 0;
  margin-left: 14px;
}
.input-icon input,
.input-icon select,
.input-icon textarea {
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  padding: 13px 12px;
  width: 100%;
}
.input-icon input::placeholder,
.input-icon textarea::placeholder { color: var(--gray-light); }

.input-select select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  color: var(--ink);
}
.input-select select:invalid { color: var(--gray-light); }
.input-select .chevron {
  position: absolute;
  right: 14px;
  width: 16px;
  height: 16px;
  margin: 0;
  color: var(--gray);
  pointer-events: none;
}

.input-textarea { align-items: flex-start; }
.input-textarea svg { margin-top: 14px; }
.input-textarea textarea { resize: vertical; min-height: 96px; font-family: var(--font-body); }

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.form-submit-row { display: flex; align-items: center; gap: 14px; }
/* icon-only WhatsApp shortcut that replaces the standalone WhatsApp bar on mobile,
   sitting right next to the submit button instead */
.btn-whatsapp-round {
  display: none;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--pink-500);
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 12px 24px -10px rgba(240, 71, 158, 0.5);
  transition: transform 0.15s ease;
}
.btn-whatsapp-round:hover { transform: translateY(-2px); }
.btn-whatsapp-round svg, .btn-whatsapp-round img { width: 24px; height: 24px; }
.privacy-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray);
  margin: 0;
  line-height: 1.35;
  cursor: pointer;
}
.privacy-check input {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  accent-color: var(--purple-600);
  cursor: pointer;
}
.privacy-check a { color: var(--purple-600); font-weight: 600; }

.field-tooltip {
  position: absolute;
  z-index: 200;
  display: none;
  align-items: flex-start;
  gap: 8px;
  max-width: 260px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--pink-100);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: var(--ink);
  line-height: 1.4;
  pointer-events: none;
}
.field-tooltip.is-visible { display: flex; }
.field-tooltip::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 20px;
  width: 11px;
  height: 11px;
  background: var(--bg-card);
  border-left: 1px solid var(--pink-100);
  border-top: 1px solid var(--pink-100);
  transform: rotate(45deg);
}
.field-tooltip-icon { width: 18px; height: 18px; flex-shrink: 0; color: var(--pink-600); margin-top: 1px; }

/* ---------- TOAST (form submit feedback) ---------- */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: calc(100vw - 40px);
}
.toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 340px;
  max-width: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border-left: 4px solid var(--purple-600);
  padding: 16px 16px 16px 18px;
  font-family: var(--font-body);
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.toast.is-visible { transform: translateX(0); opacity: 1; }
.toast.is-error { border-left-color: #E0556B; }
.toast-icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--purple-600); margin-top: 1px; }
.toast.is-error .toast-icon { color: #E0556B; }
.toast-text { flex: 1; margin: 0; font-size: 0.9rem; color: var(--ink); line-height: 1.45; }
.toast-close {
  background: none;
  border: none;
  padding: 0;
  margin: -2px -2px 0 0;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--gray-light);
  cursor: pointer;
  flex-shrink: 0;
}
.toast-close:hover { color: var(--gray); }
@media (prefers-reduced-motion: reduce) {
  .toast { transition: none; }
}
@media (max-width: 480px) {
  .toast-container { top: 12px; right: 12px; left: 12px; max-width: none; }
  .toast { width: 100%; }
}

/* ---------- ASIDE: info + map ---------- */
.contact-aside { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }

.info-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 10px 28px;
}

.info-row {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-soft);
}
.info-row-last { border-bottom: none; }

.info-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.info-icon svg { width: 20px; height: 20px; color: #fff; }
.icon-purple { background: var(--purple-600); }
.icon-pink { background: var(--pink-500); }
.icon-lg { width: 52px; height: 52px; }
.icon-lg svg { width: 24px; height: 24px; }

.info-text { padding-top: 2px; min-width: 0; overflow-wrap: break-word; }
.info-label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--purple-600);
  margin: 0 0 4px;
}
.info-value {
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--ink);
  margin: 0 0 3px;
}
.info-sub {
  font-size: 0.85rem;
  color: var(--gray);
  margin: 0;
}

.map-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.map-thumb {
  width: 40%;
  aspect-ratio: 1 / 0.85;
  border-radius: var(--radius-md);
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}
.map-thumb iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-thumb-facade {
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font-family: var(--font-body);
}
.map-thumb-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-thumb-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(30, 27, 58, 0.38);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  padding: 10px;
  transition: background 0.15s ease;
}
.map-thumb-play svg { width: 26px; height: 26px; }
.map-thumb-facade:hover .map-thumb-play { background: rgba(30, 27, 58, 0.52); }
.map-text { flex: 1; }
.map-address { font-weight: 700; margin: 4px 0 10px; }
.map-link {
  color: var(--purple-600);
  font-weight: 600;
  text-decoration: none;
  font-size: 0.92rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.map-link:hover { text-decoration: underline; }

/* ---------- WHATSAPP BAR ---------- */
.whatsapp-bar {
  margin-top: 36px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.whatsapp-info { display: flex; align-items: center; gap: 18px; flex: 1 1 260px; min-width: 0; }
.whatsapp-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 0 2px;
}
.whatsapp-cursive {
  font-family: var(--font-cursive);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--purple-600);
  text-align: right;
  line-height: 1.15;
  margin: 0;
  flex-shrink: 0;
}

/* ---------- FOOTER ---------- */
.site-footer {
  position: relative;
  background: #453BD6;
  color: rgba(255,255,255,0.75);
  padding: 48px 0 20px;
  overflow: hidden;
  font-size: 0.92rem;
}
.footer-decor {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.deco-blob-a {
  width: 560px;
  height: 560px;
  top: -330px;
  left: -290px;
  background: conic-gradient(from 42deg, transparent 0deg 6deg, rgba(255,255,255,0.32) 6deg 360deg);
  animation: pacman-chomp-a 2.6s ease-in-out infinite;
}
.deco-blob-b {
  width: 480px;
  height: 480px;
  bottom: -290px;
  right: -250px;
  background: conic-gradient(from 222deg, transparent 0deg 6deg, rgba(255,255,255,0.28) 6deg 360deg);
  animation: pacman-chomp-b 2.6s ease-in-out infinite;
  animation-delay: -1.3s;
}

/* mouth wedge opens and closes like Pac-Man, aimed at the visible quadrant of each blob */
@keyframes pacman-chomp-a {
  0%, 100% { background: conic-gradient(from 42deg, transparent 0deg 6deg, rgba(255,255,255,0.32) 6deg 360deg); }
  50% { background: conic-gradient(from 11deg, transparent 0deg 68deg, rgba(255,255,255,0.32) 68deg 360deg); }
}
@keyframes pacman-chomp-b {
  0%, 100% { background: conic-gradient(from 222deg, transparent 0deg 6deg, rgba(255,255,255,0.28) 6deg 360deg); }
  50% { background: conic-gradient(from 191deg, transparent 0deg 68deg, rgba(255,255,255,0.28) 68deg 360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .deco-blob-a, .deco-blob-b { animation: none; }
}

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.3fr 0.8fr 1.7fr 1.15fr;
  gap: 32px;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.footer-logo-mark { display: inline-block; }
.footer-logo-img { height: 62px; width: auto; }

.footer-tagline {
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 14px auto 18px;
  max-width: 280px;
}
.footer-social { display: flex; gap: 10px; }
.social-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.social-icon svg { width: 15px; height: 15px; }
.social-icon:hover { background: rgba(255,255,255,0.12); }

.footer-heading {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 12px;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.footer-links a {
  display: block;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.82rem;
  line-height: 1.35;
}
.footer-links a:hover { color: #fff; }

.footer-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 28px;
}
.footer-services-sub {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.6);
  margin: 0 0 10px;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; }

.footer-col {
  position: relative;
  padding-left: 28px;
}
.footer-col::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 60%;
  background: rgba(255,255,255,0.18);
}
.footer-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #fff;
  margin-top: 1px;
}
.footer-icon svg { width: 100%; height: 100%; }
.footer-contact span:last-child { font-size: 0.82rem; line-height: 1.35; }

.footer-bottom {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(255,255,255,0.55);
}

/* ---------- RESPONSIVE ---------- */

/* ---- nav toggle (hamburger), only ever shown below the phone breakpoint ---- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .services-grid, .service-detail { display: none; }
  .service-summary { display: block; }
  .service-block.is-expanded .services-grid { display: grid; }
  .service-block.is-expanded .service-detail { display: block; }
  .service-block.is-expanded .service-summary { display: none; }

  /* the category header becomes a collapse toggle: tapping it hides everything below,
     leaving just the icon + title + chevron bar, matching the reference */
  .category-caption { cursor: pointer; margin-bottom: 20px; }
  .category-caption-chevron { display: block; width: 18px; height: 18px; flex-shrink: 0; color: var(--purple-600); transition: transform 0.25s ease; transform: rotate(180deg); }
  .category-caption[aria-expanded="false"] .category-caption-chevron { transform: rotate(0deg); }
  .service-block.is-collapsed .services-grid,
  .service-block.is-collapsed .service-detail,
  .service-block.is-collapsed .service-summary { display: none; }
  .service-block.is-collapsed .category-caption { margin-bottom: 0; }
}

@media (max-width: 680px) {
  .contact-grid { grid-template-columns: 1fr; gap: 0; }
  /* smaller cards so 3-4 fit per row instead of 2 — otherwise an expanded category
     (7 services for S.R.L.) turns into a very long single-file column */
  .services-grid { grid-template-columns: repeat(auto-fit, minmax(78px, 1fr)); gap: 6px; }
  .service-card { padding: 6px 4px; gap: 6px; }
  .service-icon { width: 38px; height: 38px; }
  .service-icon svg { width: 18px; height: 18px; }
  .service-label { font-size: 0.68rem; line-height: 1.25; }
  .header-inner { position: relative; grid-template-columns: auto auto; justify-content: space-between; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--bg-card);
    box-shadow: var(--shadow-card);
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.3s ease;
  }
  .main-nav.is-open { max-height: 420px; opacity: 1; padding: 10px 20px 18px; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--border-soft); }
  .main-nav a:last-child { border-bottom: none; }
  .main-nav .nav-cta { text-align: center; margin-top: 6px; }

  /* mobile keeps the same side-by-side overlay structure as desktop (text left, photo
     right, logo visible in the photo) instead of stacking. oficina-mobile.webp is a
     portrait photo (1156x1360) purpose-shot with a blank pastel panel on the left for
     the copy and the logo watermark centered on the right — forcing a landscape
     aspect-ratio here (1.35/1) was cropping it down to a short strip, cutting off the
     watermark logo and the plant. a slightly cropped ratio (instead of the full native
     0.85/1) trims a bit of empty ceiling/floor top and bottom while keeping the logo
     and plant, which are both close to vertical center, safely inside the frame. */
  .hero-banner-img { aspect-ratio: 1.18 / 1; }
  .hero-copy { padding: 4% 4% 4% 6%; }
  /* the full sentence wraps to 4 lines in this narrow column and blows the section's
     height budget; matching the reference, mobile splits it into a short eyebrow
     ("Más que números") + a short heading ("Construimos relaciones.") instead */
  .hero-eyebrow-desktop, .hero-h1-desktop { display: none; }
  .hero-eyebrow-mobile, .hero-h1-mobile { display: block; }
  /* fluid (vw-based) instead of fixed px: below 402px the hero's own height shrinks with
     the viewport too (it's set by aspect-ratio), so the copy has to shrink at the same
     rate or it stops fitting and gets clipped by .hero's overflow:hidden */
  .hero-copy .eyebrow { font-size: clamp(0.47rem, 2.47vw, 0.62rem); margin-bottom: 5px; }
  .hero-copy h1 { font-size: clamp(1.1rem, 5.6vw, 1.4rem); margin-bottom: 6px; }
  .hero-underline { width: 30px; height: 3px; margin-bottom: 7px; }
  .hero-copy .lead { font-size: clamp(0.56rem, 2.8vw, 0.7rem); line-height: 1.35; margin-bottom: 11px; }
  .hero-copy .btn { padding: clamp(7px, 2.25vw, 9px) clamp(12px, 4vw, 16px); font-size: clamp(0.59rem, 2.95vw, 0.74rem); gap: 6px; }
  /* .hero-fade's 130px height is tuned for the ~700px-tall desktop hero; at mobile's much
     shorter hero it was washing out the overlaid button near the bottom edge */
  .hero-fade { height: 36px; }
  .hero-copy .btn .arrow svg { width: 12px; height: 12px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-copy h2, .about-text { max-width: none; }
  .about-media, .about-quote, .about-copy > .btn { display: none; }
  .about-media { order: -1; margin-bottom: 8px; }
  .about-features { margin-top: 32px; gap: 10px; }
}

@media (max-width: 680px) {
  .about-stats { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .about-stat:nth-child(3) { border-left: none; }
  /* keeps the same 4-column grid as desktop, just tightened into small chips —
     matches the reference instead of collapsing to 2 columns */
  .about-features { gap: 8px; }
  .about-feature { padding: 10px 6px; overflow-wrap: break-word; }
  .feature-icon { width: 28px; height: 28px; margin-bottom: 8px; }
  .feature-icon svg { width: 14px; height: 14px; }
  /* a bit smaller still than the previous 0.66rem — the longer titles ("Compromiso
     con tu crecimiento", "Tu éxito es nuestro objetivo") were still getting a word
     or syllable clipped at that size inside these narrow cards */
  .about-feature h3 { font-size: 0.58rem; line-height: 1.3; hyphens: auto; }

  /* the stats bar normally lives inside .about-media, which is hidden on mobile —
     this second copy shows the same 4 stats below the feature cards instead */
  .about-stats-mobile {
    display: grid;
    margin-top: 28px;
    padding: 18px 10px;
    row-gap: 16px;
  }
  .about-stats-mobile .about-stat-icon { width: 34px; height: 34px; margin-bottom: 8px; }
  .about-stats-mobile .about-stat-icon svg { width: 16px; height: 16px; }
  .about-stats-mobile .about-stat-number { font-size: 1.2rem; margin-bottom: 3px; }
  .about-stats-mobile .about-stat-label { font-size: 0.68rem; }
  .about-stats-mobile .about-stat:nth-child(3) { border-left: none; }
}

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col-services, .footer-col-contact { display: none; }
  .footer-col { padding-left: 0; text-align: center; }
  .footer-col::before { display: none; }
  .footer-col .footer-heading { display: none; }
  .footer-links { align-items: center; }
  .footer-services-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  /* more compact form: tighter padding/gaps so the card reads wider than it is tall */
  .contact-form { padding: 22px 18px; margin-top: 20px; }
  .form-row { gap: 12px; }
  .form-field { margin-bottom: 14px; }
  .input-icon input, .input-icon select, .input-icon textarea { padding: 10px 10px; font-size: 0.88rem; }
  .input-textarea textarea { min-height: 56px; }
  /* the compact padding above was flattening the space the chevron needs, so long option
     text (or the placeholder-like default option) ran underneath the arrow icon */
  .input-select select { padding-right: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .input-select .chevron { right: 10px; }
  /* the "Ej. ..." example text doesn't fit in these narrow 2-up columns without visually
     truncating; the label above each field already says what goes in it */
  .form-row .input-icon input::placeholder { color: transparent; }
  .form-submit-row { width: 100%; }
  .form-submit-row .btn { flex: 1; }
  .btn-whatsapp-round { display: flex; }

  /* info card and map stack full-width below the form instead of squeezing side by side */
  .contact-aside { flex-direction: column; }
  .info-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 16px;
    row-gap: 18px;
    padding: 20px 18px;
  }
  .info-card .info-row { border-bottom: none; padding: 0; gap: 8px; min-width: 0; }
  .info-card .info-text { overflow-wrap: anywhere; }
  .info-card .info-icon { width: 28px; height: 28px; }
  .info-card .info-icon svg { width: 14px; height: 14px; }
  .info-card .info-label { font-size: 0.7rem; }
  .info-card .info-value { font-size: 0.78rem; line-height: 1.3; }
  .info-card .info-sub { font-size: 0.7rem; }
  .map-card { padding: 16px; }
  .map-address { font-size: 0.86rem; }

  /* the standalone WhatsApp bar is replaced by the round button next to "Enviar consulta" */
  .contact-section .whatsapp-bar { display: none; }
}

@media (max-width: 360px) {
  .container { padding: 0 16px; }
  .whatsapp-bar { padding: 22px 20px; }
  .btn-whatsapp { white-space: normal; }
}
