/* ==========================================================================
   Limpieza Express - hoja de estilos unica (mobile first)
   ========================================================================== */

:root {
  --color-primary: #0284C7;
  --color-primary-dark: #026FA6;
  --color-secondary: #0F172A;
  --color-accent: #10B981;
  --color-whatsapp: #25D366;

  --color-bg: #FFFFFF;
  --color-bg-alt: #F8FAFC;
  --color-white: #FFFFFF;
  --color-text: #334155;
  --color-text-light: #5A6B80;
  --color-border: #E2E8F0;

  --font-display: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.15rem, 1.2rem + 0.6vw, 1.5rem);
  --text-2xl: clamp(1.4rem, 1.2rem + 1.6vw, 2.25rem);
  --text-3xl: clamp(1.7rem, 1.35rem + 2.2vw, 3rem);
  --text-4xl: clamp(2rem, 1.4rem + 3.4vw, 4rem);

  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 26px;
  --radius-full: 999px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 68px;
}

@media (min-width: 992px) {
  :root { --header-h: 96px; }
}

/* --------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-secondary);
  text-wrap: balance;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

section { scroll-margin-top: calc(var(--header-h) + 12px); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; top: -100px; left: 0;
  background: var(--color-secondary); color: var(--color-white);
  padding: 1rem 1.5rem; z-index: 999; font-weight: 600;
}
.skip-link:focus { top: 0; }

/* --------------------------------------------------------- Utilidades */
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-sm { font-size: var(--text-sm); }
.text-muted { color: var(--color-text-light); }
.w-full { width: 100%; }

.section-title { font-size: var(--text-3xl); margin-bottom: 0.75rem; }
.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-light);
  max-width: 62ch;
  margin-inline: auto;
  text-wrap: pretty;
}

/* --------------------------------------------------------- Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.75rem;
  min-height: 48px;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
  line-height: 1.2;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.25s;
  text-align: center;
}
.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--color-primary); color: var(--color-white); }
.btn-primary:hover { background: var(--color-primary-dark); transform: translateY(-3px); box-shadow: 0 10px 22px rgba(2,132,199,0.28); }

.btn-whatsapp { background: var(--color-whatsapp); color: #05331a; }
.btn-whatsapp:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(37,211,102,0.32); }

.btn-ghost {
  background: rgba(255,255,255,0.12);
  color: var(--color-white);
  border-color: rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,0.22); transform: translateY(-3px); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 48px; padding: 0.75rem 1.25rem;
  background: transparent; color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-full);
  font-family: var(--font-display); font-weight: 600;
  transition: background-color 0.25s, color 0.25s;
}
.btn-outline:hover { background: var(--color-primary); color: var(--color-white); }

.btn-xl { font-size: var(--text-lg); padding: 1.15rem 1.75rem; min-height: 56px; }

/* --------------------------------------------------------- Header */
.site-header {
  position: fixed; top: 0; left: 0; width: 100%;
  z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 1rem; }

.logo { display: inline-flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); }
.logo img { height: 38px; width: auto; }
.logo-text {
  display: inline-flex; align-items: baseline; gap: 0.28rem;
  font-size: 1.12rem; letter-spacing: -0.025em; line-height: 1;
}
.logo-text .brand-main { color: var(--color-secondary); font-weight: 700; }
.logo-text .brand-accent { color: var(--color-primary); font-weight: 800; }

@media (min-width: 992px) {
  .logo img { height: 54px; }
  .logo-text { font-size: 1.4rem; }
}

.desktop-nav { display: none; gap: 2rem; align-items: center; }
.nav-link {
  font-family: var(--font-display); font-weight: 500;
  color: var(--color-text); position: relative;
  transition: color 0.25s;
}
.nav-link::after {
  content: ''; position: absolute; left: 0; bottom: -5px;
  width: 0; height: 2px; background: var(--color-primary);
  transition: width 0.3s var(--ease);
}
.nav-link:hover { color: var(--color-primary); }
.nav-link:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }
.header-cta { display: none; }

.menu-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px;
  background: none; border: none; cursor: pointer;
  color: var(--color-secondary);
  border-radius: 12px;
  transition: background-color 0.25s;
}
.menu-btn:hover { background: var(--color-bg-alt); }
.menu-btn .icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-open { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }

@media (min-width: 992px) {
  .desktop-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-btn { display: none; }
}

/* --------------------------------------------------------- Menu movil */
.mobile-menu {
  position: fixed; inset: 0;
  top: var(--header-h);
  height: calc(100dvh - var(--header-h));
  background: rgba(255,255,255,0.985);
  backdrop-filter: blur(16px);
  z-index: 99;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }

.mobile-link {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 600;
  color: var(--color-secondary);
  padding: 0.5rem 1rem;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), color 0.25s;
}
.mobile-menu.is-open .mobile-link { opacity: 1; transform: translateY(0); }
.mobile-menu.is-open .mobile-link:nth-child(1) { transition-delay: 0.05s; }
.mobile-menu.is-open .mobile-link:nth-child(2) { transition-delay: 0.10s; }
.mobile-menu.is-open .mobile-link:nth-child(3) { transition-delay: 0.15s; }
.mobile-menu.is-open .mobile-link:nth-child(4) { transition-delay: 0.20s; }
.mobile-menu.is-open .mobile-link:nth-child(5) { transition-delay: 0.25s; }
.mobile-menu.is-open .mobile-link:nth-child(6) { transition-delay: 0.30s; }
.mobile-link:hover { color: var(--color-primary); }

.mobile-menu .btn { margin-top: 0.5rem; opacity: 0; transition: opacity 0.35s var(--ease) 0.35s; }
.mobile-menu.is-open .btn { opacity: 1; }

body.menu-open { overflow: hidden; }

/* --------------------------------------------------------- Hero */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
  text-align: center;
  color: var(--color-white);
  background-color: #16213a;
  background-image:
    linear-gradient(to bottom, rgba(15,23,42,0.82), rgba(15,23,42,0.62)),
    url('../images/hero-bg-600.jpg');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

@supports (background-image: image-set(url('x.webp') type('image/webp'))) {
  .hero {
    background-image:
      linear-gradient(to bottom, rgba(15,23,42,0.82), rgba(15,23,42,0.62)),
      image-set(url('../images/hero-bg-600.webp') type('image/webp'),
                url('../images/hero-bg-600.jpg') type('image/jpeg'));
  }
}

@media (min-width: 640px) {
  .hero {
    padding: calc(var(--header-h) + 5rem) 0 5rem;
    background-image:
      linear-gradient(to bottom, rgba(15,23,42,0.82), rgba(15,23,42,0.62)),
      url('../images/hero-bg.jpg');
  }
  @supports (background-image: image-set(url('x.webp') type('image/webp'))) {
    .hero {
      background-image:
        linear-gradient(to bottom, rgba(15,23,42,0.82), rgba(15,23,42,0.62)),
        image-set(url('../images/hero-bg.webp') type('image/webp'),
                  url('../images/hero-bg.jpg') type('image/jpeg'));
    }
  }
}

.geo-tag {
  display: inline-block;
  background: rgba(2,132,199,0.28);
  color: #BAE6FD;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(56,189,248,0.4);
}

.hero-title {
  font-size: var(--text-4xl);
  color: var(--color-white);
  max-width: 18ch;
  margin: 0 auto 1.1rem;
  line-height: 1.08;
}
@media (min-width: 768px) { .hero-title { max-width: 22ch; } }

.hero-desc {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.92);
  max-width: 56ch;
  margin: 0 auto 1.75rem;
  text-wrap: pretty;
}

.hero-actions {
  display: flex; flex-direction: column; gap: 0.75rem;
  align-items: stretch;
  max-width: 340px; margin: 0 auto 2rem;
}
@media (min-width: 560px) {
  .hero-actions { flex-direction: row; justify-content: center; max-width: none; }
}

.hero-badges {
  display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255,255,255,0.94);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--color-text);
}
.hero-badge strong {
  font-family: var(--font-display);
  font-size: 1.05rem; font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

/* --------------------------------------------------------- Servicios */
.services-section { padding: 3.5rem 0; background: var(--color-bg-alt); }
@media (min-width: 768px) { .services-section { padding: 5.5rem 0; } }

.services-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 2.5rem;
}
@media (min-width: 560px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .services-grid { grid-template-columns: repeat(3, 1fr); gap: 1.75rem; } }

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
@media (hover: hover) {
  .service-card:hover { transform: translateY(-6px); box-shadow: 0 20px 38px rgba(2,132,199,0.12); border-color: var(--color-primary); }
  .service-card:hover .card-img img { transform: scale(1.05); }
}

.card-img { width: 100%; aspect-ratio: 16 / 10; overflow: hidden; background: var(--color-bg-alt); }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--ease); }

.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
@media (min-width: 992px) { .card-body { padding: 1.75rem; } }
.card-body h3 { font-size: var(--text-xl); margin-bottom: 0.6rem; }
.card-body p { color: var(--color-text-light); font-size: var(--text-sm); margin-bottom: 1.25rem; flex: 1; }

.card-price {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-sm); color: var(--color-primary);
  margin-bottom: 1rem;
}

/* --------------------------------------------------------- Evidencia */
.gallery-section { padding: 3.5rem 0; background: var(--color-bg-alt); position: relative; overflow: hidden; }
@media (min-width: 768px) { .gallery-section { padding: 5.5rem 0; } }

.gallery-intro { max-width: 70ch; margin: 0 auto 2.5rem; text-align: center; }
.gallery-intro p { color: var(--color-text-light); font-size: var(--text-lg); margin-top: 1rem; text-wrap: pretty; }

.compare-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .compare-grid { grid-template-columns: 1fr 1fr; gap: 1.25rem; } }

.compare-item {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #0b1220;
  border: 3px solid var(--color-white);
  box-shadow: 0 12px 30px rgba(0,0,0,0.12);
}
.compare-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.5s ease-in-out; }

.compare-label {
  position: absolute; top: 12px;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  color: #fff; font-weight: 600; font-size: 0.8rem;
  z-index: 2; transition: opacity 0.5s ease-in-out;
}
.label-before { left: 12px; background: rgba(15,23,42,0.82); backdrop-filter: blur(4px); }
.label-after { right: 12px; background: var(--color-primary); }

.compare-dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 1.5rem; }
.compare-dot {
  width: 40px; height: 40px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
}
.compare-dot::before {
  content: ''; width: 9px; height: 9px; border-radius: 50%;
  background: var(--color-border); transition: background-color 0.25s, transform 0.25s;
}
.compare-dot[aria-selected="true"]::before { background: var(--color-primary); transform: scale(1.35); }

/* --------------------------------------------------------- Confianza / B2B */
.trust-section { padding: 3.5rem 0; background: var(--color-white); }
@media (min-width: 768px) { .trust-section { padding: 5.5rem 0; } }

.trust-box { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; }
@media (min-width: 992px) { .trust-box { grid-template-columns: 1fr 1fr; gap: 3.5rem; } }
.trust-content h2 { font-size: var(--text-3xl); margin-bottom: 1.25rem; }
.trust-content p { color: var(--color-text-light); margin-bottom: 1rem; }
.rounded-img { border-radius: var(--radius-lg); width: 100%; box-shadow: 0 18px 38px rgba(0,0,0,0.08); }

.zone-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; padding: 0; list-style: none; }
.zone-list li {
  background: var(--color-bg-alt); border: 1px solid var(--color-border);
  border-radius: var(--radius-full); padding: 0.35rem 0.85rem;
  font-size: var(--text-sm); color: var(--color-secondary);
}

.b2b-wrapper {
  background: var(--color-secondary); color: var(--color-white);
  border-radius: var(--radius-lg); overflow: hidden;
  display: grid; grid-template-columns: 1fr;
  margin-top: 3rem;
  box-shadow: 0 20px 50px rgba(15,23,42,0.14);
}
@media (min-width: 992px) { .b2b-wrapper { grid-template-columns: 1fr 1fr; margin-top: 5rem; } }

.b2b-text { padding: 2rem 1.5rem; display: flex; flex-direction: column; justify-content: center; }
@media (min-width: 768px) { .b2b-text { padding: 3rem; } }
@media (min-width: 1200px) { .b2b-text { padding: 4rem; } }
.b2b-text h2 { color: var(--color-white); font-size: var(--text-3xl); margin-bottom: 1.25rem; }
.b2b-text p { color: rgba(255,255,255,0.82); margin-bottom: 1rem; }

.b2b-logos { display: flex; gap: 1rem; margin: 1.5rem 0; flex-wrap: wrap; align-items: center; }
.b2b-logo {
  background: #fff; border-radius: 10px;
  padding: 0.6rem 1.1rem; height: 56px;
  display: inline-flex; align-items: center; justify-content: center;
}
.b2b-logo img { max-height: 34px; width: auto; }

.b2b-image { min-height: 260px; }
@media (min-width: 992px) { .b2b-image { min-height: 100%; } }
.b2b-image img { width: 100%; height: 100%; object-fit: cover; }

.b2b-text .btn { align-self: flex-start; }

/* --------------------------------------------------------- Proceso */
.process-section { padding: 3.5rem 0; background: var(--color-bg-alt); }
@media (min-width: 768px) { .process-section { padding: 5.5rem 0; } }

.process-grid {
  display: grid; gap: 1.25rem; margin-top: 2.5rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}
@media (min-width: 640px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .process-grid { grid-template-columns: repeat(4, 1fr); } }

.process-step {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  counter-increment: step;
}
.process-step::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--color-primary); color: #fff;
  font-family: var(--font-display); font-weight: 700;
  margin-bottom: 0.9rem;
}
.process-step h3 { font-size: var(--text-lg); margin-bottom: 0.4rem; }
.process-step p { color: var(--color-text-light); font-size: var(--text-sm); }

/* --------------------------------------------------------- FAQ */
.faq-section { padding: 3.5rem 0; background: var(--color-white); }
@media (min-width: 768px) { .faq-section { padding: 5.5rem 0; } }
.faq-container { max-width: 820px; }

.faq-item {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  margin-bottom: 0.75rem;
  overflow: hidden;
}
.faq-question {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.15rem 1.25rem;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-base); color: var(--color-secondary);
  min-height: 56px;
}
@media (min-width: 768px) { .faq-question { font-size: var(--text-lg); padding: 1.35rem 1.75rem; } }
.faq-question .chevron { flex-shrink: 0; transition: transform 0.3s var(--ease); color: var(--color-primary); }
.faq-question[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.faq-answer {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.32s var(--ease);
}
.faq-answer p {
  color: var(--color-text-light);
  padding: 0 1.25rem 1.25rem;
  text-wrap: pretty;
}
@media (min-width: 768px) { .faq-answer p { padding: 0 1.75rem 1.5rem; } }

/* Sin JS las respuestas quedan visibles */
.no-js .faq-answer { max-height: none; }

/* --------------------------------------------------------- Formulario */
.form-section { padding: 3.5rem 0 4.5rem; background: var(--color-bg-alt); }
@media (min-width: 768px) { .form-section { padding: 5.5rem 0 7rem; } }

.form-card {
  max-width: 620px; margin: 0 auto;
  background: var(--color-white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: 0 20px 50px rgba(15,23,42,0.08);
}
@media (min-width: 560px) { .form-card { padding: 2.25rem; } }
@media (min-width: 768px) { .form-card { padding: 3rem; } }

.form-header { text-align: center; margin-bottom: 2rem; }
.form-header h2 { font-size: var(--text-3xl); margin-bottom: 0.75rem; }
.form-header p { color: var(--color-text-light); }

.lead-form { display: flex; flex-direction: column; gap: 1.15rem; }
.input-group { display: flex; flex-direction: column; gap: 0.4rem; }
.input-group label { font-weight: 600; font-size: var(--text-sm); color: var(--color-secondary); }

.input-group input,
.input-group select,
.input-group textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  min-height: 48px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 16px; /* evita el zoom automatico de iOS */
  background: var(--color-bg-alt);
  color: var(--color-text);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
}
.input-group textarea { resize: vertical; min-height: 92px; }

.input-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230F172A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}

.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: var(--color-white);
  box-shadow: 0 0 0 4px rgba(2,132,199,0.13);
}

.input-group input[aria-invalid="true"],
.input-group select[aria-invalid="true"] { border-color: #DC2626; }
.field-error { font-size: var(--text-sm); color: #DC2626; min-height: 0; }

.form-tip { text-align: center; font-size: var(--text-sm); color: var(--color-text-light); }

/* --------------------------------------------------------- Boton flotante */
.floating-whatsapp {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-whatsapp); color: #fff;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
  z-index: 90;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}
.floating-whatsapp:hover { transform: scale(1.08); }
.floating-whatsapp svg { width: 30px; height: 30px; }
body.menu-open .floating-whatsapp { opacity: 0; pointer-events: none; }

/* --------------------------------------------------------- Footer */
.site-footer { background: var(--color-secondary); color: var(--color-white); padding: 3rem 0 1.5rem; }
@media (min-width: 768px) { .site-footer { padding: 4.5rem 0 2rem; } }

.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.5rem; margin-bottom: 2.5rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .footer-grid { grid-template-columns: 2fr 1fr 1.5fr; gap: 3.5rem; } }

.logo-footer img { filter: brightness(0) invert(1); height: 44px; width: auto; }
.logo-footer .brand-main { color: var(--color-white); }
.logo-footer .brand-accent { color: #38BDF8; }

.footer-desc { color: rgba(255,255,255,0.72); max-width: 44ch; }

.footer-socials { display: flex; gap: 0.75rem; }
.social-icon {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: var(--color-white);
  transition: background-color 0.25s, transform 0.25s;
}
.social-icon:hover { background: var(--color-primary); transform: translateY(-3px); }

.footer-heading { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-white); margin-bottom: 1.25rem; }
.footer-links, .footer-contact { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-links a { color: rgba(255,255,255,0.72); display: inline-block; padding: 0.15rem 0; transition: color 0.25s; }
.footer-links a:hover { color: #38BDF8; }
.footer-contact li { display: flex; gap: 0.75rem; color: rgba(255,255,255,0.72); font-size: var(--text-sm); line-height: 1.55; }
.footer-contact a { color: #38BDF8; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 1.5rem; text-align: center;
  color: rgba(255,255,255,0.55); font-size: var(--text-sm);
}
.footer-bottom p + p { margin-top: 0.4rem; }
