/* =========================================================
   PERUTIC — Hoja de estilos principal
   ========================================================= */

:root {
  --primary: #0A2540;
  --primary-light: #123C73;
  --primary-lighter: #1B4C8C;
  --accent: #00B8A9;
  --accent-dark: #00998C;
  --accent-2: #00AEEF;
  --brand-orange: #F4841F;
  --bg: #ffffff;
  --bg-alt: #F5F7FA;
  --text: #1E2A38;
  --text-light: #5B6B7C;
  --border: #E3E8EF;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 8px rgba(10, 37, 64, 0.06);
  --shadow-md: 0 8px 30px rgba(10, 37, 64, 0.10);
  --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.16);
  --container: 1180px;
  --ff-heading: 'Poppins', 'Inter', system-ui, sans-serif;
  --ff-body: 'Inter', system-ui, -apple-system, sans-serif;
  --transition: 0.25s ease;
  /* Curvas de easing con más carácter que las de CSS por defecto */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

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

/* Páginas públicas de la tienda (store_header.php/store_footer.php): el
   footer debe quedar siempre al final de la ventana, incluso con poco
   contenido (ej. carrito vacío), sin flotar a mitad de pantalla. */
body.store-page { min-height: 100vh; display: flex; flex-direction: column; }
body.store-page > main { flex: 1; }

img, svg { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--ff-heading);
  color: var(--primary);
  line-height: 1.25;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p { margin: 0 0 1em; color: var(--text-light); }

a { color: inherit; text-decoration: none; }

ul { list-style: none; margin: 0; padding: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}
.icon-sm { width: 16px; height: 16px; }

/* Campo honeypot: oculto visualmente para personas, pero presente en el DOM
   (no display:none/visibility:hidden) para que bots simples que rellenan
   todos los campos sin evaluar CSS lo detecten y se delaten. Excluido del
   flujo de foco/lectores de pantalla vía tabindex="-1" + aria-hidden en el HTML. */
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ===================== BOTONES ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background 200ms var(--ease-out), color 200ms var(--ease-out), border-color 200ms var(--ease-out);
  white-space: nowrap;
}
/* Feedback de presión: instantáneo en pointer-down, no solo al soltar */
.btn:active { transform: scale(0.97); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--accent-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

.btn-outline {
  background: transparent;
  border-color: var(--primary);
  color: var(--primary);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255,255,255,0.6);
  color: var(--white);
}
@media (hover: hover) and (pointer: fine) {
  .btn-outline-light:hover { background: var(--white); color: var(--primary); transform: translateY(-2px); }
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
}
@media (hover: hover) and (pointer: fine) {
  .btn-whatsapp:hover { background: #1ebe5b; transform: translateY(-2px); box-shadow: var(--shadow-md); }
}

/* CTA principal de conversión (Solicitar cotización / Cotiza tu proyecto):
   debe destacar más que cualquier otro botón del sitio. */
.btn-quote {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: var(--white);
  font-weight: 700;
  padding-left: 28px;
  padding-right: 28px;
  box-shadow: 0 10px 24px -6px rgba(0,184,169,0.5);
}
@media (hover: hover) and (pointer: fine) {
  .btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -6px rgba(0,174,239,0.55);
    filter: brightness(1.06);
  }
}
.btn-quote:active { transform: scale(0.97); filter: brightness(0.98); }
.btn-quote.btn-lg { padding-left: 34px; padding-right: 34px; }

.btn-icon-only { width: 42px; height: 42px; padding: 0; border-radius: 50%; }

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.site-header .container {
  max-width: 1400px;
  padding: 0 20px;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.brand-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.brand-logo-img { height: 46px; width: auto; display: block; }
.brand-logo-footer .brand-logo-img { height: 40px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
  justify-content: flex-end;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: nowrap;
  flex-shrink: 1;
}
.main-nav a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 1px;
  white-space: nowrap;
  transition: color var(--transition);
}
.main-nav a:hover, .main-nav a.active { color: var(--accent); }
.main-nav a.active::after {
  content: '';
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  padding-left: 22px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
}
.nav-cta .btn {
  height: 42px;
  padding: 0 20px;
  font-size: 0.85rem;
  white-space: nowrap;
}
.nav-cta .btn-quote { padding: 0 24px; }

/* .main-nav a { color: var(--text) } tiene más especificidad que .btn-quote/.btn-outline
   por sí solos (son <a> dentro de .main-nav) — sin esto el texto del CTA se veía apagado. */
.main-nav a.btn-quote,
.main-nav a.btn-quote:hover,
.main-nav a.btn-quote.active { color: var(--white); }
.main-nav a.btn-outline { color: var(--primary); }
.main-nav a.btn-outline:hover,
.main-nav a.btn-outline.active { color: var(--white); }
.whatsapp-btn { background: #25D366; color: var(--white); }
.whatsapp-btn:hover { background: #1ebe5b; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--primary);
}
.nav-toggle .icon { width: 26px; height: 26px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 50px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(0,184,169,0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.eyebrow-dark { color: var(--primary-light); background: rgba(10,37,64,0.06); }

.hero-text h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5em;
}
.hero-sub {
  font-size: 1.08rem;
  max-width: 540px;
  margin-bottom: 1.6em;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }

.hero-trust {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 500;
}
.hero-trust .icon { color: var(--accent); }

.hero-illustration { width: 100%; height: auto; }

/* Composición del hero: el dashboard central permanece estable (hero-anchor);
   solo las 5 tarjetas flotantes (hero-badge) entran con stagger y luego derivan suavemente. */
.hero-anchor,
.hero-badge { opacity: 0; }

.hero-visual.in-view .hero-anchor {
  animation: heroAnchorIn 560ms var(--ease-out) both;
}
.hero-visual.in-view .hero-badge-1 { animation: heroBadgeIn 480ms var(--ease-out) 120ms both, floaty 4.5s ease-in-out infinite 600ms; }
.hero-visual.in-view .hero-badge-2 { animation: heroBadgeIn 480ms var(--ease-out) 200ms both, floaty 5.2s ease-in-out infinite 680ms; }
.hero-visual.in-view .hero-badge-3 { animation: heroBadgeIn 480ms var(--ease-out) 280ms both, floaty 4s ease-in-out infinite 760ms; }
.hero-visual.in-view .hero-badge-4 { animation: heroBadgeIn 480ms var(--ease-out) 360ms both, floaty 5.6s ease-in-out infinite 840ms; }
.hero-visual.in-view .hero-badge-5 { animation: heroBadgeIn 480ms var(--ease-out) 440ms both, floaty 6s ease-in-out infinite 920ms; }

@keyframes heroAnchorIn {
  from { opacity: 0; transform: scale(0.97) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes heroBadgeIn {
  from { opacity: 0; transform: scale(0.9) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Movimiento reducido: se conservan las transiciones de opacidad (ayudan a
   entender el cambio de estado), se elimina cualquier desplazamiento/escala. */
@media (prefers-reduced-motion: reduce) {
  .hero-anchor,
  .hero-badge,
  .hero-visual.in-view .hero-anchor,
  .hero-visual.in-view .hero-badge-1,
  .hero-visual.in-view .hero-badge-2,
  .hero-visual.in-view .hero-badge-3,
  .hero-visual.in-view .hero-badge-4,
  .hero-visual.in-view .hero-badge-5 {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  [data-animate] {
    transition: opacity 250ms ease !important;
    transform: none !important;
  }
  .cookie-banner {
    transform: none !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 250ms ease !important;
  }
  .cookie-banner.visible { opacity: 1; pointer-events: auto; }
  .whatsapp-float { animation: none !important; }
  .btn,
  .service-card,
  .mini-card,
  .product-card { transition-duration: 120ms !important; }
  .btn:hover,
  .service-card:hover,
  .mini-card:hover,
  .product-card:hover { transform: none !important; }
}

/* ===================== SECCIONES GENERALES ===================== */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-trust { padding: 56px 0; border-bottom: 1px solid var(--border); }
.section-trust .section-head { margin-bottom: 36px; }
.section-trust .section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); }
.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 32px 48px;
}
.trust-logos img {
  height: 34px;
  width: auto;
  opacity: 0.55;
  filter: grayscale(100%);
  transition: opacity var(--transition);
}
.trust-logos img:hover { opacity: 0.9; }

.section-head {
  max-width: 680px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.section-head p { font-size: 1.02rem; }

/* ===================== PÁGINAS LEGALES ===================== */
.legal-content { max-width: 780px; margin: 0 auto; }
.legal-content h1 { font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin-bottom: 0.3em; }
.legal-updated { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1.6em; }
.legal-content h2 { font-size: 1.25rem; margin-top: 1.8em; margin-bottom: 0.5em; }
.legal-content h3 { font-size: 1.05rem; margin-top: 1.2em; margin-bottom: 0.4em; color: var(--primary-light); }
.legal-content p { margin-bottom: 1em; color: var(--text); line-height: 1.7; }
.legal-content ul { margin: 0 0 1.2em; padding-left: 22px; }
.legal-content li { margin-bottom: 0.5em; line-height: 1.6; }
.legal-content a { color: var(--accent-dark); text-decoration: underline; }

/* ===================== TARJETAS DE SERVICIO ===================== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: transparent;
  }
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-lighter));
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card-icon .icon { width: 26px; height: 26px; }
.service-card h3 { font-size: 1.15rem; margin-bottom: 0.5em; }
.service-card p { font-size: 0.94rem; margin-bottom: 1.2em; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--accent-dark);
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }

.cards-grid-sm { grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 24px 20px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
@media (hover: hover) and (pointer: fine) {
  .mini-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
}
.mini-card .icon { margin: 0 auto 12px; color: var(--accent); width: 30px; height: 30px; }
.mini-card h4 { font-size: 0.95rem; margin: 0; }

/* ===================== SPLIT (facturación / contacto) ===================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.split-reverse { direction: rtl; }
.split-reverse > * { direction: ltr; }

.split-content h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.split-content p { font-size: 1.02rem; margin-bottom: 1.4em; }

.check-list { display: flex; flex-direction: column; gap: 14px; margin-bottom: 2em; }
.check-list.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}
.check-list .icon { color: var(--accent); flex-shrink: 0; margin-top: 2px; }

.feature-panel {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 30px;
  max-width: 420px;
  margin: 0 auto;
  border-top: 4px solid var(--accent);
}
.feature-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--border);
}
.feature-panel-header .icon { color: var(--accent); }
.feature-panel-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.92rem;
  padding: 8px 0;
  color: var(--text-light);
}
.feature-panel-row strong { color: var(--text); }
.tag-ok {
  color: var(--accent-dark) !important;
  background: rgba(0,184,169,0.12);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
}
.feature-panel-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}
.feature-panel-total span { color: var(--text-light); font-size: 0.9rem; }
.feature-panel-total strong { font-size: 1.4rem; color: var(--primary); font-family: var(--ff-heading); }

/* ===================== CHIPS (desarrollo software) ===================== */
.chip-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}
.chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  color: var(--primary);
  transition: all var(--transition);
}
.chip:hover { background: var(--primary); color: var(--white); border-color: var(--primary); }
.chip .icon { color: var(--accent); }
.chip:hover .icon { color: var(--accent); }

/* ===================== BENEFICIOS ===================== */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.benefit {
  text-align: center;
  padding: 30px 18px;
  border-radius: var(--radius);
  transition: transform var(--transition), background var(--transition);
}
.benefit:hover { background: var(--bg-alt); transform: translateY(-4px); }
.benefit .icon {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  color: var(--accent);
}
.benefit h4 { font-size: 0.98rem; margin: 0; }

/* ===================== PROCESO ===================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.process-step {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border);
  position: relative;
}
.process-number {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--ff-heading);
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 1.1rem;
}
.process-step h4 { font-size: 1.02rem; }
.process-step p { font-size: 0.9rem; margin: 0; }

/* ===================== CTA BAND ===================== */
.cta-band {
  background: linear-gradient(120deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 80px 0;
  text-align: center;
}
.cta-inner h2 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); }
.cta-inner p { color: rgba(255,255,255,0.82); font-size: 1.05rem; max-width: 520px; margin: 0 auto 2em; }

/* ===================== CONTACTO ===================== */
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 28px; }
.contact-info-list li { display: flex; align-items: center; gap: 16px; }
.contact-info-list .icon {
  width: 44px; height: 44px;
  padding: 10px;
  background: rgba(0,184,169,0.1);
  color: var(--accent-dark);
  border-radius: 12px;
}
.contact-info-list strong { display: block; font-size: 0.85rem; color: var(--text-light); font-weight: 500; }
.contact-info-list span { font-weight: 600; color: var(--primary); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--ff-body);
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg-alt);
  transition: border-color var(--transition), background var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--white);
}
.form-group textarea { resize: vertical; }
.form-note { margin: 14px 0 0; font-size: 0.88rem; text-align: center; min-height: 1.2em; }
.form-note.success { color: var(--accent-dark); font-weight: 600; }
.form-note.error { color: #C0392B; font-weight: 600; }

/* ===================== FOOTER ===================== */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.7); padding-top: 64px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand p { color: rgba(255,255,255,0.55); margin-top: 12px; font-size: 0.92rem; }
.footer-domain { display: inline-block; margin-top: 14px; font-size: 0.88rem; color: rgba(255,255,255,0.75); font-weight: 600; }
.footer-domain:hover { color: var(--accent); }
.footer-col h5 { color: var(--white); font-size: 0.95rem; margin-bottom: 18px; letter-spacing: 0.03em; text-transform: uppercase; }
.footer-col ul { display: flex; flex-direction: column; gap: 11px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.65); transition: color var(--transition); }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.9rem; line-height: 1.4; }
.footer-contact li .icon { flex-shrink: 0; margin-top: 2px; }
.footer-contact .icon { color: var(--accent); }
.footer-contact a { word-break: break-word; }
.footer-contact span { color: rgba(255,255,255,0.65); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 20px 0;
}
.footer-bottom p { margin: 0; font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 28px;
}
.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal-links a { font-size: 0.85rem; color: rgba(255,255,255,0.5); }
.footer-legal-links a:hover { color: var(--white); }

/* ===================== WHATSAPP FLOTANTE ===================== */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px; height: 58px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
  z-index: 999;
  animation: pulse 2.4s infinite;
}
.whatsapp-float .icon { width: 30px; height: 30px; color: var(--white); }
.whatsapp-float:hover { transform: scale(1.08); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,0.5), 0 6px 20px rgba(37,211,102,0.45); }
  70% { box-shadow: 0 0 0 14px rgba(37,211,102,0), 0 6px 20px rgba(37,211,102,0.45); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0), 0 6px 20px rgba(37,211,102,0.45); }
}
body.has-cookie-banner .whatsapp-float { bottom: 108px; transition: bottom var(--transition); }

/* ===================== AVISO DE COOKIES ===================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 1200;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(10, 37, 64, 0.12);
  transform: translateY(100%);
  transition: transform 300ms var(--ease-out);
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cookie-banner-inner p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-light);
  flex: 1 1 380px;
}
.cookie-banner-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner-actions .btn { white-space: nowrap; }
@media (max-width: 640px) {
  .cookie-banner-inner { padding: 16px 20px; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

/* ===================== ANIMACIONES DE ENTRADA ===================== */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-sm { grid-template-columns: repeat(3, 1fr); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; }
  .split-reverse { direction: ltr; }
  .split-visual { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 1320px) {
  .main-nav {
    position: fixed;
    top: 70px; left: 0; right: 0; bottom: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    gap: 28px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .main-nav ul { flex-direction: column; gap: 18px; width: 100%; flex-wrap: nowrap; }
  .main-nav a { font-size: 1.05rem; padding: 0; display: block; white-space: normal; }
  .nav-cta {
    flex-direction: column-reverse;
    align-items: stretch;
    width: 100%;
    border-left: none;
    padding-left: 0;
    margin-left: 0;
  }
  .nav-cta .btn { width: 100%; height: auto; padding: 14px 20px; font-size: 0.95rem; }
  .btn-icon-only { width: 100%; border-radius: 999px; gap: 10px; }
  .btn-icon-only::after { content: 'Escríbenos por WhatsApp'; font-weight: 600; font-size: 0.95rem; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .cards-grid, .cards-grid-sm { grid-template-columns: 1fr 1fr; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .check-list.two-col { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero { padding: 56px 0 40px; }
  .brand-logo-img { height: 38px; }
}

@media (max-width: 480px) {
  .cards-grid, .cards-grid-sm, .benefits-grid { grid-template-columns: 1fr; }
  .hero-actions, .hero-actions.center { flex-direction: column; }
  .hero-actions .btn, .hero-actions.center .btn { width: 100%; }
}
