/*
Theme Name: Gesal 2026
Theme URI: https://gesal.cl
Author: Gesal SpA
Description: Tema institucional moderno para Gesal SpA — paleta corporativa inspirada en fichasclinicas.cl.
Version: 1.1.5
Text Domain: gesal-2026
*/

/* ============================================================
   VARIABLES — paleta corporativa fichasclinicas.cl
   ============================================================ */
:root {
  /* Marca */
  --brand:        #0d6efd;
  --brand-mid:    #0b5ed7;
  --brand-dark:   #0a4fc4;
  --brand-light:  #3d8bfd;
  --brand-pale:   #e8f0fe;
  --brand-glow:   rgba(13, 110, 253, 0.18);

  /* Fondos — escala de grises azulados (igual que fichasclinicas) */
  --bg-page:      #f4f7fc;
  --bg-white:     #ffffff;
  --bg-alt:       #eef3fb;

  /* Texto */
  --text-heading: #1a2b45;
  --text-body:    #364a61;
  --text-muted:   #6c7e93;
  --text-light:   #94a3b8;

  /* Bordes y superficies */
  --border:       #dde6f5;
  --border-light: #eef2fa;
  --card-bg:      #ffffff;

  /* Sombras */
  --shadow-sm:    0 1px 3px rgba(13, 110, 253, 0.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md:    0 4px 16px rgba(13, 110, 253, 0.10), 0 1px 4px rgba(0,0,0,.06);
  --shadow-lg:    0 8px 32px rgba(13, 110, 253, 0.12), 0 2px 8px rgba(0,0,0,.06);
  --shadow-xl:    0 20px 60px rgba(13, 110, 253, 0.12), 0 4px 16px rgba(0,0,0,.08);
  --shadow-card:  0 2px 12px rgba(13, 110, 253, 0.08);

  /* Gradientes */
  --gradient-brand:  linear-gradient(135deg, #0d6efd 0%, #0a4fc4 100%);
  --gradient-hero:   linear-gradient(150deg, #f4f7fc 0%, #eef3fb 40%, #e4edff 100%);
  --gradient-subtle: linear-gradient(135deg, #f8faff 0%, #eef3fb 100%);

  /* Radios */
  --radius-sm:    8px;
  --radius-md:    16px;
  --radius-lg:    24px;
  --radius-xl:    32px;

  /* Tipografía */
  --font-sans:    'Quicksand', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Transiciones */
  --ease-out:     cubic-bezier(.16, 1, .3, 1);
  --dur-fast:     0.15s;
  --dur-base:     0.3s;
  --dur-slow:     0.6s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ============================================================
   CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
/* Text gradient para tema claro */
.text-gradient {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

   TIPOGRAFÍA UTILITARIA
   ============================================================ */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-pale);
  border: 1px solid rgba(13, 110, 253, .2);
  border-radius: 50px;
  padding: 4px 14px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-heading);
  margin-bottom: 1rem;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 600px;
  line-height: 1.8;
}

.section-header { margin-bottom: 52px; }
.section-header.centered { text-align: center; }
.section-header.centered .section-desc { margin: 0 auto; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 700;
  line-height: 1;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  padding: 14px 28px;
  transition: all var(--dur-base) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: 0 4px 16px rgba(13, 110, 253, .35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(13, 110, 253, .45);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--brand);
}
.btn-outline:hover {
  background: var(--brand-pale);
  border-color: var(--brand-mid);
}

.btn-ghost {
  background: transparent;
  color: var(--brand);
  padding: 0;
  font-weight: 700;
}
.btn-ghost:hover { opacity: .75; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all var(--dur-base) var(--ease-out);
}

.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-heading);
  flex-shrink: 0;
}

.logo-mark {
  width: 36px;
  height: 36px;
  background: var(--gradient-brand);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 4px 12px rgba(13, 110, 253, .4);
}

/* Nav */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.main-nav a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) ease;
}

.main-nav a:hover {
  color: var(--brand);
  background: var(--brand-pale);
}

/* Header CTA */
.header-cta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--text-heading);
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease-out);
}

.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Nav móvil */
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 0 20px;
  border-top: 1px solid var(--border-light);
  margin-top: 12px;
  background: #fff;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-body);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) ease;
}

.mobile-nav a:hover {
  color: var(--brand);
  background: var(--brand-pale);
}

/* ============================================================
   HERO SECTION — claro con gradiente suave
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 140px 0 100px;
  background: var(--gradient-hero);
  overflow: hidden;
}

/* Patrón de puntos suave */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(13,110,253,.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, black 20%, transparent 80%);
}

/* Orbs de color suave */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero-orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(13,110,253,.12) 0%, transparent 70%);
  top: -100px; right: -50px;
}
.hero-orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(61,139,253,.10) 0%, transparent 70%);
  bottom: 10%; left: -80px;
}
.hero-orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(100,160,255,.08) 0%, transparent 70%);
  top: 40%; right: 20%;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 55% 1fr;
  gap: 48px;
  align-items: start;
}

.hero-content {
  max-width: 100%;
  position: relative;
  z-index: 2;

}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-pale);
  border: 1px solid rgba(13, 110, 253, .25);
  border-radius: 50px;
  padding: 5px 16px;
  margin-bottom: 28px;
}

.hero-badge::before {
  content: '';
  display: block;
  width: 6px;
  height: 6px;
  background: var(--brand);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(.65); }
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.hero-tagline {
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--brand-mid);
  margin-bottom: 24px;
}

.hero-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  line-height: 1.8;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

/* Trust bar */
.hero-image-wrap {
  align-self: stretch;
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: var(--radius-lg);
  object-fit: cover;
  object-position: right center;
}

.hero-trust {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  margin-top: 60px;
  padding-top: 36px;
  border-top: 1px solid var(--border);
}

.trust-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.trust-number {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.trust-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
}

.trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  color: var(--text-light);
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  animation: bounce-scroll 2s ease-in-out infinite;
  z-index: 2;
}

.scroll-indicator svg { width: 16px; height: 16px; }

@keyframes bounce-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: .8; }
  50% { transform: translateX(-50%) translateY(6px); opacity: .4; }
}

/* ============================================================
   SERVICES — BENTO GRID
   ============================================================ */
.services-section {
  padding: 120px 0;
  background: var(--bg-white);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bento-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: all var(--dur-base) var(--ease-out);
  position: relative;
}

.bento-card:hover {
  border-color: rgba(13, 110, 253, .3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.bento-card.featured {
  grid-column: 1 / 3;
  background: linear-gradient(135deg, var(--brand-pale) 0%, #f0f5ff 100%);
  border-color: rgba(13, 110, 253, .2);
}

/* Última card del bento ocupa 2 cols para cerrar el hueco */
.bento-card:last-child {
  grid-column: 2 / 4;
}

.bento-card.featured:hover {
  border-color: rgba(13, 110, 253, .4);
}

.bento-icon {
  width: 48px;
  height: 48px;
  background: var(--brand-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--brand);
  transition: background var(--dur-base) ease;
}

.bento-card:hover .bento-icon {
  background: rgba(13, 110, 253, .15);
}

.bento-card h3 {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.bento-card p {
  font-size: .95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================================
   PRODUCT SECTION
   ============================================================ */
.product-section {
  padding: 120px 0;
  background: var(--bg-page);
  position: relative;
  overflow: hidden;
}

.product-section::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(13,110,253,.06) 0%, transparent 70%);
  top: -150px;
  right: -150px;
  border-radius: 50%;
  pointer-events: none;
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.product-eyebrow { margin-bottom: 16px; }

.product-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-heading);
  line-height: 1.1;
  margin-bottom: 20px;
}

.product-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}

.product-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}

.product-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .95rem;
  color: var(--text-body);
  font-weight: 600;
}

.feature-check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--brand-pale);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  color: var(--brand);
}

.product-image-wrap {
  position: relative;
}

.product-image-wrap::before {
  content: '';
  position: absolute;
  inset: -16px;
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  opacity: .06;
  filter: blur(20px);
}

.product-image-wrap img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
  border: 1.5px solid var(--border-light);
}

/* ============================================================
   METHOD SECTION
   ============================================================ */
.method-section {
  padding: 120px 0;
  background: var(--bg-white);
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
}

.method-card {
  position: relative;
  background: var(--bg-page);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: all var(--dur-base) var(--ease-out);
}

.method-card:hover {
  border-color: rgba(13, 110, 253, .3);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: #fff;
}

.method-step {
  font-size: 3.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(13, 110, 253, .12);
  line-height: 1;
  margin-bottom: 24px;
  transition: color var(--dur-base) ease;
}

.method-card:hover .method-step {
  color: rgba(13, 110, 253, .22);
}

.method-card h3 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.method-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.method-card::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -9px;
  width: 16px;
  height: 1px;
  background: var(--border);
  z-index: 2;
}

.method-card:last-child::after { display: none; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section {
  padding: 120px 0;
  background: var(--bg-page);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  inset: 20px -20px -20px 20px;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  opacity: .07;
  z-index: 0;
}

.about-image-wrap img {
  border-radius: var(--radius-lg);
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border-light);
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}

.stat-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: all var(--dur-base) var(--ease-out);
}

.stat-card:hover {
  border-color: rgba(13, 110, 253, .25);
  box-shadow: var(--shadow-sm);
}

.stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--brand);
}

.stat-label {
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-top: 4px;
}

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-section {
  padding: 100px 0;
  background: var(--bg-white);
}

.cta-banner {
  background: var(--gradient-brand);
  border-radius: var(--radius-xl);
  padding: 72px 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.cta-banner .section-eyebrow {
  background: rgba(255,255,255,.2);
  border-color: rgba(255,255,255,.3);
  color: #fff;
  justify-content: center;
}

.cta-banner .section-title {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  max-width: 680px;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.cta-banner .section-desc {
  color: rgba(255,255,255,.85);
  margin: 0 auto 36px;
  position: relative;
  z-index: 1;
}

.cta-banner .cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

.cta-banner .btn-outline {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.5);
  color: #fff;
  backdrop-filter: blur(8px);
}

.cta-banner .btn-outline:hover {
  background: rgba(255,255,255,.25);
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--brand-mid);
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
}

.cta-banner .btn-primary:hover {
  background: var(--brand-pale);
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section {
  padding: 120px 0;
  background: var(--bg-page);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .95rem;
  color: var(--text-body);
  font-weight: 600;
}

.contact-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: var(--brand-pale);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
}

.contact-info-item a {
  color: var(--text-body);
  transition: color var(--dur-fast) ease;
}

.contact-info-item a:hover { color: var(--brand); }

.contact-card {
  background: var(--bg-white);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}

.contact-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.contact-card > p {
  font-size: .95rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.contact-card .btn-primary {
  width: 100%;
  justify-content: center;
}

/* ============================================================
   FOOTER

/* Formulario de contacto */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: .85rem;
  font-weight: 700;
  color: var(--text-heading);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--text-body);
  background: var(--bg-page);
  transition: border-color .2s, box-shadow .2s;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(13,110,253,.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-light);
}

.form-group input.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

.form-response {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: .9rem;
  font-weight: 600;
}

.form-response.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.form-response.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

#cf-submit:disabled {
  opacity: .65;
  cursor: not-allowed;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--text-heading);
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .site-logo {
  margin-bottom: 16px;
  color: #fff;
}

.footer-brand .logo-mark {
  box-shadow: 0 4px 12px rgba(13,110,253,.5);
}

.footer-brand p {
  font-size: .9rem;
  color: rgba(255,255,255,.55);
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  font-size: .9rem;
  color: rgba(255,255,255,.6);
  transition: color var(--dur-fast) ease;
  font-weight: 600;
}

.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .85rem;
  color: rgba(255,255,255,.4);
  font-weight: 600;
}

.footer-bottom a { color: var(--brand-light); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bento-grid { grid-template-columns: 1fr 1fr; }
  .bento-card.featured { grid-column: 1 / 3; }
  .method-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav, .header-cta .btn { display: none; }
  .menu-toggle { display: flex; }

  .hero-section { padding: 120px 0 80px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-image-wrap { order: -1; }
  .hero-trust { gap: 20px; }
  .trust-divider { display: none; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento-card.featured { grid-column: 1; }

  .product-grid,
  .about-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }

  .method-grid { grid-template-columns: 1fr 1fr; }
  .method-card::after { display: none; }

  .cta-banner { padding: 48px 32px; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 576px) {
  .method-grid { grid-template-columns: 1fr; }
  .about-stats { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* corrige grilla servicios en responsive */
.bento-grid {
  grid-template-columns: repeat(2, 1fr);
}

.bento-card.featured,
.bento-card:last-child {
  grid-column: auto;
}

@media (max-width: 768px) {
  .bento-grid {
    grid-template-columns: 1fr;
  }

  .bento-card.featured,
  .bento-card:last-child {
    grid-column: auto;
  }
}
