/* ── TOKENS ── */
:root {
  --olive: #4A5043;
  --olive-dark: #363B31;
  --yellow: #F2C744;
  --yellow-light: #FFF8E1;
  --cream: #FAFAF7;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --gray-900: #2D2D2D;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-300: #CCCCCC;
  --gray-100: #F0F0ED;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Outfit', system-ui, sans-serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-full: 100px;
  --shadow-card: 0 4px 40px rgba(0,0,0,0.06);
  --shadow-hover: 0 12px 40px rgba(0,0,0,0.08);
  --transition-base: 0.25s ease;
  --transition-move: 0.3s ease;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  color: var(--black);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }

/* ── ACCESSIBILITY ── */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -100%; left: 16px;
  background: var(--olive);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* Focus visible — keyboard-only ring */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── UTILITY ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(24px, 5vw, 80px); }

/* ── NAV ── */
header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; }

nav {
  padding: 20px 0;
  background: rgba(250,250,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-base), padding var(--transition-base);
  position: relative;
  z-index: 101;
}
nav.scrolled { border-bottom-color: var(--gray-300); padding: 14px 0; }
nav .container { display: flex; justify-content: space-between; align-items: center; }

.nav-logo {
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--gray-700);
  text-decoration: none;
  transition: color var(--transition-base);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.nav-links a:hover { color: var(--olive); }

.nav-cta {
  background: var(--olive);
  color: var(--white) !important;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-weight: 500;
  transition: background var(--transition-base), transform var(--transition-base) !important;
  min-height: 44px !important;
}
.nav-cta:hover { background: var(--olive-dark) !important; transform: translateY(-1px) !important; }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--olive);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

/* Hamburger → X animation */
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav overlay (dark backdrop on mobile) */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 99;
  cursor: pointer;
}
.nav-overlay.visible { display: block; }

/* ── HERO ── */
.hero {
  min-height: 100vh;
  min-height: 100svh;    /* prevents iOS address-bar jump */
  display: flex;
  align-items: center;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%; right: -10%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(242,199,68,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-content { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.2s forwards;
}
.hero-tag::before { content: ''; width: 32px; height: 2px; background: var(--yellow); }

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5.5vw, 4.2rem);
  line-height: 1.1;
  color: var(--black);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.8s 0.4s forwards;
}
.hero h1 em { font-style: italic; color: var(--olive); }

.hero p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 480px;
  margin-bottom: 40px;
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}

.hero-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  opacity: 0;
  animation: fadeUp 0.8s 0.8s forwards;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--olive);
  color: var(--white);
  padding: 16px 36px;
  border-radius: var(--radius-full);
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition-move), transform var(--transition-move), box-shadow var(--transition-move);
  min-height: 52px;
}
.btn-primary:hover {
  background: var(--olive-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(74,80,67,0.25);
}

.btn-secondary {
  color: var(--olive);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  padding: 16px 8px;
  transition: color var(--transition-base);
  min-height: 52px;
  display: flex;
  align-items: center;
}
.btn-secondary:hover { color: var(--olive-dark); }
.btn-secondary::after { content: ' →'; }

/* Hero visual */
.hero-visual {
  opacity: 0;
  animation: fadeUp 0.8s 0.6s forwards;
}
.hero-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
  position: relative;
}
.hero-card::after {
  content: '';
  position: absolute;
  top: -8px; right: -8px; bottom: -8px; left: -8px;
  border: 1px solid var(--gray-300);
  border-radius: 28px;
  pointer-events: none;
}
.metric-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.metric {
  padding: 20px;
  border-radius: 12px;
  background: var(--cream);
}
.metric-value {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--olive);
  margin-bottom: 4px;
}
.metric-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  letter-spacing: 0.04em;
}
.hero-card-tag {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--gray-500);
}
.pulse {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* ── SECTIONS COMMON ── */
section { padding: clamp(60px, 10vw, 120px) 0; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--olive);
  margin-bottom: 16px;
}
.section-tag::before { content: ''; width: 24px; height: 2px; background: var(--yellow); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--gray-700);
  max-width: 560px;
}

/* ── SERVICIOS ── */
.servicios { background: var(--white); }
.servicios-header { margin-bottom: 64px; }
.servicios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }

.servicio-card {
  padding: 40px 32px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-100);
  background: var(--cream);
  transition: border-color var(--transition-move), transform var(--transition-move), box-shadow var(--transition-move);
  position: relative;
  overflow: hidden;
}
/* Accent bar slides in from left on hover */
.servicio-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition-move);
}
.servicio-card:hover {
  border-color: var(--yellow);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.servicio-card:hover::before { transform: scaleX(1); }

.servicio-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--olive);
  border-radius: 12px;
  margin-bottom: 24px;
  color: var(--white);
  transition: background var(--transition-base), transform var(--transition-base);
}
.servicio-card:hover .servicio-icon {
  background: var(--olive-dark);
  transform: scale(1.05);
}
.servicio-card h3 {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--black);
}
.servicio-card p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--gray-700);
}

/* Staggered reveal delays — servicios */
.servicios-grid .servicio-card:nth-child(1) { transition-delay: 0ms; }
.servicios-grid .servicio-card:nth-child(2) { transition-delay: 80ms; }
.servicios-grid .servicio-card:nth-child(3) { transition-delay: 160ms; }
.servicios-grid .servicio-card:nth-child(4) { transition-delay: 240ms; }
.servicios-grid .servicio-card:nth-child(5) { transition-delay: 320ms; }
.servicios-grid .servicio-card:nth-child(6) { transition-delay: 400ms; }

/* ── PROCESO ── */
.proceso { background: var(--cream); }
.proceso-header { text-align: center; margin-bottom: 72px; }
.proceso-header .section-tag { justify-content: center; }
.proceso-header .section-subtitle { margin: 0 auto; }
.proceso-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.proceso-steps::before {
  content: '';
  position: absolute;
  top: 32px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(to right, var(--yellow), var(--olive));
  z-index: 0;
}
.step {
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}
.step-number {
  width: 64px; height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--yellow);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--olive);
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
  transition: background var(--transition-move), color var(--transition-move), transform var(--transition-move);
}
.step:hover .step-number {
  background: var(--yellow);
  color: var(--olive-dark);
  transform: scale(1.08);
}
.step h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
  color: var(--black);
}
.step p {
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--gray-700);
}

/* ── TESTIMONIOS ── */
.testimonios { background: var(--white); }
.testimonios-header { text-align: center; margin-bottom: 64px; }
.testimonios-header .section-tag { justify-content: center; }
/* Carousel wrapper */
.testimonios-carousel { max-width: 640px; margin: 0 auto; }

.testimonio.carousel-hidden { display: none !important; }

.testimonio.carousel-enter-next {
  animation: carouselInNext 0.52s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.testimonio.carousel-enter-prev {
  animation: carouselInPrev 0.52s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes carouselInNext {
  from { opacity: 0; transform: translateX(64px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0)    scale(1); }
}

@keyframes carouselInPrev {
  from { opacity: 0; transform: translateX(-64px) scale(0.97); }
  to   { opacity: 1; transform: translateX(0)     scale(1); }
}

/* Controls row */
.carousel-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}

/* Dots */
.carousel-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gray-200);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
  background: var(--yellow);
  transform: scale(1.4);
}

/* Arrows */
.carousel-arrow {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--gray-200);
  background: var(--white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.carousel-arrow:hover {
  border-color: var(--yellow);
  background: var(--yellow);
  color: var(--black);
  transform: scale(1.08);
}

.testimonio {
  padding: 36px;
  border-radius: var(--radius-md);
  background: var(--cream);
  border: 1px solid var(--gray-100);
  position: relative;
  transition: border-color var(--transition-move), transform var(--transition-move), box-shadow var(--transition-move);
}
.testimonio:hover {
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

/* Stars */
.testimonio-stars {
  font-size: 1rem;
  color: var(--yellow);
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.testimonio blockquote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--gray-700);
  margin-bottom: 24px;
  font-style: italic;
}
.testimonio-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonio-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--olive);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}
.testimonio-name { font-weight: 600; font-size: 0.88rem; color: var(--black); }
.testimonio-role { font-size: 0.78rem; color: var(--gray-500); }


/* ── CONTACTO ── */
.contacto {
  background: var(--olive-dark);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.contacto::before {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(242,199,68,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.contacto .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contacto-info { padding-top: 20px; }
.contacto .section-tag { color: var(--yellow); }
.contacto .section-tag::before { background: var(--yellow); }
.contacto .section-title { color: var(--white); }
.contacto-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 40px;
}
.contacto-details { display: flex; flex-direction: column; gap: 20px; }
.contacto-detail { display: flex; align-items: center; gap: 16px; }
.contacto-detail-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08);
  border-radius: 12px;
  flex-shrink: 0;
  transition: background var(--transition-base);
}
.contacto-detail:hover .contacto-detail-icon { background: rgba(255,255,255,0.14); }
.contacto-detail-text { font-size: 0.9rem; color: rgba(255,255,255,0.8); }
.contacto-detail-text a {
  color: var(--yellow);
  text-decoration: none;
  transition: text-decoration var(--transition-base);
}
.contacto-detail-text a:hover { text-decoration: underline; }

/* Contact form */
.contacto-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.contacto-form h3 {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--black);
  margin-bottom: 8px;
}
.form-sub {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-bottom: 28px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 6px;
}
.required-mark { color: var(--olive); }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--black);
  background: var(--cream);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
  outline: none;
  min-height: 48px;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(74,80,67,0.1);
}
.form-group input.invalid,
.form-group textarea.invalid {
  border-color: #e05555;
  box-shadow: 0 0 0 3px rgba(224,85,85,0.12);
}
.form-error {
  display: block;
  font-size: 0.78rem;
  color: #e05555;
  margin-top: 4px;
  min-height: 1.2em;
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

/* Form status (aria-live region) */
.form-status {
  font-size: 0.9rem;
  color: #27AE60;
  font-weight: 500;
  margin-bottom: 8px;
  min-height: 1.4em;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: var(--olive);
  color: var(--white);
  border: none;
  border-radius: 12px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition-move), transform 0.2s ease;
  margin-top: 8px;
  min-height: 52px;
}
.form-submit:hover:not(:disabled) { background: var(--olive-dark); transform: translateY(-1px); }
.form-submit:disabled { opacity: 0.7; cursor: not-allowed; }

/* ── FOOTER ── */
footer {
  background: var(--black);
  color: rgba(255,255,255,0.5);
  padding: 48px 0;
}
footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-logo {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
}
.footer-logo span { color: var(--yellow); }
.footer-links { display: flex; gap: 24px; list-style: none; }
.footer-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-base);
  min-height: 44px;
  display: flex;
  align-items: center;
}
.footer-links a:hover { color: var(--yellow); }
.footer-copy { font-size: 0.78rem; }

/* ── WHATSAPP FAB ── */
.whatsapp-fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: transform var(--transition-move), box-shadow var(--transition-move);
  text-decoration: none;
}
.whatsapp-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,0.55);
}
.whatsapp-fab:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 4px;
}

/* ── NAV MASCOT EASTER EGG ── */
.nav-mascot {
  position: fixed;
  top: 72px;             /* sits just below the compact scrolled nav */
  right: 0;
  width: 80px;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  z-index: 999;
}

.nav-mascot.peeking {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .nav-mascot { width: 60px; top: 68px; }
}

.nav-mascot img {
  width: 100%;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(1.5); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 500px; }
  .servicios-grid { grid-template-columns: repeat(2, 1fr); }
  .proceso-steps { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .proceso-steps::before { display: none; }
  .contacto .container { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  /* Show toggle, hide desktop links */
  .mobile-toggle { display: flex; }

  /* Mobile nav — max-height slide */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(250,250,247,0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 0 24px;
    gap: 4px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), padding 0.35s ease, border-color 0.35s;
    border-bottom: 1px solid transparent;
    z-index: 90;
  }
  nav.nav-open .nav-links {
    max-height: 360px;
    padding: 16px 24px 24px;
    border-bottom-color: var(--gray-300);
    gap: 4px;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    padding: 10px 0;
    font-size: 1rem;
    width: 100%;
    border-bottom: 1px solid var(--gray-100);
  }
  .nav-links li:last-child a {
    border-bottom: none;
    margin-top: 8px;
    justify-content: center;
  }
  .nav-cta { padding: 12px 24px; border-radius: var(--radius-full); }

  /* Sections */
  .servicios-grid { grid-template-columns: 1fr; }
  .testimonios-carousel { max-width: 100%; }
  .proceso-steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  /* Hero card mobile optimizations */
  .hero-card { padding: 24px; }
  .hero-card::after { display: none; }   /* removes the border that bleeds outside */
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric { padding: 14px; }
  .metric-value { font-size: 1.5rem; }
  .metric-label { font-size: 0.72rem; }
  .hero-card-tag { font-size: 0.75rem; margin-top: 16px; padding-top: 14px; }
  footer .container { flex-direction: column; gap: 24px; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .contacto-form { padding: 28px 24px; }

  /* Reduce stagger on mobile */
  .servicios-grid .servicio-card:nth-child(n) { transition-delay: 0ms; }
}

@media (max-width: 768px) {
  /* Kill hero animations entirely on mobile — prevents layout jumps */
  .hero-tag,
  .hero h1,
  .hero p,
  .hero-actions,
  .hero-visual {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: flex-start; }
  .whatsapp-fab { bottom: 20px; right: 20px; }
}

@keyframes fadeOnly {
  from { opacity: 0; }
  to   { opacity: 1; }
}
