/* ============================================
   ERCON SL — Industrial clean
   ============================================ */

:root {
  --primary: #F5A623;
  --primary-dark: #d68d10;
  --secondary: #1A1A1A;
  --secondary-soft: #2a2a2a;
  --white: #FFFFFF;
  --bg-alt: #F4F4F4;
  --border: #e5e5e5;
  --text: #1A1A1A;
  --text-muted: #6b6b6b;
  --text-light: #b5b5b5;

  --font-display: 'Barlow Condensed', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.10);
  --shadow-lg: 0 25px 60px rgba(0,0,0,0.18);

  --nav-h: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1200px, 100% - 3rem); margin-inline: auto; }
.container.narrow { width: min(820px, 100% - 3rem); }

/* ============ TIPOGRAFÍA ============ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.6rem); text-transform: uppercase; }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); text-transform: uppercase; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.06em; }

.kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.kicker::before { content: '— '; }

/* ============ SECCIONES ============ */
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section.dark { background: var(--secondary); color: var(--white); }
.section.dark p { color: var(--text-light); }

.section-head { max-width: 720px; margin: 0 auto 3.5rem; text-align: center; }
.section-head p { color: var(--text-muted); margin-top: 0.8rem; font-size: 1.05rem; }
.section-head.light p { color: var(--text-light); }

/* ============ NAVBAR ============ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.98);
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: 100%;
  width: min(1280px, 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav-logo img { height: 44px; width: auto; }

.nav-menu ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-menu a, .nav-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.6rem 0.9rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--secondary);
  border-radius: var(--radius-sm);
  transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover, .nav-trigger:hover { background: var(--bg-alt); color: var(--primary-dark); }

.has-dropdown { position: relative; }
.chevron {
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-left: 4px;
  margin-top: -3px;
  transition: transform 0.2s;
}
.has-dropdown:hover .chevron, .has-dropdown.open .chevron {
  transform: rotate(-135deg);
  margin-top: 3px;
}

.dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.6rem;
  min-width: 340px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.25s ease;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.dropdown a {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  transition: background 0.18s;
}
.dropdown a:hover { background: var(--bg-alt); }
.dropdown a svg { color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.dropdown a strong { display: block; font-size: 0.95rem; color: var(--secondary); margin-bottom: 0.1rem; }
.dropdown a span { display: block; font-size: 0.82rem; color: var(--text-muted); }

.nav-burger { display: none; padding: 0.5rem; color: var(--secondary); }

/* ============ MOTION BUTTON ============ */
.motion-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  width: auto;
  min-width: 200px;
  height: 56px;
  background: var(--white);
  border: 2px solid var(--secondary);
  border-radius: 999px;
  outline: none;
  overflow: hidden;
  font-family: var(--font-body);
}
.motion-btn.primary { border-color: var(--secondary); background: var(--white); }
.motion-btn.primary .motion-circle { background: var(--primary); }
.motion-circle {
  display: block;
  height: 44px;
  width: 44px;
  background: var(--secondary);
  border-radius: 999px;
  transition: width 0.5s ease;
}
.motion-btn:hover .motion-circle { width: 100%; }
.motion-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  transition: transform 0.5s ease;
  color: var(--white);
  display: inline-flex;
}
.motion-btn:hover .motion-icon { transform: translateY(-50%) translateX(6px); }
.motion-icon svg { width: 22px; height: 22px; }
.motion-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding-left: 28px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: -0.01em;
  color: var(--secondary);
  white-space: nowrap;
  transition: color 0.5s ease;
}
.motion-btn:hover .motion-text { color: var(--white); }
.motion-btn.primary .motion-text { color: var(--secondary); }
.motion-btn.primary:hover .motion-text { color: var(--secondary); }
.motion-btn.primary .motion-icon { color: var(--secondary); }

/* Variante navbar: más compacta */
.nav-cta { min-width: 170px; height: 48px; }
.nav-cta .motion-circle { height: 38px; width: 38px; }
.nav-cta .motion-icon { left: 12px; }
.nav-cta .motion-text { padding-left: 22px; font-size: 0.92rem; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}
.hero-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  animation: heroZoom 12s ease-out infinite alternate;
  animation-play-state: paused;
}
.hero-slide.active {
  opacity: 1;
  animation-play-state: running;
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.10); } }

.hero-dots {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.6rem;
}
.hero-dot {
  width: 32px;
  height: 3px;
  background: rgba(255,255,255,0.35);
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s, width 0.3s;
  padding: 0;
  border: 0;
}
.hero-dot:hover { background: rgba(255,255,255,0.7); }
.hero-dot.active { background: var(--primary); width: 48px; }
@media (max-width: 600px) {
  .hero-dots { bottom: 3rem; gap: 0.4rem; }
  .hero-dot { width: 24px; }
  .hero-dot.active { width: 36px; }
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(13,13,13,0.92) 0%, rgba(13,13,13,0.78) 60%, rgba(245,166,35,0.22) 100%);
  z-index: 2;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  color: var(--white);
  max-width: 820px;
}
.hero-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--secondary);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.6rem;
}
.hero h1 { margin-bottom: 1.4rem; }
.hero p {
  font-size: 1.15rem;
  margin-bottom: 2.4rem;
  color: rgba(255,255,255,0.85);
  max-width: 620px;
}
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 1.5rem;
  height: 56px;
  border: 2px solid rgba(255,255,255,0.4);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s;
}
.btn-ghost:hover { background: var(--white); color: var(--secondary); border-color: var(--white); }
.btn-ghost svg { width: 18px; height: 18px; }

.hero-scroll {
  position: absolute;
  bottom: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: var(--white);
  opacity: 0.5;
  animation: bounce 2.2s infinite;
}
@keyframes bounce { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -10px); } }
.hero-scroll svg { width: 32px; height: 32px; }

/* ============ GLOW CARDS ============ */
.glow-card {
  position: relative;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
  --x: 0; --y: 0;
}
.glow-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: var(--radius);
  background: radial-gradient(
    240px 240px at calc(var(--x) * 1px) calc(var(--y) * 1px),
    rgba(245, 166, 35, 0.6),
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 1;
}
.glow-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: calc(var(--radius) - 2px);
  background: inherit;
  background-color: inherit;
  z-index: 2;
  pointer-events: none;
  /* máscara para que solo aparezca el borde */
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: xor;
  display: none;
}
.glow-card:hover::before { opacity: 1; }
.glow-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.glow-card > * { position: relative; z-index: 3; }

/* ============ SERVICES GRID ============ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1.5rem;
}
.glow-card-inner { display: block; }
.glow-card-inner > img,
.card-img-wrap img:first-child {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.glow-card:hover .glow-card-inner > img,
.glow-card:hover .card-img-wrap img:first-child { transform: scale(1.05); }

.card-img-wrap {
  position: relative;
  overflow: hidden;
}
.card-watermark {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 80px;
  height: auto !important;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.6));
  background: rgba(255,255,255,0.92);
  padding: 4px 8px;
  border-radius: 6px;
  pointer-events: none;
  transition: none !important;
  transform: none !important;
}
.glow-card:hover .card-watermark { transform: none !important; }
.card-body { padding: 1.8rem; }
.card-icon {
  width: 44px; height: 44px;
  padding: 10px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.card-body h3 { margin-bottom: 0.5rem; }
.card-body p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ CONTENEDORES GRID ============ */
.containers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}
.cont-card {
  padding: 2rem 1.5rem 1.4rem;
  text-align: center;
  background: var(--white);
  cursor: pointer;
  font-family: inherit;
  color: inherit;
}
.cont-card:hover { border-color: var(--primary); }
.cont-size {
  font-family: var(--font-display);
  font-size: 4.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--primary);
  margin-bottom: 0.6rem;
}
.cont-size span {
  font-size: 1.4rem;
  color: var(--text-muted);
  margin-left: 0.2rem;
  font-weight: 600;
}
.cont-card h3 { margin-bottom: 0.5rem; }
.cont-card p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.2rem; }
.cont-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s, gap 0.2s;
}
.cont-cta svg { width: 16px; height: 16px; }
.cont-card:hover .cont-cta { color: var(--primary-dark); gap: 0.7rem; }

.cont-note {
  margin-top: 2.5rem;
  padding: 1rem 1.3rem;
  background: rgba(245, 166, 35, 0.08);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--text);
}
.cont-note svg { color: var(--primary); flex-shrink: 0; }

/* ============ SERVICE CARDS (link) ============ */
.service-card { cursor: pointer; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: color 0.2s, gap 0.2s;
}
.card-link svg { width: 14px; height: 14px; }
.service-card:hover .card-link { color: var(--primary-dark); gap: 0.7rem; }

/* ============ WHY GRID ============ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem 2rem;
}
.why-item { text-align: center; }
.why-item svg {
  width: 56px; height: 56px;
  padding: 14px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 16px;
  margin: 0 auto 1.2rem;
}
.why-item h3 { margin-bottom: 0.5rem; color: var(--white); }
.why-item p { color: var(--text-light); font-size: 0.95rem; }

/* ============ STEPS ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 2rem 1.5rem;
  background: var(--bg-alt);
  border-radius: var(--radius);
  text-align: left;
}
.step-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
  line-height: 1;
  margin-bottom: 0.8rem;
}
.step svg {
  width: 32px; height: 32px;
  color: var(--secondary);
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.4rem; }
.step p { color: var(--text-muted); font-size: 0.95rem; }

/* ============ GALERÍA ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  grid-auto-flow: dense;
  gap: 0.9rem;
}
.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--secondary);
}
.g-item:nth-child(3n) { grid-row: span 2; aspect-ratio: 4/6; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.g-item::after {
  content: attr(data-cat);
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem;
  background: linear-gradient(to top, rgba(26,26,26,0.9), transparent);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}
.g-item:hover img { transform: scale(1.08); }
.g-item:hover::after { opacity: 1; transform: translateY(0); }

/* ============ ACORDEÓN ============ */
.accordion details {
  border-bottom: 1px solid var(--border);
  padding: 0;
}
.accordion details summary {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  padding: 1.4rem 0;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: color 0.2s;
}
.accordion details summary::-webkit-details-marker { display: none; }
.accordion details summary::after {
  content: '+';
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s;
}
.accordion details[open] summary::after { content: '−'; }
.accordion details[open] summary { color: var(--primary-dark); }
.acc-body { padding: 0 0 1.6rem; color: var(--text-muted); }
.acc-body p { margin-bottom: 0.8rem; }
.acc-body p:last-child { margin-bottom: 0; }
.acc-body strong { color: var(--secondary); font-weight: 600; }
.acc-body ul { padding-left: 1.2rem; margin-bottom: 0.8rem; }
.acc-body ul li { list-style: disc; margin-bottom: 0.4rem; }

.step-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--secondary);
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  margin-right: 0.9rem;
  vertical-align: middle;
}

.acc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 1rem 0 0.6rem;
}
.acc-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.2s;
}
.acc-link:hover {
  background: var(--primary);
  color: var(--secondary);
  transform: translateY(-2px);
}
.acc-link svg { width: 16px; height: 16px; }

.acc-tip {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  background: rgba(245, 166, 35, 0.1);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  margin-top: 0.8rem !important;
  margin-bottom: 0 !important;
}
.acc-tip svg { color: var(--primary-dark); flex-shrink: 0; margin-top: 2px; width: 16px; height: 16px; }

.help-box {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.8rem;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius);
  margin-top: 2.5rem;
}
.help-box > svg {
  width: 32px; height: 32px;
  padding: 8px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 12px;
  flex-shrink: 0;
}
.help-box strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
  color: var(--white);
}
.help-box p { color: var(--text-light); font-size: 0.95rem; }
.help-box a { color: var(--primary); font-weight: 600; }
.help-box a:hover { text-decoration: underline; }

/* ============ CONTACTO ============ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 4rem;
}
.contact-info .kicker { color: var(--primary); }
.contact-info h2 { color: var(--white); margin-bottom: 0.8rem; }
.contact-info > p { color: var(--text-light); margin-bottom: 2rem; max-width: 480px; }

.service-pitch {
  margin-bottom: 2.2rem;
  max-width: 480px;
  min-height: 110px;
  transition: opacity 0.3s ease;
}
.service-pitch.fading { opacity: 0; }
.service-pitch-head {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 999px;
  margin-bottom: 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.service-pitch-head svg { width: 16px; height: 16px; }
.service-pitch-text {
  color: var(--text-light);
  line-height: 1.65;
  font-size: 1rem;
}
.service-pitch-text strong { color: var(--white); font-weight: 600; }
.contact-list { display: flex; flex-direction: column; gap: 1.4rem; }
.contact-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-list svg {
  width: 22px; height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 4px;
}
.contact-list strong {
  display: block;
  color: var(--white);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  font-weight: 600;
}
.contact-list a { color: var(--primary); }
.contact-list a:hover { text-decoration: underline; }

.contact-form {
  background: var(--white);
  padding: 2.2rem;
  display: grid;
  gap: 1.1rem;
}
.contact-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--secondary);
  letter-spacing: 0.02em;
}
.field input, .field select, .field textarea {
  font: inherit;
  padding: 0.75rem 0.9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.15);
}
.field textarea { resize: vertical; min-height: 100px; }
.field.error input, .field.error select, .field.error textarea { border-color: #d62828; }
.field .opt { color: var(--text-muted); font-weight: 400; font-size: 0.78rem; }
.form-msg { font-size: 0.9rem; min-height: 1.2em; }
.form-msg.success { color: #16a34a; }
.form-msg.error { color: #d62828; }
.form-disclaimer { font-size: 0.78rem; color: var(--text-muted); margin-top: -0.4rem; text-align: center; }

/* Checkbox de consentimiento */
.check-field {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.check-field:hover { border-color: var(--primary); }
.check-field input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.check-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--text-muted);
  border-radius: 5px;
  background: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  transition: all 0.2s;
}
.check-box svg {
  width: 14px;
  height: 14px;
  color: var(--secondary);
  stroke-width: 3;
  opacity: 0;
  transform: scale(0.5);
  transition: all 0.2s;
}
.check-field input:checked ~ .check-box {
  background: var(--primary);
  border-color: var(--primary);
}
.check-field input:checked ~ .check-box svg {
  opacity: 1;
  transform: scale(1);
}
.check-field input:focus-visible ~ .check-box {
  box-shadow: 0 0 0 3px rgba(245,166,35,0.3);
}
.check-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}
.check-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--primary-dark);
  text-decoration: underline;
  cursor: pointer;
}
.check-link:hover { color: var(--secondary); }
.check-field.error {
  border-color: #d62828;
  background: rgba(214, 40, 40, 0.05);
}
.check-field.error .check-box { border-color: #d62828; }

/* Radio pills */
.radio-group { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.radio-pill { cursor: pointer; }
.radio-pill input { position: absolute; opacity: 0; pointer-events: none; }
.radio-pill span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  background: var(--white);
  color: var(--text);
  transition: all 0.2s;
}
.radio-pill:hover span { border-color: var(--primary); }
.radio-pill input:checked + span {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
  font-weight: 600;
}

/* Campos condicionales */
.cond { display: none; }
.cond.show { display: flex; animation: fadeIn 0.25s ease; }
.form-row.cond { display: none; }
.form-row.cond.show { display: grid; animation: fadeIn 0.25s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Policy note inline en form */
.policy-note {
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  background: rgba(245, 166, 35, 0.12);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--secondary);
}
.policy-note svg {
  width: 18px; height: 18px;
  color: var(--primary-dark);
  flex-shrink: 0;
  margin-top: 2px;
}

.map-wrap {
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid var(--primary);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.2) contrast(1.05); }

/* ============ FOOTER ============ */
.footer {
  background: #0d0d0d;
  color: var(--text-light);
  padding: 4.5rem 0 2.5rem;
}
.footer-inner {
  width: min(1200px, 100% - 3rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 3rem;
}
.footer-brand img { height: 64px; margin-bottom: 1.2rem; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; margin-bottom: 1rem; }
.copyright { color: var(--text-muted); font-size: 0.82rem !important; }

.footer-image {
  position: relative;
  margin: 3rem 0 0;
  height: 260px;
  overflow: hidden;
}
.footer-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 8s ease-out;
}
.footer-image:hover img { transform: scale(1.05); }
.footer-image-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, rgba(13,13,13,0.85) 0%, rgba(13,13,13,0.45) 50%, rgba(13,13,13,0.95) 100%);
}
.footer-image-overlay span {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.2vw, 2.6rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  text-align: center;
  padding: 0 2rem;
  position: relative;
}
.footer-image-overlay span::before,
.footer-image-overlay span::after {
  content: '';
  display: inline-block;
  width: 48px;
  height: 2px;
  background: var(--primary);
  vertical-align: middle;
  margin: 0 1.3rem;
}

.footer-legal {
  width: min(1200px, 100% - 3rem);
  margin: 1.8rem auto 0;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
}
.footer-legal nav a, .footer-legal nav .legal-btn {
  color: var(--text-light);
  transition: color 0.2s;
  position: relative;
  font: inherit;
  font-size: inherit;
  padding: 0;
  cursor: pointer;
  background: none;
  border: 0;
}
.footer-legal nav a:hover, .footer-legal nav .legal-btn:hover { color: var(--primary); }
.footer-legal nav a:not(:last-child)::after,
.footer-legal nav .legal-btn:not(:last-child)::after {
  content: '·';
  position: absolute;
  right: -0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

/* ============ CHATBOT ============ */
.chatbot-toggle {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: var(--secondary);
  color: var(--white);
  border: 0;
  cursor: pointer;
  z-index: 95;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}
.chatbot-toggle:hover { transform: scale(1.06); background: var(--primary); color: var(--secondary); }
.chatbot-toggle svg { width: 26px; height: 26px; }
.chatbot-icon, .chatbot-icon-close {
  position: absolute;
  display: inline-flex;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.chatbot-icon-close { opacity: 0; transform: rotate(-90deg); }
.chatbot-toggle.open .chatbot-icon { opacity: 0; transform: rotate(90deg); }
.chatbot-toggle.open .chatbot-icon-close { opacity: 1; transform: rotate(0); }
.chatbot-toggle.open { background: var(--primary); color: var(--secondary); }
.chatbot-pulse {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--primary);
  opacity: 0.4;
  animation: chatPulse 2.5s ease-out infinite;
  pointer-events: none;
}
.chatbot-toggle.open .chatbot-pulse { display: none; }
@keyframes chatPulse {
  0% { transform: scale(1); opacity: 0.4; }
  100% { transform: scale(1.5); opacity: 0; }
}

.chatbot-panel {
  position: fixed;
  bottom: 6rem;
  right: 1.5rem;
  width: 380px;
  max-width: calc(100vw - 3rem);
  height: 560px;
  max-height: calc(100vh - 8rem);
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  z-index: 94;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.3s;
}
.chatbot-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.25s ease, transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}

.chatbot-head {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  background: var(--secondary);
  color: var(--white);
  flex-shrink: 0;
}
.chatbot-avatar {
  width: 40px; height: 40px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chatbot-avatar svg { width: 22px; height: 22px; }
.chatbot-title { flex: 1; min-width: 0; line-height: 1.3; }
.chatbot-title strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.chatbot-title span {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.7);
}
.chatbot-status-dot {
  width: 8px; height: 8px;
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 0 rgba(34,197,94,0.7);
  animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.7); }
  70% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); }
}
.chatbot-close {
  width: 32px; height: 32px;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.chatbot-close:hover { background: rgba(255,255,255,0.2); }
.chatbot-close svg { width: 16px; height: 16px; }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--bg-alt);
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 6px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 3px; }

.chatbot-msg {
  max-width: 85%;
  padding: 0.7rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.5;
  word-wrap: break-word;
  animation: msgIn 0.3s ease;
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.chatbot-msg.bot {
  background: var(--white);
  color: var(--text);
  border-bottom-left-radius: 4px;
  align-self: flex-start;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.chatbot-msg.user {
  background: var(--primary);
  color: var(--secondary);
  border-bottom-right-radius: 4px;
  align-self: flex-end;
  font-weight: 500;
}
.chatbot-msg.error {
  background: rgba(214,40,40,0.1);
  border: 1px solid rgba(214,40,40,0.3);
  color: #b91c1c;
  align-self: flex-start;
  font-size: 0.85rem;
}
.chatbot-msg p { margin: 0; }
.chatbot-msg p + p { margin-top: 0.5rem; }
.chatbot-msg a { color: var(--primary-dark); text-decoration: underline; }

.chatbot-typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 0.8rem 1rem;
  background: var(--white);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.chatbot-typing span {
  width: 7px; height: 7px;
  background: var(--text-muted);
  border-radius: 999px;
  animation: dotJump 1.2s infinite;
}
.chatbot-typing span:nth-child(2) { animation-delay: 0.2s; }
.chatbot-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotJump {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chatbot-form-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.2rem;
  background: var(--primary);
  color: var(--secondary);
  border: 0;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  margin-top: 0.4rem;
  box-shadow: 0 4px 12px rgba(245,166,35,0.3);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  animation: ctaIn 0.4s ease;
}
@keyframes ctaIn {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.chatbot-form-cta:hover {
  background: var(--secondary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.2);
}
.chatbot-form-cta svg { width: 18px; height: 18px; }

.chat-toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translate(-50%, 120%);
  z-index: 200;
  background: var(--secondary);
  color: var(--white);
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.92rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.chat-toast.show { opacity: 1; transform: translate(-50%, 0); }
.chat-toast svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; }

.chatbot-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}
.chatbot-chip {
  padding: 0.5rem 0.85rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--secondary);
  cursor: pointer;
  transition: all 0.2s;
}
.chatbot-chip:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--secondary);
  transform: translateY(-1px);
}

.chatbot-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1rem 0.4rem;
  background: var(--white);
  border-top: 1px solid var(--border);
}
.chatbot-form input {
  flex: 1;
  padding: 0.7rem 1rem;
  font: inherit;
  font-size: 0.92rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--text);
  transition: border-color 0.2s, background 0.2s;
}
.chatbot-form input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
}
.chatbot-form button {
  width: 42px; height: 42px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s;
  flex-shrink: 0;
}
.chatbot-form button:hover { transform: scale(1.05); background: var(--primary-dark); color: var(--white); }
.chatbot-form button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.chatbot-form button svg { width: 18px; height: 18px; }
.chatbot-disclaimer {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0 1rem 0.8rem;
  background: var(--white);
  margin: 0;
}

@media (max-width: 600px) {
  .chatbot-toggle { width: 54px; height: 54px; bottom: 1rem; right: 1rem; }
  .chatbot-toggle svg { width: 22px; height: 22px; }
  .chatbot-panel {
    bottom: 0;
    right: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform: translateY(100%);
    transform-origin: bottom;
  }
}

/* ============ COOKIE BANNER ============ */
.cookie-banner {
  position: fixed;
  bottom: 1.2rem;
  left: 1.2rem;
  right: 1.2rem;
  z-index: 150;
  max-width: 980px;
  margin-inline: auto;
  background: var(--secondary);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateY(120%);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0.4s;
}
.cookie-banner.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 0s;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  padding: 1.2rem 1.5rem;
}
.cookie-icon {
  width: 48px;
  height: 48px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cookie-icon svg { width: 24px; height: 24px; }
.cookie-text { flex: 1; min-width: 0; }
.cookie-text strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.cookie-text p {
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.5;
}
.cookie-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}
.cookie-link:hover { color: var(--white); }

.cookie-actions {
  display: flex;
  gap: 0.6rem;
  flex-shrink: 0;
}
.cookie-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.2s;
  border: 1.5px solid transparent;
  white-space: nowrap;
}
.cookie-btn.deny {
  background: transparent;
  color: var(--text-light);
  border-color: rgba(255,255,255,0.2);
}
.cookie-btn.deny:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}
.cookie-btn.accept {
  background: var(--primary);
  color: var(--secondary);
}
.cookie-btn.accept:hover {
  background: var(--white);
  transform: translateY(-1px);
}

@media (max-width: 720px) {
  .cookie-banner-inner {
    flex-wrap: wrap;
    padding: 1.1rem 1.2rem;
    gap: 1rem;
  }
  .cookie-icon { width: 40px; height: 40px; }
  .cookie-actions {
    width: 100%;
    flex-direction: column-reverse;
  }
  .cookie-btn { width: 100%; padding: 0.8rem; }
}

/* ============ LEGAL MODAL ============ */
.legal-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.legal-modal.open {
  display: flex;
  opacity: 1;
}
.legal-modal-panel {
  background: var(--white);
  border-radius: var(--radius);
  max-width: 760px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.legal-modal.open .legal-modal-panel { transform: translateY(0); }
.legal-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.8rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.legal-modal-head h2 {
  font-size: 1.8rem;
  margin: 0;
  text-transform: uppercase;
}
.legal-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--secondary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.legal-modal-close:hover {
  background: var(--secondary);
  color: var(--white);
  transform: rotate(90deg);
}
.legal-modal-body {
  padding: 1.8rem;
  overflow-y: auto;
  font-size: 0.93rem;
  line-height: 1.7;
  color: var(--text);
}
.legal-modal-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  text-transform: uppercase;
  margin-top: 1.6rem;
  margin-bottom: 0.6rem;
  color: var(--secondary);
  letter-spacing: 0.02em;
}
.legal-modal-body h3:first-child { margin-top: 0; }
.legal-modal-body p { margin-bottom: 0.9rem; }
.legal-modal-body ul {
  margin: 0 0 1rem 0;
  padding-left: 1.4rem;
}
.legal-modal-body li {
  list-style: disc;
  margin-bottom: 0.4rem;
}
.legal-modal-body a {
  color: var(--primary-dark);
  text-decoration: underline;
}
.legal-modal-body a:hover { color: var(--secondary); }
.legal-modal-body strong { color: var(--secondary); font-weight: 600; }

/* Scrollbar bonita en el modal */
.legal-modal-body::-webkit-scrollbar { width: 8px; }
.legal-modal-body::-webkit-scrollbar-track { background: var(--bg-alt); }
.legal-modal-body::-webkit-scrollbar-thumb { background: var(--text-light); border-radius: 4px; }
.legal-modal-body::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@media (max-width: 600px) {
  .legal-modal { padding: 0.8rem; }
  .legal-modal-head { padding: 1.1rem 1.3rem; }
  .legal-modal-head h2 { font-size: 1.4rem; }
  .legal-modal-body { padding: 1.3rem; }
}
.footer-legal .made-in {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.footer-cols h4 {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.footer-cols ul { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-cols a { font-size: 0.9rem; transition: color 0.2s; }
.footer-cols a:hover { color: var(--primary); }
.footer-cols p { font-size: 0.9rem; line-height: 1.7; }

/* ============ FLOATING CALL ============ */
.floating-call {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 999px;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md), 0 0 0 0 rgba(245,166,35,0.5);
  z-index: 90;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(245,166,35,0.55); }
  70% { box-shadow: var(--shadow-md), 0 0 0 16px rgba(245,166,35,0); }
  100% { box-shadow: var(--shadow-md), 0 0 0 0 rgba(245,166,35,0); }
}
.floating-call svg { width: 24px; height: 24px; }

/* ============ LIGHTBOX ============ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 2rem;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}
.lb-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: var(--white);
  color: var(--secondary);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-caption {
  position: absolute;
  bottom: 2rem;
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ============ SHEET MÓVIL ============ */
.sheet {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s;
}
.sheet.open { opacity: 1; visibility: visible; }
.sheet-panel {
  position: absolute;
  top: 0; right: 0;
  width: min(360px, 85vw);
  height: 100vh;
  background: var(--white);
  padding: 1.5rem;
  transform: translateX(100%);
  transition: transform 0.35s ease;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.sheet.open .sheet-panel { transform: translateX(0); }
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.8rem;
}
.sheet-head img { height: 40px; }
.sheet-close { padding: 0.5rem; }
.sheet-list { display: flex; flex-direction: column; gap: 0.4rem; }
.sheet-list > li > a, .sheet-list summary {
  display: block;
  padding: 0.85rem 0;
  font-weight: 600;
  font-size: 1.1rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  list-style: none;
}
.sheet-list summary::-webkit-details-marker { display: none; }
.sheet-list summary::after {
  content: '+';
  float: right;
  color: var(--primary);
  font-size: 1.3rem;
}
.sheet-list details[open] summary::after { content: '−'; }
.sheet-list details a {
  display: block;
  padding: 0.6rem 0 0.6rem 1rem;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.sheet-call {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  background: var(--primary);
  color: var(--secondary);
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.05rem;
}

/* ============ REVEAL ON SCROLL ============ */
.reveal, .glow-card, .step, .why-item, .g-item {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}
.reveal.in, .glow-card.in, .step.in, .why-item.in, .g-item.in {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* ============ RESPONSIVE ============ */

/* Tablet y mobile grande */
@media (max-width: 980px) {
  .nav-menu, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { gap: 1rem; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }

  /* Botón de llamada apilado encima del chatbot */
  .floating-call {
    display: flex;
    bottom: 5.5rem;
    right: 1.5rem;
  }
}

/* Mobile (≤600px) */
@media (max-width: 600px) {
  :root { --nav-h: 64px; }

  /* Contenedores */
  .container { width: 100%; padding-inline: 1.2rem; }
  .container.narrow { width: 100%; padding-inline: 1.2rem; }

  /* Tipografía */
  h2 { font-size: 1.9rem; }
  .section { padding: 3.5rem 0; }
  .section-head { margin-bottom: 2.5rem; }
  .kicker { font-size: 0.7rem; }

  /* Navbar */
  .nav-logo img { height: 38px; }

  /* Hero */
  .hero { min-height: 100vh; min-height: 100svh; padding-top: var(--nav-h); }
  .hero-content { padding-bottom: 4rem; }
  .hero-eyebrow {
    font-size: 0.68rem;
    padding: 0.32rem 0.85rem;
    margin-bottom: 1.1rem;
    letter-spacing: 0.14em;
  }
  .hero h1 { font-size: 2.1rem; line-height: 1.15; margin-bottom: 1rem; }
  .hero p { font-size: 0.96rem; margin-bottom: 1.6rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; gap: 0.7rem; }
  .motion-btn, .btn-ghost { width: 100%; justify-content: center; }
  .hero-scroll { display: none; }

  /* Service cards */
  .services-grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .glow-card-inner > img,
  .card-img-wrap img:first-child { height: 200px; }
  .card-body { padding: 1.4rem; }
  .card-icon { width: 40px; height: 40px; padding: 9px; }
  .card-watermark { width: 64px; padding: 3px 6px; bottom: 8px; right: 8px; }

  /* Contenedores grid: 2 col en móvil */
  .containers-grid { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }
  .cont-card { padding: 1.3rem 0.7rem 1.1rem; }
  .cont-size { font-size: 3rem; }
  .cont-size span { font-size: 0.95rem; }
  .cont-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
  .cont-card p { font-size: 0.78rem; margin-bottom: 0.7rem; line-height: 1.4; }
  .cont-cta { font-size: 0.7rem; }
  .cont-cta svg { width: 13px; height: 13px; }
  .cont-note { font-size: 0.86rem; padding: 0.9rem 1rem; margin-top: 2rem; }

  /* Why grid */
  .why-grid { gap: 2rem 1.2rem; }
  .why-item svg { width: 48px; height: 48px; padding: 12px; margin-bottom: 0.9rem; }

  /* Steps */
  .steps { grid-template-columns: 1fr; gap: 0.9rem; }
  .step { padding: 1.6rem 1.3rem; }
  .step-num { font-size: 2rem; margin-bottom: 0.5rem; }

  /* Galería */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
  .g-item:nth-child(3n) { grid-row: span 1; aspect-ratio: 4/3; }

  /* Acordeón / procedimiento */
  .accordion details summary { font-size: 1.1rem; padding: 1.1rem 0; }
  .step-tag {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.2rem 0.55rem;
    margin-right: 0.5rem;
    margin-bottom: 0.2rem;
  }
  .acc-links { gap: 0.5rem; }
  .acc-link { font-size: 0.8rem; padding: 0.5rem 0.85rem; }

  /* Help box */
  .help-box {
    padding: 1.4rem;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 2rem;
  }
  .help-box > svg { width: 28px; height: 28px; }
  .help-box strong { font-size: 1.15rem; }

  /* Pitch dinámico */
  .service-pitch { min-height: auto; margin-bottom: 1.6rem; }

  /* Formulario */
  .contact-form { padding: 1.6rem; gap: 1rem; }
  .contact-form .form-row { grid-template-columns: 1fr; gap: 1rem; }
  .form-row.cond.show { grid-template-columns: 1fr; }
  .check-text { font-size: 0.83rem; }

  /* Contact info */
  .contact-info h2 { font-size: 2rem; }
  .contact-list svg { width: 20px; height: 20px; }

  /* Mapa */
  .map-wrap { height: 300px; }

  /* Modales */
  .legal-modal { padding: 0; align-items: flex-end; }
  .legal-modal-panel {
    max-height: 92vh;
    border-radius: 16px 16px 0 0;
    transform: translateY(100%);
  }
  .legal-modal.open .legal-modal-panel { transform: translateY(0); }
  .legal-modal-head { padding: 1.1rem 1.3rem; }
  .legal-modal-head h2 { font-size: 1.3rem; }
  .legal-modal-close { width: 36px; height: 36px; }
  .legal-modal-body { padding: 1.2rem 1.3rem; font-size: 0.9rem; }
  .legal-modal-body h3 { font-size: 1.1rem; margin-top: 1.3rem; }

  /* Cookie banner */
  .cookie-banner { bottom: 0.7rem; left: 0.7rem; right: 0.7rem; }
  .cookie-icon { width: 36px; height: 36px; }
  .cookie-icon svg { width: 20px; height: 20px; }
  .cookie-text strong { font-size: 1rem; }
  .cookie-text p { font-size: 0.82rem; }

  /* Footer */
  .footer { padding: 3rem 0 2rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-brand img { height: 56px; }
  .footer-image { height: 180px; margin: 2rem 0 0; }
  .footer-image-overlay span { font-size: 1.5rem; padding: 0 1.2rem; }
  .footer-image-overlay span::before,
  .footer-image-overlay span::after { width: 24px; margin: 0 0.7rem; }
  .footer-legal { flex-direction: column; align-items: flex-start; gap: 1rem; margin-top: 1.4rem; }
  .footer-legal nav { gap: 1.2rem; }

  /* Botón de llamada apilado encima del chatbot en móvil */
  .floating-call { bottom: 5rem; right: 1rem; }
}

/* Mobile pequeño (≤380px) — iPhone SE, etc. */
@media (max-width: 380px) {
  h1 { font-size: 1.9rem; }
  .hero h1 { font-size: 1.85rem; }
  .containers-grid { grid-template-columns: 1fr; }
  .cont-size { font-size: 3.4rem; }
  .cookie-banner-inner { padding: 1rem; }
}
