/* ==========================================================================
   CORELSA — Materiales Eléctricos
   ========================================================================== */
:root{
  /* Paleta corporativa: #142431 (navy) y #ce4230 (rojo) — sin verdes */
  --navy-950: #0c1822;
  --navy-900: #142431;
  --navy-800: #1c3242;
  --navy-700: #26425a;
  --navy-600: #33546e;
  --accent: #ce4230;
  --accent-light: #ff6b52;
  --white: #ffffff;
  --ink-100: #eef3f7;
  --ink-300: #b9c6d4;
  --ink-500: #7f93a6;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --container: 1240px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;

  --ease: cubic-bezier(.22,.68,.32,1);
  /* Salida suave y larga (estilo "expo out") para entradas de texto */
  --ease-out: cubic-bezier(.16,1,.3,1);
  /* Con rebote leve al final, para botones y tarjetas */
  --ease-pop: cubic-bezier(.34,1.56,.64,1);
  --dur: .6s;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--navy-900);
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width:100%; display:block; }
a{ color: inherit; text-decoration:none; }
ul{ list-style:none; margin:0; padding:0; }
button{ font-family: inherit; cursor:pointer; }
input, textarea, select{ font-family: inherit; }
h1,h2,h3,h4{ font-family: var(--font-display); margin:0; font-weight:600; letter-spacing:-0.01em; }
p{ margin:0; }

@media (prefers-reduced-motion: reduce){
  /* El carrusel de aliados (.aliados-track) queda fuera: es un logo-marquee
     puramente decorativo y debe girar igual en cualquier dispositivo/navegador,
     sin depender de la preferencia de accesibilidad del visitante. */
  *:not(.aliados-track){ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

:focus-visible{ outline: 2px solid var(--accent-light); outline-offset: 3px; border-radius: 4px; }

.container{ width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.grid-overlay{
  position: fixed; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 40%, transparent 100%);
  pointer-events: none; z-index: 0;
}
.pulse-line{
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .5; animation: pulseSlide 6s linear infinite; z-index: 1; pointer-events: none;
}
@keyframes pulseSlide{ 0%{ transform: translateX(-100%); } 100%{ transform: translateX(100%); } }

.btn{
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 26px; border-radius: 100px;
  font-weight: 600; font-size: .95rem; border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
  white-space: nowrap;
}
.btn svg{ transition: transform .3s var(--ease); }
.btn-primary{ background: var(--accent); color: var(--white); box-shadow: 0 8px 24px -8px rgba(206,66,48,.6); }
.btn-primary:hover{ background: var(--accent-light); transform: translateY(-2px); box-shadow: 0 12px 28px -8px rgba(206,66,48,.75); }
.btn-primary:hover svg{ transform: translateX(3px); }
.btn-outline{ background: transparent; color: var(--white); border-color: rgba(255,255,255,.25); }
.btn-outline:hover{ border-color: var(--white); background: rgba(255,255,255,.06); transform: translateY(-2px); }
.btn-ghost{ background: rgba(255,255,255,.06); color: var(--white); border-color: rgba(255,255,255,.12); padding: 11px 20px; }
.btn-ghost:hover{ background: rgba(255,255,255,.12); }

.site-header{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.scrolled{
  background: rgba(12,24,34,.85); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding: 12px 0; border-bottom-color: rgba(255,255,255,.08);
}
.header-inner{ display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand-logo{ height: 34px; width: auto; }
.main-nav{ display: flex; align-items: center; gap: 34px; margin-left: auto; margin-right: 34px; }
.nav-link{ position: relative; font-size: .95rem; font-weight: 500; color: var(--ink-300); padding: 6px 0; transition: color .25s var(--ease); }
.nav-link::after{ content:''; position: absolute; left:0; bottom:0; width:0; height: 2px; background: var(--accent); transition: width .3s var(--ease); }
.nav-link:hover{ color: var(--white); }
.nav-link:hover::after, .nav-link.active-link::after{ width: 100%; }
.nav-link.active-link{ color: var(--white); }
.header-cta{ flex-shrink: 0; }
.nav-toggle{ display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 10px; padding: 0; }
.nav-toggle span{ display:block; width: 18px; height: 2px; margin: 0 auto; background: var(--white); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.hero{ position: relative; min-height: 100svh; display: flex; align-items: center; padding: 140px 0 80px; overflow: hidden; z-index: 2; }
.hero-slider{ position: absolute; inset: 0; z-index: -3; }
/* Transición entre diapositivas: la que entra llega desenfocada, saturándose
   y desplazándose (Ken Burns) mientras la saliente se difumina y retrocede. */
.hero-slide{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transform: scale(1.16) translate3d(4%, 0, 0);
  filter: blur(14px) saturate(.55) brightness(.7);
  transition: opacity 1.1s var(--ease), transform 1.6s var(--ease), filter 1.1s var(--ease);
  will-change: opacity, transform, filter;
}
.hero-slide.is-active{
  opacity: 1;
  filter: blur(0) saturate(1) brightness(1);
  transition: opacity 1.1s var(--ease), filter 1.1s var(--ease);
  animation: heroKenBurns 8.5s var(--ease) forwards;
}
@keyframes heroKenBurns{
  from{ transform: scale(1.14) translate3d(2.5%, 0, 0); }
  to  { transform: scale(1) translate3d(0, 0, 0); }
}
.hero-slide-scrim{ position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12,24,34,.75) 0%, rgba(12,24,34,.88) 55%, var(--navy-900) 100%), linear-gradient(90deg, rgba(12,24,34,.55) 0%, rgba(12,24,34,.2) 55%, rgba(12,24,34,.6) 100%); }

/* NUEVO: fondo personalizado de una sola imagen para el hero (alternativa al slider) */
.hero-custom-bg{
  position: absolute; inset: 0; z-index: -3;
  background-size: cover; background-position: center;
}

.hero-bg{ position: absolute; inset: 0; z-index: -2; background: radial-gradient(ellipse 70% 55% at 78% 18%, rgba(206,66,48,.18), transparent 60%), radial-gradient(ellipse 60% 50% at 10% 90%, rgba(255,107,82,.1), transparent 60%); }
.hero-slider-controls{ position: absolute; bottom: 96px; left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: center; gap: 22px; }
.slider-arrow{ width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.18); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease); }
.slider-arrow:hover{ background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.slider-dots{ display: flex; gap: 10px; }
.slider-dot{ position: relative; overflow: hidden; width: 30px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); border: none; padding: 0; transition: background .35s var(--ease), width .35s var(--ease); }
.slider-dot.is-active{ background: rgba(255,255,255,.22); width: 52px; }
/* La barra activa se llena al ritmo del auto-avance (SLIDE_DURATION en script.js) */
.slider-dot.is-active::after{
  content: ''; position: absolute; inset: 0; border-radius: 4px;
  background: var(--accent-light);
  transform: scaleX(0); transform-origin: left;
  animation: dotProgress 6.5s linear forwards;
}
@keyframes dotProgress{ to{ transform: scaleX(1); } }

/* ==========================================================================
   ANIMACIÓN DEL CIRCUITO EN EL HERO — LOOP INFINITO (PCB energizado)
   - Solo anima stroke-dashoffset / transform / opacity: barato para la GPU.
   - pathLength="1" en los pulsos: el ciclo es perfecto sin importar el largo
     real de cada trazo (dasharray/offset trabajan en unidades normalizadas).
   - La máscara CSS atenúa el circuito sobre la zona del texto (izquierda)
     para no competir nunca con la legibilidad del titular.
   - script.js añade .anim-paused cuando el hero sale del viewport.
   ========================================================================== */
.circuit-svg{
  position: absolute; inset: 0; width: 100%; height: 100%;
  -webkit-mask-image: linear-gradient(105deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.5) 38%, #000 72%);
          mask-image: linear-gradient(105deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,.5) 38%, #000 72%);
}
/* Red eléctrica de nodos: líneas de interconexión tenues, siempre visibles */
.circuit-base path{
  stroke: rgba(190,214,235,.13); stroke-width: 1.4; fill: none;
}

/* Pulsos de energía: un guion corto (5% del trazo) viaja de nodo en nodo.
   El halo es el mismo trazo más ancho y translúcido, dibujado debajo. */
.circuit-pulses path, .circuit-halo path{
  fill: none; stroke-linecap: round;
  stroke-dasharray: .05 .95;
  animation: pulseTravel var(--pt, 7s) linear infinite;
  animation-delay: var(--pd, 0s);
}
.circuit-pulses path{ stroke-width: 2.5; }
.circuit-halo path{ stroke-width: 7; opacity: .28; }
.cpulse-o{ stroke: var(--accent-light); }
.cpulse-w{ stroke: rgba(255,255,255,.7); }
.cpulse-rev{ animation-direction: reverse; }
@keyframes pulseTravel{ to{ stroke-dashoffset: -1; } }

/* Anillos "radar" en los nodos principales: la conexión que se genera */
.node-rings circle{
  fill: none; stroke: rgba(255,107,82,.55); stroke-width: 1.5;
  transform-box: fill-box; transform-origin: center;
  animation: ringRadar 4.5s ease-out infinite;
  animation-delay: var(--rd, 0s);
}
@keyframes ringRadar{
  0%  { transform: scale(.35); opacity: 0; }
  25% { opacity: .9; }
  100%{ transform: scale(1.75); opacity: 0; }
}

/* Nodos que se "conectan" (brillan y crecen) y se "desconectan" en bucle,
   sin llegar nunca a opacidad 0 para que sigan siendo visibles. */
.circuit-nodes circle{
  fill: var(--accent-light);
  transform-box: fill-box;
  transform-origin: center;
  opacity: .4;
  animation: nodeConnect 3.6s ease-in-out infinite;
  animation-delay: var(--nd, 0s);
}
.circuit-nodes circle:nth-child(even){ fill: rgba(255,255,255,.75); }
@keyframes nodeConnect{
  0%, 100% { opacity: .35; transform: scale(.7); }
  45%      { opacity: 1;   transform: scale(1.35); }
  60%      { opacity: .9;  transform: scale(1.05); }
}

/* Pausa total (la asigna script.js cuando la sección no está en pantalla) */
.anim-paused, .anim-paused *{ animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce){
  .circuit-pulses, .circuit-halo, .node-rings{ display: none; }
}
/* Móvil: versión ligera (menos trazos animados y sin halo), sin perder el efecto */
@media (max-width: 640px){
  .circuit-svg .lg-only{ display: none; }
  .circuit-halo{ display: none; }
}

.hero-inner{ position: relative; }
.hero-eyebrow{ display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-300); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); padding: 8px 16px; border-radius: 100px; margin-bottom: 28px; }
.dot-live{ width: 8px; height: 8px; border-radius: 50%; background: var(--accent-light); box-shadow: 0 0 0 0 rgba(255,107,82,.6); animation: liveDot 2s infinite; }
@keyframes liveDot{ 0%{ box-shadow: 0 0 0 0 rgba(255,107,82,.55); } 70%{ box-shadow: 0 0 0 8px rgba(255,107,82,0); } 100%{ box-shadow: 0 0 0 0 rgba(255,107,82,0); } }
.hero-title{ font-size: clamp(2.5rem, 6vw, 4.6rem); line-height: 1.05; font-weight: 700; max-width: 16ch; margin-bottom: 26px; }
.text-accent{ color: var(--accent-light); }
.hero-sub{ font-size: 1.15rem; color: var(--ink-300); max-width: 56ch; margin-bottom: 40px; }
.hero-actions{ display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 64px; }
.hero-stats{ display: flex; flex-wrap: wrap; gap: 48px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.1); }
.stat{ display: flex; flex-direction: column; gap: 4px; }
.stat-num{ font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; color: var(--white); }
.stat-label{ font-size: .88rem; color: var(--ink-500); }

section{ position: relative; z-index: 2; padding: 120px 0; }
.eyebrow{ display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-light); margin-bottom: 16px; }
.section-head h2{ font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.15; margin-bottom: 16px; }
.section-sub{ color: var(--ink-300); font-size: 1.08rem; max-width: 60ch; }

/* ==========================================================================
   NUEVO: Sección "Por qué elegirnos" (index.php)
   ========================================================================== */
.why-us{ background: var(--navy-950); padding-top: 100px; }
.why-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; }
.why-card{ padding: 30px 24px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); text-align: left; transition: transform .35s var(--ease), border-color .35s var(--ease); }
.why-card:hover{ transform: translateY(-6px); border-color: rgba(255,107,82,.4); }
.why-icon{ width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(206,66,48,.12); color: var(--accent-light); border-radius: 14px; margin-bottom: 18px; }
.why-card h3{ font-size: 1.05rem; margin-bottom: 8px; color: var(--white); }
.why-card p{ font-size: .92rem; color: var(--ink-500); line-height: 1.55; }

.nosotros{ background: var(--navy-950); }
.nosotros-grid{ display: grid; grid-template-columns: 1fr 1fr; gap: 72px; margin-top: 56px; align-items: start; }
.lead-text{ font-size: 1.2rem; color: var(--white); margin-bottom: 20px; }
.nosotros-copy p:not(.lead-text){ color: var(--ink-300); margin-bottom: 32px; }
.badge-retie{ display: flex; align-items: center; gap: 16px; padding: 20px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-md); }
.badge-retie svg{ color: var(--accent-light); flex-shrink: 0; }
.badge-retie strong{ display:block; font-size: 1rem; margin-bottom: 2px; }
.badge-retie span{ font-size: .88rem; color: var(--ink-500); }

/* NUEVO: variante standalone (usada en el rediseño visual de nosotros.php) */
.badge-retie-standalone{ max-width: 560px; margin: 0 auto 56px; }

/* NUEVO: franja de estadísticas grandes, visual, poco texto */
.nosotros-stats{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 56px 0; text-align: center; }
.ns-stat{ padding: 28px 16px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); }
.ns-num{ display: block; font-family: var(--font-display); font-size: 2.6rem; font-weight: 700; color: var(--accent-light); margin-bottom: 6px; }
.ns-label{ font-size: .85rem; color: var(--ink-500); }

.nosotros-pillars{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nosotros-pillars-full{ grid-template-columns: repeat(4, 1fr); margin-bottom: 56px; }
.pillar{ padding: 28px 24px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); transition: transform .35s var(--ease), border-color .35s var(--ease), background .35s var(--ease); }
.pillar:hover{ transform: translateY(-6px); border-color: rgba(206,66,48,.4); background: linear-gradient(160deg, rgba(206,66,48,.08), rgba(255,255,255,.02)); }
.pillar-icon{ width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; background: rgba(206,66,48,.12); color: var(--accent-light); border-radius: 12px; margin-bottom: 18px; }
.pillar h3{ font-size: 1.05rem; margin-bottom: 8px; }
.pillar p{ font-size: .92rem; color: var(--ink-500); line-height: 1.55; }

.productos{ background: var(--navy-900); }
.section-head{ text-align: center; margin: 0 auto 64px; display:flex; flex-direction: column; align-items: center; }
.section-head .section-sub{ margin-top: 4px; }
.productos-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.prod-card{ position: relative; padding: 32px 26px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); cursor: pointer; text-align: left; width: 100%; overflow: hidden; transition: transform .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease), box-shadow .4s var(--ease); }
.prod-card::before{ content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 85% 15%, rgba(206,66,48,.16), transparent 55%); opacity: 0; transition: opacity .4s var(--ease); pointer-events: none; }
.prod-card:hover, .prod-card:focus-visible{ transform: translateY(-8px); border-color: rgba(206,66,48,.45); background: rgba(255,255,255,.05); box-shadow: 0 20px 40px -20px rgba(0,0,0,.5); }
.prod-card:hover::before{ opacity: 1; }
.prod-icon{ width: 52px; height: 52px; display: flex; align-items: center; justify-content: center; background: rgba(255,107,82,.1); color: var(--accent-light); border-radius: 14px; margin-bottom: 20px; transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.prod-icon svg{ width: 24px; height: 24px; }
.prod-card:hover .prod-icon{ background: var(--accent); color: var(--white); transform: scale(1.08) rotate(-4deg); }
.prod-card p{ font-size: .9rem; color: var(--ink-500); line-height: 1.6; margin-bottom: 18px; }
.prod-card-cta{ display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--accent-light); opacity: 0; transform: translateX(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.prod-card-cta svg{ transition: transform .3s var(--ease); }
.prod-card:hover .prod-card-cta{ opacity: 1; transform: translateX(0); }
.prod-card:hover .prod-card-cta svg{ transform: translateX(3px); }

.contacto{ background: var(--navy-950); }
.contacto-grid{ display: grid; grid-template-columns: .9fr 1.1fr; gap: 72px; align-items: start; }
.contacto-info .section-sub{ margin: 16px 0 40px; }
.contact-list{ display: flex; flex-direction: column; gap: 22px; margin-bottom: 40px; }
.contact-list li{ display: flex; align-items: center; gap: 16px; }
.contact-icon{ width: 44px; height: 44px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: var(--accent-light); border-radius: 12px; }
.contact-list strong{ display: block; font-size: .85rem; color: var(--ink-500); font-weight: 500; margin-bottom: 2px; }
.contact-list a{ display: block; font-size: 1.02rem; font-weight: 600; transition: color .25s; }
.contact-list a:hover{ color: var(--accent-light); }
/* Segundo número (línea secundaria): mismo bloque, jerarquía menor */
.contact-list a.contact-alt{ font-size: .92rem; font-weight: 500; color: var(--ink-300); margin-top: 2px; }
.contact-list .muted{ font-size: 1.02rem; font-weight: 600; color: var(--ink-100); }
.social-row{ display: flex; gap: 12px; }
.social-icon{ width: 42px; height: 42px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; transition: background .3s, transform .3s, border-color .3s; }
.social-icon:hover{ background: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.contact-form{ background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg); padding: 40px; display: flex; flex-direction: column; gap: 20px; }
.form-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form label{ display: flex; flex-direction: column; gap: 8px; font-size: .85rem; color: var(--ink-300); font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea{ background: rgba(12,24,34,.5); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-sm); padding: 13px 16px; color: var(--white); font-size: .95rem; transition: border-color .25s var(--ease), background .25s var(--ease); resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder{ color: var(--ink-500); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{ outline: none; border-color: var(--accent); background: rgba(12,24,34,.8); }
.contact-form select{ appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%237f93a6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.form-submit{ justify-content: center; margin-top: 8px; }
.form-hint{
  display: flex; align-items: center; justify-content: center; gap: 7px;
  font-size: .82rem; line-height: 1.4; text-align: center;
  color: var(--ink-500);
}
.form-hint::before{
  content: '';
  flex-shrink: 0;
  width: 7px; height: 7px; border-radius: 50%;
  background: #25D366;
  box-shadow: 0 0 0 3px rgba(37,211,102,.18);
}
.form-note{ font-size: .88rem; min-height: 1.2em; color: var(--accent-light); }

.site-footer{ position: relative; z-index: 2; background: var(--navy-950); border-top: 1px solid rgba(255,255,255,.08); overflow: hidden; }
.footer-glow{ position: absolute; top: -200px; left: 50%; transform: translateX(-50%); width: 900px; height: 400px; background: radial-gradient(ellipse, rgba(206,66,48,.16), transparent 70%); pointer-events: none; }
.footer-top{ position: relative; padding: 80px 24px 64px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-cta{ display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.footer-cta h3{ font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.2; }
.footer-inner{ position: relative; display: grid; grid-template-columns: 1.5fr 1fr 1.2fr; gap: 48px; padding: 64px 24px 48px; }
.footer-logo{ height: 30px; margin-bottom: 16px; }
.footer-brand p{ color: var(--ink-500); font-size: .92rem; max-width: 30ch; margin-bottom: 24px; }
.footer-col h4{ font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin-bottom: 18px; }
.footer-col{ display: flex; flex-direction: column; gap: 14px; }
.footer-col a{ font-size: .95rem; color: var(--ink-300); transition: color .25s, transform .25s; width: fit-content; }
.footer-col a:hover{ color: var(--accent-light); transform: translateX(3px); }
.footer-coverage{ font-size: .95rem; color: var(--ink-500); }
.footer-bottom{ position: relative; border-top: 1px solid rgba(255,255,255,.08); padding: 24px; font-size: .85rem; color: var(--ink-500); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-badge{ display: inline-flex; align-items: center; gap: 8px; color: var(--accent-light); font-weight: 600; }

.reveal-up{ opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal-up.in-view{ opacity: 1; transform: translateY(0); }

@media (max-width: 1080px){ .productos-grid{ grid-template-columns: repeat(3, 1fr); } .nosotros-grid{ gap: 48px; } .why-grid{ grid-template-columns: repeat(2, 1fr); } .nosotros-pillars-full{ grid-template-columns: repeat(2, 1fr); } .nosotros-stats{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px){
  .main-nav{ position: fixed; top: 0; right: 0; height: 100svh; width: min(320px, 80vw); background: var(--navy-950); border-left: 1px solid rgba(255,255,255,.08); flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 100px 32px 32px; transform: translateX(100%); transition: transform .4s var(--ease); margin: 0; z-index: 90; }
  .main-nav.open{ transform: translateX(0); }
  .main-nav .nav-link{ font-size: 1.1rem; padding: 12px 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-toggle{ display: flex; } .header-cta{ display: none; }
  .nosotros-grid{ grid-template-columns: 1fr; } .nosotros-pillars{ grid-template-columns: 1fr 1fr; } .productos-grid{ grid-template-columns: repeat(2, 1fr); } .contacto-grid{ grid-template-columns: 1fr; gap: 56px; }
  .footer-inner{ grid-template-columns: 1fr; gap: 32px; } .footer-cta{ flex-direction: column; align-items: flex-start; }
  .hero-slider-controls{ bottom: 70px; gap: 16px; }
}
@media (max-width: 640px){
  section{ padding: 80px 0; } .hero{ padding-top: 120px; min-height: auto; padding-bottom: 60px;} .hero-title{ font-size: clamp(2.2rem, 9vw, 3rem); } .hero-stats{ gap: 28px; } .stat-num{ font-size: 1.9rem; }
  .nosotros-pillars{ grid-template-columns: 1fr; } .nosotros-pillars-full{ grid-template-columns: 1fr; } .nosotros-stats{ grid-template-columns: 1fr 1fr; } .why-grid{ grid-template-columns: 1fr; } .productos-grid{ grid-template-columns: 1fr; } .form-row{ grid-template-columns: 1fr; } .contact-form{ padding: 28px 22px; } .btn{ padding: 13px 22px; font-size: .9rem; } .footer-top{ padding: 56px 24px 40px; }
}

/* ==========================================================================
   LIQUID GLASS RESPONSIVE Y TÍTULOS
   ========================================================================== */
.prod-card h3 {
  font-size: 1.08rem;
  margin-bottom: 10px;
  color: var(--white) !important;
}

.glass-panel,
.site-header.scrolled,
.prod-card,
.pillar,
.contact-form,
.nosotros-copy,
.badge-retie {
  background-color: rgba(255, 255, 255, 0.03) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2) !important;
}

/* ==========================================================================
   DROPDOWN MENU EN NAVEGACIÓN (CON CONTRASTE MÁXIMO)
   ========================================================================== */
.nav-item-dropdown {
  position: relative;
  display: inline-block;
}
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  width: 260px;
  padding: 10px 0;
  border-radius: var(--radius-md);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s var(--ease);
  z-index: 110;
  display: flex;
  flex-direction: column;
  background: rgba(6, 18, 30, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}
.nav-item-dropdown:hover .dropdown-menu,
.nav-item-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(10px);
}
.nav-item-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
}
.dropdown-menu a {
  padding: 10px 24px;
  color: var(--ink-300);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

/* ==========================================================================
   TARJETAS DE PRODUCTO CON IMAGEN DE FONDO
   ========================================================================== */
.prod-card-bg {
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 380px;
  padding: 30px;
  overflow: hidden;
}
.prod-card-bg::before { display: none; }
.prod-icon-float {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: rgba(6, 18, 30, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--accent-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s var(--ease);
}
.prod-icon-float svg { width: 22px; height: 22px; }
.prod-card-bg:hover .prod-icon-float {
  background: var(--accent);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}
.prod-card-content {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   PÁGINA DE PRODUCTO ROBUSTA (Hero + Contenido)
   ========================================================================== */
.product-page-hero {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  padding-bottom: 60px;
  margin-top: -140px;
  padding-top: 140px;
}
.product-page-hero .hero-scrim {
  position: absolute; inset: 0;
  z-index: 1;
  background: linear-gradient(to top, var(--navy-900) 0%, rgba(20,36,49,0.7) 40%, rgba(20,36,49,0.3) 100%);
}
/* El scrim es un hermano posicionado: sin z-index propio el wrapper quedaría
   pintado DEBAJO de él y el título desaparecería al terminar el reveal. */
.hero-content-wrapper {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  gap: 30px;
}
.product-hero-icon {
  width: 90px;
  height: 90px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--accent-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 10px;
}
.product-hero-icon svg { width: 44px; height: 44px; }
.product-hero-text {
  min-width: 0;
}
.product-hero-text h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--white);
  margin-bottom: 10px;
  line-height: 1.1;
  overflow-wrap: break-word;
  word-break: break-word;
}
.product-hero-text .lead-text {
  color: var(--ink-300);
  max-width: 700px;
}
/* Fila de botones del detalle: envuelve en pantallas angostas */
.product-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}
.product-page-details {
  margin-top: -40px;
  position: relative;
  z-index: 10;
}
.product-details-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 40px;
}
.product-description, .product-specs {
  padding: 40px;
  border-radius: var(--radius-lg);
}
.product-description h2 {
  color: var(--white);
  margin-bottom: 20px;
  font-size: 1.8rem;
}
.product-description p {
  color: var(--ink-300);
  line-height: 1.8;
  font-size: 1.05rem;
}
.product-specs h3 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.4rem;
}
.product-specs ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.product-specs li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 12px;
  color: var(--ink-100);
  font-weight: 500;
}
.product-specs li svg { color: var(--accent-light); }

/* ==========================================================================
   BOTÓN WHATSAPP INNOVADOR (Liquid Pulse + Elastic Hover)
   ========================================================================== */
.fab-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 68px;
  height: 68px;
  background: #25D366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5);
  z-index: 999;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-whatsapp svg {
  z-index: 2;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.fab-whatsapp::before,
.fab-whatsapp::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: #25D366;
  border-radius: 50%;
  z-index: 0;
  opacity: 0.6;
  animation: liquid-pulse 3s cubic-bezier(0.19, 1, 0.22, 1) infinite;
}
.fab-whatsapp::after {
  animation-delay: 1.5s;
}

@keyframes liquid-pulse {
  0% { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.fab-whatsapp:hover {
  transform: translateY(-8px) scale(1.05);
  background: #20b858;
  box-shadow: 0 15px 32px rgba(37, 211, 102, 0.6);
}
.fab-whatsapp:hover svg {
  transform: scale(1.15) rotate(12deg);
}

/* Responsive Final */
@media (max-width: 900px) {
  .product-details-grid { grid-template-columns: 1fr; }
  .hero-content-wrapper { flex-direction: column; align-items: flex-start; }
  .product-page-hero { min-height: 50vh; }

  .dropdown-menu { position: static; transform: none; width: 100%; box-shadow: none !important; border: none !important; background: transparent !important; padding-left: 15px; display: none; }
  .nav-item-dropdown.open .dropdown-menu { display: flex; }

  .fab-whatsapp { bottom: 20px; right: 20px; width: 56px; height: 56px; }
}

/* ==========================================================================
   FIX: separar los controles del slider del hero para que no tapen textos
   ========================================================================== */
.hero{ padding-bottom: 170px; }
.hero-slider-controls{ bottom: 40px; }
@media (max-width: 900px){
  .hero-slider-controls{ bottom: 24px; }
}

/* ==========================================================================
   ALIADOS ESTRATÉGICOS — CARRUSEL
   ========================================================================== */
.aliados{ background: var(--navy-950); overflow: hidden; }
.aliados-carousel{
  position: relative;
  width: 100%;
  overflow: hidden;
  margin-top: 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.aliados-track{
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  animation: aliadosScroll 34s linear infinite;
}
.aliados-carousel:hover .aliados-track{ animation-play-state: paused; }
.aliado-logo{
  flex-shrink: 0;
  height: 96px;
  width: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.aliado-logo:hover{
  transform: translateY(-4px);
  border-color: rgba(255,107,82,.4);
  box-shadow: 0 12px 24px -10px rgba(0,0,0,.35);
}
.aliado-logo img{
  height: 100%;
  width: 100%;
  object-fit: contain;
}
@keyframes aliadosScroll{
  0%{ transform: translateX(0); }
  100%{ transform: translateX(-50%); }
}
.aliados-empty{
  margin-top: 56px; text-align: center; color: var(--ink-500); font-size: .95rem;
  padding: 32px; border: 1px dashed rgba(255,255,255,.12); border-radius: var(--radius-md);
}
@media (max-width: 640px){
  .aliado-logo{ height: 68px; width: 128px; padding: 12px 16px; }
  .aliados-track{ gap: 16px; }
}

/* ==========================================================================
   NUEVAS SECCIONES DE INICIO
   ========================================================================== */

/* --- Proceso / Cómo trabajamos --- */
.proceso{ background: var(--navy-950); }
.proceso-grid{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 56px; counter-reset: paso;
}
.proceso-card{ position: relative; padding: 34px 26px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-md); }
.proceso-num{
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,107,82,.5); line-height: 1; margin-bottom: 18px; display: block;
}
.proceso-card h3{ color: var(--white); font-size: 1.05rem; margin-bottom: 8px; }
.proceso-card p{ color: var(--ink-500); font-size: .9rem; line-height: 1.55; }
.proceso-arrow{ position: absolute; top: 34px; right: -30px; color: rgba(255,255,255,.15); z-index: 2; }
@media (max-width: 1080px){ .proceso-arrow{ display: none; } }

/* --- CTA banda final de inicio: copy a la izquierda + panel de acción --- */
.cta-band{
  background: linear-gradient(120deg, rgba(206,66,48,.18), rgba(255,107,82,.08) 45%, transparent 70%), var(--navy-900);
  border-top: 1px solid rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.cta-band-inner{
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
}
.cta-band-badge{
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-100);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 16px; border-radius: 100px; margin-bottom: 22px;
}
.cta-band h2{ font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.12; max-width: 18ch; }
.cta-band-copy > p{ color: var(--ink-300); margin-top: 16px; max-width: 48ch; }
.cta-band-points{
  display: flex; flex-wrap: wrap; gap: 12px 26px; margin-top: 28px;
}
.cta-band-points li{
  display: inline-flex; align-items: center; gap: 9px;
  font-size: .92rem; font-weight: 500; color: var(--ink-100);
}
.cta-band-points svg{ color: var(--accent-light); flex-shrink: 0; }

.cta-band-panel{
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  padding: 34px;
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 28px 60px -30px rgba(0,0,0,.7);
}
.cta-band-panel::before{
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(150deg, rgba(255,107,82,.5), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px;
}
.cta-panel-label{
  display: block; font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-light); margin-bottom: 10px;
}
.cta-panel-text{ color: var(--ink-300); font-size: .95rem; margin-bottom: 24px; }
.cta-band-actions{ display: flex; flex-direction: column; gap: 12px; }
.cta-band-actions .btn{ width: 100%; justify-content: center; }
.cta-panel-foot{
  margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1);
  font-size: .9rem; color: var(--ink-500); text-align: center;
}
.cta-panel-foot a{ color: var(--white); font-weight: 700; transition: color .25s var(--ease); }
.cta-panel-foot a:hover{ color: var(--accent-light); }

@media (max-width: 1080px){ .proceso-grid{ grid-template-columns: repeat(2, 1fr); } .cta-band-inner{ grid-template-columns: 1fr; gap: 40px; } .cta-band h2{ max-width: none; } }
@media (max-width: 640px){ .proceso-grid{ grid-template-columns: 1fr; } .cta-band-panel{ padding: 26px 22px; } .cta-band-points{ flex-direction: column; gap: 10px; } }

/* ==========================================================================
   FONDO PERSONALIZADO SUTIL POR LÍNEA DE PRODUCTO (detalle)
   ========================================================================== */
main.has-product-bg{
  position: relative;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}
main.has-product-bg::before{
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background:
    linear-gradient(180deg, rgba(12,24,34,.93) 0%, rgba(20,36,49,.9) 45%, var(--navy-900) 100%),
    linear-gradient(100deg, rgba(12,24,34,.75) 0%, rgba(20,36,49,.35) 60%);
  pointer-events: none;
}
main.has-product-bg > *{ position: relative; z-index: 1; }
@media (max-width: 900px){
  main.has-product-bg{ background-attachment: scroll; }
}

/* ==========================================================================
   CARRUSEL "OTRAS LÍNEAS" (pie del detalle de producto)

   El track es el propio contenedor de scroll con scroll-snap: hereda el
   momentum táctil y el teclado del navegador. El padding lateral se calcula
   para alinear la primera tarjeta con .container aunque el track sea full-bleed.
   ========================================================================== */
.lineas-rel{
  --card-w: min(340px, 76vw);
  --card-gap: 22px;
  --bleed: max(24px, calc((100% - var(--container)) / 2 + 24px));
  margin-top: 110px;
  padding: 72px 0 80px;
  position: relative;
  border-top: 1px solid rgba(255,255,255,.07);
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(206,66,48,.12), transparent 62%),
    linear-gradient(180deg, rgba(12,24,34,.55), rgba(12,24,34,.85));
}
/* Filamento de acento sobre el borde superior */
.lineas-rel::before{
  content: '';
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(520px, 70%); height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: .85;
}

.lineas-rel-head{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 16px;
}
.lineas-rel-intro h2{
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--white);
  line-height: 1.15;
  margin: 0;
}
.lineas-rel-nav{ display: flex; gap: 12px; flex-shrink: 0; }
.lineas-arrow{
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), border-color .3s var(--ease),
              transform .3s var(--ease-pop), opacity .3s var(--ease);
}
.lineas-arrow svg{ width: 20px; height: 20px; }
.lineas-arrow:hover:not(:disabled){
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.08);
}
.lineas-arrow:active:not(:disabled){ transform: scale(.96); }
.lineas-arrow:disabled{ opacity: .3; cursor: default; }

/* --- Track: contenedor de scroll full-bleed --- */
.lineas-track{
  display: flex;
  gap: var(--card-gap);
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--bleed);
  /* El padding vertical deja aire para el lift y la sombra del hover:
     el track es contenedor de scroll y recorta en ambos ejes. */
  padding: 24px var(--bleed) 36px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  overscroll-behavior-x: contain;
  cursor: grab;
}
.lineas-track::-webkit-scrollbar{ display: none; }
.lineas-track:focus-visible{ outline-offset: -4px; }
/* is-grabbing solo se aplica tras superar el umbral de arrastre, nunca en un
   clic simple: apagar el snap antes de tiempo rompería la navegación. */
.lineas-track.is-grabbing{ cursor: grabbing; scroll-snap-type: none; }

/* --- Tarjeta --- */
.linea-card{
  position: relative;
  flex: 0 0 var(--card-w);
  height: 420px;
  scroll-snap-align: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,.09);
  background: var(--navy-800);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.9);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease),
              border-color .5s var(--ease);
}
.linea-card-media{
  position: absolute; inset: 0; z-index: -2;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform .9s var(--ease);
}
/* Scrim: opaco abajo para el texto, transparente arriba para la foto */
.linea-card::after{
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(12,24,34,.15) 0%,
    rgba(12,24,34,.62) 46%,
    rgba(12,24,34,.95) 100%
  );
  transition: opacity .5s var(--ease);
}
.linea-card-num{
  position: absolute; top: 20px; left: 22px;
  font-family: var(--font-display);
  font-size: .8rem; font-weight: 700; letter-spacing: .14em;
  color: rgba(255,255,255,.55);
}
.linea-card-icon{
  position: absolute; top: 16px; right: 18px;
  width: 44px; height: 44px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,24,34,.55);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--accent-light);
  transition: background .4s var(--ease), color .4s var(--ease),
              transform .4s var(--ease-pop);
}
.linea-card-icon svg{ width: 21px; height: 21px; }
.linea-card-body{
  display: block;
  padding: 24px 24px 26px;
}
.linea-card-tag{
  display: block;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 9px;
}
.linea-card-title{
  display: block;
  font-family: var(--font-display);
  font-size: 1.3rem; font-weight: 600; line-height: 1.2;
  color: var(--white);
  margin-bottom: 10px;
}
.linea-card-text{
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .92rem; line-height: 1.55;
  color: var(--ink-300);
  /* Colapsado por defecto: se despliega al hacer hover en la tarjeta */
  max-height: 0;
  opacity: 0;
  transition: max-height .5s var(--ease), opacity .4s var(--ease),
              margin-bottom .5s var(--ease);
}
.linea-card-cta{
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  font-size: .88rem; font-weight: 600;
  color: var(--white);
}
.linea-card-cta svg{
  width: 16px; height: 16px;
  transition: transform .35s var(--ease);
}
/* Subrayado que crece desde la izquierda */
.linea-card-cta::before{
  content: '';
  position: absolute; left: 24px; bottom: 18px;
  width: 0; height: 2px; border-radius: 2px;
  background: var(--accent);
  transition: width .45s var(--ease);
}

@media (hover: hover) and (pointer: fine){
  .linea-card:hover{
    transform: translateY(-8px);
    border-color: rgba(255,255,255,.2);
    box-shadow: 0 30px 60px -26px rgba(0,0,0,1);
  }
  .linea-card:hover .linea-card-media{ transform: scale(1.13); }
  .linea-card:hover::after{ opacity: .92; }
  .linea-card:hover .linea-card-icon{
    background: var(--accent); color: var(--white); transform: scale(1.1) rotate(-6deg);
  }
  .linea-card:hover .linea-card-text{ max-height: 5.2em; opacity: 1; }
  .linea-card:hover .linea-card-cta svg{ transform: translateX(5px); }
  .linea-card:hover .linea-card-cta::before{ width: 46px; }
}
/* En táctil no hay hover: la descripción va siempre visible */
@media (hover: none){
  .linea-card-text{ max-height: 5.2em; opacity: 1; }
}
.linea-card:focus-visible{
  outline: 2px solid var(--accent-light);
  outline-offset: 3px;
}

/* --- Barra de progreso del scroll --- */
.lineas-progress{
  position: relative;
  height: 3px;
  border-radius: 3px;
  background: rgba(255,255,255,.09);
  overflow: hidden;
}
.lineas-progress-thumb{
  display: block;
  height: 100%;
  width: 30%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: transform .25s var(--ease), width .25s var(--ease);
}

/* --- Entrada escalonada (clase permanente puesta por script.js) --- */
.lineas-rel .linea-card{ opacity: 0; transform: translateY(26px); }
.lineas-rel.is-revealed .linea-card{
  animation: lineaCardIn .7s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * .07s);
}
@keyframes lineaCardIn{
  from{ opacity: 0; transform: translateY(26px); }
  to{ opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce){
  .lineas-rel .linea-card{ opacity: 1; transform: none; }
}

@media (max-width: 900px){
  .lineas-rel{ margin-top: 72px; padding: 56px 0 64px; }
  .lineas-rel-head{ margin-bottom: 28px; }
  .linea-card{ height: 380px; }
}
@media (max-width: 560px){
  .lineas-rel{ --card-gap: 16px; margin-top: 56px; padding: 48px 0 56px; }
  .lineas-rel-head{
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .lineas-arrow{ width: 44px; height: 44px; }
  .linea-card{ height: 340px; }
  .linea-card-body{ padding: 20px 20px 22px; }
  .linea-card-title{ font-size: 1.15rem; }
  .linea-card-cta::before{ left: 20px; bottom: 15px; }
}

/* ==========================================================================
   DETALLE DE PRODUCTO EN MÓVIL (productos.php?id=N)
   Evita desbordes: reduce paddings anidados, escala hero e imágenes.
   ========================================================================== */
@media (max-width: 900px){
  .product-page-hero{
    min-height: auto;
    padding-bottom: 40px;
  }
  .hero-content-wrapper{ gap: 20px; }
  .product-page-details{ margin-top: -24px; }
  .product-details-grid{ gap: 24px; }
  .product-description, .product-specs{ padding: 28px 22px; }
}
@media (max-width: 560px){
  .product-page-hero{ padding-bottom: 32px; }
  .product-hero-icon{
    width: 62px; height: 62px; border-radius: 16px; margin-bottom: 0;
  }
  .product-hero-icon svg{ width: 30px; height: 30px; }
  .product-hero-text h1{ font-size: clamp(1.8rem, 8.5vw, 2.4rem); }
  .product-hero-text .lead-text{ font-size: 1rem; }
  .product-description, .product-specs{ padding: 24px 18px; }
  .product-description h2{ font-size: 1.45rem; }
  .product-description p{ font-size: 1rem; }
  .product-specs h3{ font-size: 1.2rem; }
  .product-specs li{ align-items: flex-start; padding: 14px; }
  .product-specs li svg{ flex-shrink: 0; margin-top: 4px; }
  .product-cta-row .btn{ flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   MEJORAS VISUALES Y DE RENDIMIENTO
   ========================================================================== */

/* --- Scroll, selección y scrollbar personalizada --- */
html{ scroll-padding-top: 90px; scrollbar-color: var(--navy-600) var(--navy-950); }
::selection{ background: rgba(206,66,48,.55); color: var(--white); }
::-webkit-scrollbar{ width: 11px; }
::-webkit-scrollbar-track{ background: var(--navy-950); }
::-webkit-scrollbar-thumb{ background: var(--navy-600); border-radius: 8px; border: 2px solid var(--navy-950); }
::-webkit-scrollbar-thumb:hover{ background: var(--accent); }
body.nav-locked{ overflow: hidden; }

/* --- Rendimiento: las secciones bajo el pliegue no se pintan hasta acercarse --- */
.destacados, .sectores, .aliados, .proceso, .cta-band, .site-footer, .nosotros-visual{
  content-visibility: auto;
  contain-intrinsic-size: auto 640px;
}

/* --- Orbes de luz flotantes del hero (solo transform: barato para la GPU) --- */
.hero-orb{ position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; will-change: transform; }
.hero-orb-1{
  width: 560px; height: 560px; top: -120px; right: -140px;
  background: radial-gradient(circle, rgba(206,66,48,.2), transparent 62%);
  animation: orbFloat1 16s ease-in-out infinite alternate;
}
.hero-orb-2{
  width: 480px; height: 480px; bottom: -140px; left: -120px;
  background: radial-gradient(circle, rgba(51,84,110,.35), transparent 62%);
  animation: orbFloat2 20s ease-in-out infinite alternate;
}
@keyframes orbFloat1{ from{ transform: translate3d(0,0,0) scale(1); } to{ transform: translate3d(-70px,50px,0) scale(1.16); } }
@keyframes orbFloat2{ from{ transform: translate3d(0,0,0) scale(1.08); } to{ transform: translate3d(60px,-40px,0) scale(.94); } }

/* --- Brillo animado del texto acentuado del hero --- */
@supports ((-webkit-background-clip: text) or (background-clip: text)){
  .hero-title .text-accent{
    background: linear-gradient(90deg, var(--accent-light) 0%, #ffb39e 30%, var(--accent-light) 55%, #ffb39e 80%, var(--accent-light) 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    animation: accentShimmer 7s linear infinite;
  }
}
@keyframes accentShimmer{ to{ background-position: -220% 0; } }

/* --- Spotlight que sigue el cursor en tarjetas (script.js asigna --mx/--my) --- */
.spot{ position: relative; }
.spot::after{
  content: ''; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  opacity: 0; transition: opacity .45s var(--ease);
  background: radial-gradient(var(--spot-size, 240px) circle at var(--mx, 50%) var(--my, 50%), rgba(255,107,82,.13), transparent 65%);
}
.spot:hover::after{ opacity: 1; }
.contact-form{ --spot-size: 420px; }
@media (hover: none){ .spot::after{ display: none; } }

/* --- Destello que barre los botones primarios al pasar el mouse --- */
.btn{ position: relative; overflow: hidden; }
.btn-primary::before{
  content: ''; position: absolute; top: -20%; bottom: -20%; left: -45%; width: 32%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.55), transparent);
  transform: skewX(-18deg); opacity: 0; pointer-events: none;
}
.btn-primary:hover::before{ animation: btnShine .85s var(--ease); }
@keyframes btnShine{
  0%  { opacity: 1; transform: skewX(-18deg) translateX(0); }
  100%{ opacity: 1; transform: skewX(-18deg) translateX(520%); }
}

/* --- Eyebrows con líneas decorativas a los lados --- */
.eyebrow{ display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before, .eyebrow::after{ content: ''; width: 26px; height: 2px; border-radius: 2px; flex-shrink: 0; }
.eyebrow::before{ background: linear-gradient(90deg, transparent, var(--accent-light)); }
.eyebrow::after{ background: linear-gradient(90deg, var(--accent-light), transparent); }

/* --- Línea superior degradada que se enciende al pasar el mouse en tarjetas --- */
.why-card, .pillar, .proceso-card, .ns-stat{ position: relative; }
.why-card::before, .pillar::before, .proceso-card::before, .ns-stat::before{
  content: ''; position: absolute; top: 0; left: 16px; right: 16px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease);
}
.why-card:hover::before, .pillar:hover::before, .proceso-card:hover::before, .ns-stat:hover::before{ transform: scaleX(1); }

/* --- Micro-interacciones en iconos y tarjetas --- */
.why-icon{ transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.why-card:hover .why-icon{ transform: scale(1.08) rotate(-4deg); box-shadow: 0 0 0 8px rgba(206,66,48,.08); }
.proceso-card{ transition: transform .35s var(--ease), border-color .35s var(--ease); }
.proceso-card:hover{ transform: translateY(-6px); border-color: rgba(255,107,82,.35); }
.proceso-num{ transition: -webkit-text-stroke-color .35s var(--ease); }
.proceso-card:hover .proceso-num{ -webkit-text-stroke-color: var(--accent-light); }
.ns-stat{ transition: transform .35s var(--ease), border-color .35s var(--ease); }
.ns-stat:hover{ transform: translateY(-5px); border-color: rgba(255,107,82,.35); }

/* --- Orbe decorativo animado en la banda CTA --- */
.cta-band{ position: relative; overflow: hidden; }
.cta-band::before{
  content: ''; position: absolute; top: -180px; right: -80px; width: 440px; height: 440px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,107,82,.22), transparent 60%);
  animation: orbFloat2 14s ease-in-out infinite alternate; pointer-events: none;
}
.cta-band-inner{ position: relative; }

/* --- Submenú de productos usable dentro del drawer móvil --- */
@media (max-width: 900px){
  .nav-item-dropdown{ width: 100%; }
  .nav-item-dropdown.open .dropdown-menu{ max-height: 45vh; overflow-y: auto; }
  .dropdown-menu a{ padding: 10px 12px; border-bottom: 1px solid rgba(255,255,255,.04); }
}

/* --- Ajustes para pantallas muy pequeñas --- */
@media (max-width: 480px){
  .container{ padding: 0 18px; }
  .hero-actions{ width: 100%; }
  .hero-actions .btn{ flex: 1 1 auto; justify-content: center; }
  .hero-stats{ display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .stat:last-child{ grid-column: 1 / -1; }
  .footer-bottom{ justify-content: center; text-align: center; }
  .hero-orb-1{ width: 380px; height: 380px; }
  .hero-orb-2{ display: none; }
}

/* ==========================================================================
   HERO CON TEXTOS SINCRONIZADOS POR DIAPOSITIVA
   Cada .hero-copy se apila en la misma celda de grid; script.js activa la
   que corresponde a la diapositiva visible.
   ========================================================================== */
.hero-copy-stack{ display: grid; }
/* El contenedor se muestra/oculta de golpe (sin fundido propio): quien anima
   es su contenido. Si el contenedor se fundiera, al quitarle .is-leaving sus
   hijos volverían a su estado visible por defecto y se vería el texto anterior
   encima del nuevo. */
.hero-copy{
  grid-area: 1 / 1;
  opacity: 0; visibility: hidden; pointer-events: none;
}
/* Mientras sale sigue visible para que se vea la animación de salida */
.hero-copy.is-leaving{ opacity: 1; visibility: visible; pointer-events: none; }
.hero-copy.is-active{ opacity: 1; visibility: visible; pointer-events: auto; }
/* --------------------------------------------------------------------------
   ANIMACIÓN DE ENTRADA/SALIDA DEL TEXTO DE CADA DIAPOSITIVA

   Regla de oro: el estado POR DEFECTO es visible. Las animaciones sólo se
   añaden cuando la diapositiva se activa, así que si una animación no llega a
   ejecutarse (navegador antiguo, JS caído, pintado en segundo plano) el
   titular y el texto de acento siempre quedan legibles en pantalla.
   -------------------------------------------------------------------------- */
.hero-copy .hero-eyebrow,
.hero-copy .hero-sub,
.hero-copy .hero-actions .btn,
.hero-copy .hw-i{ opacity: 1; transform: none; }

/* Máscara por palabra: el padding/margen negativo evita que se corten
   tildes y colas (p, y, j) sin alterar el interlineado del titular. */
.hero-copy .hw{
  display: inline-block; overflow: hidden; vertical-align: bottom;
  padding: .18em 0 .26em; margin: -.18em 0 -.26em;
}
.hero-copy .hw-i{ display: inline-block; }
/* El tramo de acento debe ser inline-block: si queda como caja inline pura,
   Chromium pierde el recorte de las máscaras que lleva dentro y las palabras
   animadas no se pintan (el titular aparecía sin su segunda línea). */
.hero-title .text-accent{ display: inline-block; }

/* --- Salida (0 → 340 ms): primero se va por completo el texto anterior --- */
.hero-copy.is-leaving .hw-i{
  animation: heroWordOut .3s var(--ease) both;
  animation-delay: calc(var(--wi, 0) * .02s);
}
.hero-copy.is-leaving .hero-eyebrow,
.hero-copy.is-leaving .hero-sub,
.hero-copy.is-leaving .hero-actions .btn{ animation: heroFadeOut .26s var(--ease) both; }

/* --- Entrada: script.js sólo añade .is-active cuando la salida ya terminó,
       así que estos retardos parten de cero (el desfase ya lo pone el JS) --- */
.hero-copy.is-active .hero-eyebrow{ animation: heroEyebrowIn .8s var(--ease-out) .06s both; }
.hero-copy.is-active .hw-i{
  animation: heroWordIn .8s var(--ease-out) both;
  animation-delay: calc(.1s + var(--wi, 0) * .06s);
}
.hero-copy.is-active .hero-sub{ animation: heroSubIn .85s var(--ease-out) .42s both; }
.hero-copy.is-active .hero-actions .btn{ animation: heroPopIn .7s var(--ease-pop) both; }
.hero-copy.is-active .hero-actions .btn:nth-child(1){ animation-delay: .58s; }
.hero-copy.is-active .hero-actions .btn:nth-child(2){ animation-delay: .67s; }

@keyframes heroWordIn{
  from{ transform: translateY(112%); }
  to  { transform: translateY(0); }
}
@keyframes heroWordOut{
  from{ transform: translateY(0); }
  to  { transform: translateY(-112%); }
}
@keyframes heroEyebrowIn{
  from{ opacity: 0; transform: translateX(-26px); clip-path: inset(0 100% 0 0); }
  to  { opacity: 1; transform: none;              clip-path: inset(0 0 0 0); }
}
@keyframes heroSubIn{
  from{ opacity: 0; transform: translateY(24px); filter: blur(9px); }
  to  { opacity: 1; transform: none;             filter: blur(0); }
}
@keyframes heroPopIn{
  from{ opacity: 0; transform: translateY(20px) scale(.9); }
  to  { opacity: 1; transform: none; }
}
@keyframes heroFadeOut{
  from{ opacity: 1; transform: none; }
  to  { opacity: 0; transform: translateY(-18px); }
}

/* Accesibilidad: sin desplazamientos si se pide menos movimiento */
@media (prefers-reduced-motion: reduce){
  .hero-slide{ filter: none; transform: none; transition: opacity .4s linear; }
  .hero-slide.is-active{ animation: none; transform: none; }
  .hero-copy .hero-eyebrow,
  .hero-copy .hero-sub,
  .hero-copy .hero-actions .btn,
  .hero-copy .hw-i{ animation: none !important; opacity: 1; transform: none; }
  .slider-dot.is-active::after{ animation: none; transform: scaleX(1); }
}
/* ==========================================================================
   SECCIÓN "LÍNEAS DESTACADAS" — BENTO GRID DE IMÁGENES (index.php)
   ========================================================================== */
.destacados{ background: var(--navy-950); }
.bento-grid{
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 215px; grid-auto-flow: dense; gap: 18px; margin-top: 56px;
}
.bento-card{
  position: relative; display: flex; align-items: flex-end;
  border-radius: var(--radius-md); overflow: hidden;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.08);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.bento-card:hover{ border-color: rgba(206,66,48,.5); box-shadow: 0 24px 48px -24px rgba(0,0,0,.6); }
.bento-lg{ grid-column: span 2; grid-row: span 2; }
.bento-tall{ grid-row: span 2; }
.bento-wide{ grid-column: span 2; }
.bento-img{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--navy-800);
  transition: transform .8s var(--ease);
}
.bento-card:hover .bento-img{ transform: scale(1.07); }
.bento-card::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,24,34,.94) 0%, rgba(12,24,34,.4) 48%, rgba(12,24,34,.05) 100%);
}
.bento-content{ position: relative; z-index: 2; padding: 24px; width: 100%; }
.bento-tag{
  display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--accent-light);
  background: rgba(206,66,48,.16); border: 1px solid rgba(206,66,48,.3);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 10px;
}
.bento-content h3{ color: var(--white); font-size: 1.2rem; margin-bottom: 4px; }
.bento-lg .bento-content h3{ font-size: 1.7rem; }
.bento-content p{ color: var(--ink-300); font-size: .88rem; }
.bento-cta{
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  font-size: .82rem; font-weight: 600; color: var(--accent-light);
  opacity: 0; transform: translateX(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.bento-card:hover .bento-cta{ opacity: 1; transform: translateX(0); }
.destacados-foot{ text-align: center; margin-top: 40px; }

/* ==========================================================================
   SECCIÓN "SECTORES QUE ATENDEMOS" — TARJETAS DE IMAGEN (index.php)
   ========================================================================== */
.sectores{ background: var(--navy-900); }
.sectores-grid{ display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 56px; }
.sector-card{
  position: relative; display: flex; align-items: flex-end;
  aspect-ratio: 3 / 4.1; border-radius: var(--radius-md); overflow: hidden;
  background: var(--navy-800); border: 1px solid rgba(255,255,255,.08);
  transition: border-color .4s var(--ease), transform .4s var(--ease);
}
.sector-card:hover{ border-color: rgba(206,66,48,.5); transform: translateY(-6px); }
.sector-img{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--navy-800);
  transition: transform .8s var(--ease);
}
.sector-card:hover .sector-img{ transform: scale(1.08); }
.sector-card::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(12,24,34,.95) 0%, rgba(12,24,34,.35) 55%, rgba(12,24,34,.1) 100%);
}
.sector-num{
  position: absolute; top: 18px; left: 20px; z-index: 2;
  font-family: var(--font-display); font-size: .95rem; font-weight: 700;
  letter-spacing: .1em; color: rgba(255,255,255,.65);
}
.sector-num::after{
  content: ''; display: block; width: 26px; height: 2px; margin-top: 6px;
  background: var(--accent); border-radius: 2px;
}
.sector-content{ position: relative; z-index: 2; padding: 22px; width: 100%; }
.sector-content h3{ color: var(--white); font-size: 1.25rem; margin-bottom: 6px; }
.sector-content p{
  color: var(--ink-300); font-size: .88rem; line-height: 1.5;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .5s var(--ease);
}
.sector-card:hover .sector-content p{ max-height: 90px; opacity: 1; }
@media (hover: none){ .sector-content p{ max-height: none; opacity: 1; } }

/* Flecha que aparece en la esquina de la tarjeta enfocada */
.sector-arrow{
  position: absolute; top: -18px; right: 22px;
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent); color: var(--white);
  box-shadow: 0 12px 26px -10px rgba(206,66,48,.9);
  opacity: 0; transform: scale(.3) rotate(-45deg);
  transition: opacity .45s var(--ease), transform .55s var(--ease-pop);
}

/* --- Foco exclusivo tipo "coverflow": la tarjeta apuntada crece y se
       ilumina, mientras las vecinas se apartan girando en 3D y se
       atenúan suavemente (sin llegar a oscurecerse de más). --- */
@media (hover: hover) and (pointer: fine){
  .sectores-grid{ perspective: 1800px; }
  .sector-card{
    transform-style: preserve-3d;
    transition: transform .65s var(--ease-out), filter .6s var(--ease) .05s,
                border-color .45s var(--ease), box-shadow .6s var(--ease);
  }

  /* Estado atenuado de las tarjetas NO apuntadas */
  .sectores-grid:hover .sector-card{
    transform: scale(.94) translateY(6px);
    filter: brightness(.82) saturate(.85) blur(1px);
  }
  /* Las que están antes del cursor se apartan a la izquierda... */
  .sectores-grid:hover .sector-card:has(~ .sector-card:hover){
    transform: scale(.93) translateX(-18px) translateY(6px) rotateY(10deg);
  }
  /* ...y las que están después, a la derecha */
  .sectores-grid:hover .sector-card:hover ~ .sector-card{
    transform: scale(.93) translateX(18px) translateY(6px) rotateY(-10deg);
  }

  /* La tarjeta apuntada */
  .sectores-grid:hover .sector-card:hover{
    transform: scale(1.09) translateY(-16px);
    filter: none; z-index: 3;
    border-color: rgba(206,66,48,.65);
    box-shadow: 0 40px 70px -28px rgba(0,0,0,.8), 0 0 0 1px rgba(255,107,82,.3);
  }

  /* Detalles internos del sector enfocado */
  .sector-img{ transition: transform 1.1s var(--ease-out), filter .6s var(--ease); }
  .sectores-grid:hover .sector-card:hover .sector-img{ transform: scale(1.16); }
  .sectores-grid:hover .sector-card:hover .sector-glow{ opacity: 1; }
  .sectores-grid:hover .sector-card:hover .sector-arrow{ opacity: 1; transform: scale(1) rotate(0deg); }
  .sectores-grid:hover .sector-card:hover .sector-num{ color: var(--white); transform: translateY(-2px); }
  .sectores-grid:hover .sector-card:hover .sector-num::after{ width: 54px; background: var(--accent-light); }
  .sectores-grid:hover .sector-card:hover .sector-content h3{ transform: translateX(5px); }
}

/* Velo de acento que se enciende bajo la tarjeta enfocada */
.sector-card .sector-glow{
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(206,66,48,.5) 0%, rgba(206,66,48,.12) 42%, transparent 70%);
  opacity: 0; transition: opacity .55s var(--ease);
}
.sector-num{ transition: color .45s var(--ease), transform .45s var(--ease); }
.sector-num::after{ transition: width .55s var(--ease-out), background .45s var(--ease); }
.sector-content h3{ transition: transform .5s var(--ease-out); }

@media (prefers-reduced-motion: reduce){
  .sectores-grid:hover .sector-card,
  .sectores-grid:hover .sector-card:has(~ .sector-card:hover),
  .sectores-grid:hover .sector-card:hover ~ .sector-card,
  .sectores-grid:hover .sector-card:hover{ transform: none; filter: none; }
}

/* ==========================================================================
   BANDA CTA CON IMAGEN DE FONDO (index.php)
   ========================================================================== */
.cta-band-img{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.cta-band-img::after{
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(12,24,34,.94) 0%, rgba(20,36,49,.8) 55%, rgba(206,66,48,.35) 100%);
}

/* ==========================================================================
   SECCIÓN VISUAL DE NOSOTROS — IMAGEN + TEXTO (nosotros.php)
   ========================================================================== */
.nosotros-visual{ background: var(--navy-900); }
.nv-grid{ display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: center; }
.nv-media{ position: relative; padding-bottom: 48px; padding-right: 32px; }
.nv-img{
  background-size: cover; background-position: center;
  background-color: var(--navy-800);
  border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,.1);
}
.nv-img-main{ aspect-ratio: 4 / 3; }
.nv-img-small{
  position: absolute; right: 0; bottom: 0; width: 48%; aspect-ratio: 1;
  border: 5px solid var(--navy-900); box-shadow: 0 24px 48px -20px rgba(0,0,0,.55);
}
.nv-badge{
  position: absolute; top: 22px; left: 22px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(12,24,34,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.14); border-radius: 100px;
  padding: 9px 16px; font-size: .82rem; font-weight: 600; color: var(--white);
}
.nv-badge svg{ color: var(--accent-light); }
.nv-copy h2{ font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.15; margin-bottom: 18px; }
.nv-copy > p{ color: var(--ink-300); margin-bottom: 28px; }
.nv-list{ display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.nv-list li{ display: flex; align-items: flex-start; gap: 12px; color: var(--ink-100); font-weight: 500; }
.nv-list svg{ flex-shrink: 0; margin-top: 4px; color: var(--accent-light); }

/* --- Responsive de las secciones nuevas --- */
@media (max-width: 1080px){
  .sectores-grid{ grid-template-columns: repeat(2, 1fr); }
  .sector-card{ aspect-ratio: 4 / 3.4; }
}
@media (max-width: 900px){
  .bento-grid{ grid-template-columns: repeat(2, 1fr); grid-auto-rows: 190px; }
  .nv-grid{ grid-template-columns: 1fr; gap: 56px; }
  .nv-media{ max-width: 560px; }
}
@media (max-width: 560px){
  .bento-grid{ grid-template-columns: 1fr; grid-auto-rows: 200px; }
  .bento-lg, .bento-wide{ grid-column: span 1; }
  .bento-lg{ grid-row: span 2; }
  .sectores-grid{ grid-template-columns: 1fr; gap: 16px; }
  .sector-card{ aspect-ratio: 16 / 10; }
  .nv-media{ padding-right: 18px; }
}
/* ==========================================================================
   PORTAFOLIO (productos.php): FOCO EXCLUSIVO EN LA LÍNEA APUNTADA
   Al pasar el mouse sobre una tarjeta, esa crece y se ilumina mientras las
   demás se empequeñecen, se oscurecen y se desplazan hacia atrás.
   ========================================================================== */
/* Barrido de luz diagonal (existe siempre; sólo se dispara al enfocar) */
.prod-card-bg::after{
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(115deg, transparent 34%, rgba(255,255,255,.18) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 1s var(--ease-out);
}
.prod-card-content{ transition: transform .6s var(--ease-out); }
.prod-card p{ transition: color .4s var(--ease), max-height .6s var(--ease-out), opacity .5s var(--ease), margin-bottom .6s var(--ease-out); }

@media (hover: hover) and (pointer: fine){
  .productos-grid{ perspective: 1600px; }

  .prod-card{
    transform-style: preserve-3d;
    transition: transform .65s var(--ease-out), filter .6s var(--ease) .05s,
                box-shadow .6s var(--ease), border-color .45s var(--ease);
  }

  /* Tarjetas NO apuntadas: retroceden y se atenúan de forma suave */
  .productos-grid:hover .prod-card{
    transform: scale(.93) translateZ(-70px);
    filter: brightness(.8) saturate(.85) blur(1.5px);
  }
  /* Se apartan del cursor: las anteriores giran hacia la izquierda... */
  .productos-grid:hover .prod-card:has(~ .prod-card:hover){
    transform: scale(.92) translateX(-14px) translateZ(-70px) rotateY(8deg);
  }
  /* ...y las siguientes hacia la derecha */
  .productos-grid:hover .prod-card:hover ~ .prod-card{
    transform: scale(.92) translateX(14px) translateZ(-70px) rotateY(-8deg);
  }

  /* La línea apuntada toma todo el protagonismo */
  .productos-grid:hover .prod-card:hover,
  .productos-grid .prod-card:focus-visible{
    transform: scale(1.08) translateY(-14px) translateZ(40px);
    filter: brightness(1.06) saturate(1.08);
    z-index: 3;
    border-color: rgba(206,66,48,.7) !important;
    box-shadow: 0 40px 80px -28px rgba(0,0,0,.85), 0 0 0 1px rgba(255,107,82,.3) !important;
  }

  .productos-grid:hover .prod-card:hover::after{ transform: translateX(130%); }
  .productos-grid:hover .prod-card:hover .prod-card-content{ transform: translateY(-6px); }
  .productos-grid:hover .prod-card:hover p{ color: var(--ink-100); }

  /* En reposo la descripción se recorta a dos líneas; al enfocar se despliega */
  .productos-grid .prod-card p{ max-height: 2.9em; opacity: .7; overflow: hidden; margin-bottom: 12px; }
  .productos-grid:hover .prod-card:hover p{ max-height: 140px; opacity: 1; margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce){
  .productos-grid:hover .prod-card,
  .productos-grid:hover .prod-card:has(~ .prod-card:hover),
  .productos-grid:hover .prod-card:hover ~ .prod-card,
  .productos-grid:hover .prod-card:hover{ transform: none; filter: none; }
}

/* ==========================================================================
   BROCHURE DESCARGABLE + VISOR EN LÍNEA (brochure.php)
   ========================================================================== */
.brochure{ background: var(--navy-950); position: relative; overflow: hidden; }
.brochure::before{
  content: ''; position: absolute; top: -160px; left: -120px; width: 520px; height: 520px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(206,66,48,.16), transparent 62%);
}
.brochure-inner{
  position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
  gap: 72px; align-items: center;
}
.brochure-copy h2{ font-size: clamp(1.9rem, 3.4vw, 2.7rem); line-height: 1.14; }
.brochure-copy > p{ color: var(--ink-300); margin-top: 18px; max-width: 50ch; }
.brochure-meta{ display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 32px; }
.brochure-meta li{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--ink-300);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  padding: 8px 14px; border-radius: 100px;
}
.brochure-meta svg{ color: var(--accent-light); flex-shrink: 0; }
.brochure-actions{ display: flex; flex-wrap: wrap; gap: 14px; }

/* --- Portada del documento (hecha en CSS, sin imagen) --- */
.brochure-visual{ display: flex; justify-content: center; perspective: 1200px; }
.brochure-doc{
  position: relative; width: min(330px, 78%); aspect-ratio: 3 / 4.05;
  background: none; border: none; padding: 0; cursor: pointer;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(4deg);
  transition: transform .7s var(--ease);
}
.brochure-doc:hover, .brochure-doc:focus-visible{ transform: rotateY(-4deg) rotateX(1deg) translateY(-8px); }
.brochure-doc-sheet{
  position: absolute; inset: 0; border-radius: 6px 16px 16px 6px;
  transition: transform .7s var(--ease);
}
.brochure-doc-back1{
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.1);
  transform: translate3d(16px, 12px, -30px) rotate(3deg);
}
.brochure-doc-back2{
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.07);
  transform: translate3d(30px, 24px, -60px) rotate(6deg);
}
.brochure-doc:hover .brochure-doc-back1{ transform: translate3d(24px, 16px, -30px) rotate(5deg); }
.brochure-doc:hover .brochure-doc-back2{ transform: translate3d(44px, 32px, -60px) rotate(9deg); }
.brochure-doc-front{
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: 14px; padding: 30px 26px; overflow: hidden; text-align: left;
  background: linear-gradient(155deg, var(--navy-800) 0%, #0d1f2c 55%, #16110f 100%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 40px 70px -30px rgba(0,0,0,.85), inset 3px 0 0 rgba(206,66,48,.85);
}
/* Halo de acento en la esquina superior de la portada */
.brochure-doc-front::before{
  content: ''; position: absolute; top: -90px; right: -70px; width: 260px; height: 260px;
  border-radius: 50%; background: radial-gradient(circle, rgba(206,66,48,.5), transparent 62%);
}
.brochure-doc-shine{
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%);
  transform: translateX(-120%); transition: transform 1s var(--ease);
}
.brochure-doc:hover .brochure-doc-shine{ transform: translateX(120%); }
.brochure-doc-logo{ position: relative; height: 26px; width: auto; margin-bottom: auto; }
.brochure-doc-title{
  position: relative; font-family: var(--font-display); font-weight: 700;
  font-size: 1.75rem; line-height: 1.12; color: var(--white);
}
.brochure-doc-rule{ position: relative; width: 46px; height: 3px; border-radius: 3px; background: var(--accent); }
.brochure-doc-foot{ position: relative; font-size: .78rem; color: var(--ink-300); line-height: 1.5; }
.brochure-doc-badge{
  position: absolute; top: 18px; right: 18px; z-index: 3;
  font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--white);
  background: var(--accent); padding: 5px 10px; border-radius: 6px;
  box-shadow: 0 8px 18px -6px rgba(206,66,48,.9);
}
.brochure-doc-play{
  position: absolute; inset: 0; z-index: 4; margin: auto;
  width: 62px; height: 62px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12,24,34,.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2); color: var(--white);
  opacity: 0; transform: scale(.7); transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.brochure-doc:hover .brochure-doc-play,
.brochure-doc:focus-visible .brochure-doc-play{ opacity: 1; transform: scale(1); }

/* --- Modal del visor de PDF --- */
/* Por encima del header (100) y del botón flotante de WhatsApp (999) */
.pdf-modal{ position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 24px; }
.pdf-modal[hidden]{ display: none; }
.pdf-modal-backdrop{
  position: absolute; inset: 0; background: rgba(4,10,16,.82);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .35s var(--ease);
}
.pdf-modal-panel{
  position: relative; width: min(1080px, 100%); height: min(88vh, 100%);
  display: flex; flex-direction: column;
  background: var(--navy-900); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: 0 50px 100px -40px rgba(0,0,0,.9);
  opacity: 0; transform: translateY(28px) scale(.97);
  transition: opacity .4s var(--ease), transform .45s var(--ease);
}
.pdf-modal.is-open .pdf-modal-backdrop{ opacity: 1; }
.pdf-modal.is-open .pdf-modal-panel{ opacity: 1; transform: none; }
.pdf-modal-head{
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
}
.pdf-modal-title{ display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--white); font-size: .95rem; }
.pdf-modal-title svg{ color: var(--accent-light); flex-shrink: 0; }
.pdf-modal-tools{ display: flex; align-items: center; gap: 10px; }
.pdf-modal-btn{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .85rem; font-weight: 600; color: var(--ink-100);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  padding: 8px 14px; border-radius: 100px;
  transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.pdf-modal-btn:hover{ background: var(--accent); border-color: var(--accent); color: var(--white); }
.pdf-modal-close{
  width: 36px; height: 36px; border-radius: 50%; color: var(--ink-100);
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s var(--ease), transform .3s var(--ease), color .3s var(--ease);
}
.pdf-modal-close:hover{ background: var(--accent); color: var(--white); transform: rotate(90deg); }
.pdf-modal-body{ position: relative; flex: 1; background: #1b1b1b; }
.pdf-modal-frame{ position: relative; z-index: 2; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .4s var(--ease); }
.pdf-modal.is-loaded .pdf-modal-frame{ opacity: 1; }
.pdf-modal-loader{ position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pdf-modal-loader span{
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent-light);
  animation: pdfDots 1.1s ease-in-out infinite;
}
.pdf-modal-loader span:nth-child(2){ animation-delay: .15s; }
.pdf-modal-loader span:nth-child(3){ animation-delay: .3s; }
@keyframes pdfDots{ 0%,100%{ transform: translateY(0); opacity: .35; } 50%{ transform: translateY(-9px); opacity: 1; } }
.pdf-modal-note{ padding: 12px 18px; font-size: .82rem; color: var(--ink-500); text-align: center; border-top: 1px solid rgba(255,255,255,.08); }
.pdf-modal-note a{ color: var(--accent-light); font-weight: 600; }
body.modal-locked{ overflow: hidden; }

@media (max-width: 900px){
  .brochure-inner{ grid-template-columns: 1fr; gap: 48px; }
  .brochure-visual{ order: -1; }
  .brochure-doc{ width: min(280px, 70%); transform: rotateY(-8deg); }
  .pdf-modal{ padding: 0; }
  .pdf-modal-panel{ height: 100%; border-radius: 0; border: none; }
}
@media (max-width: 560px){
  .brochure-actions .btn{ flex: 1 1 100%; justify-content: center; }
}

/* ==========================================================================
   PÁGINA DE CONTACTO (contacto.php)
   ========================================================================== */
.contact-hero{ position: relative; background: var(--navy-950); overflow: hidden; padding-bottom: 80px; }
.contact-hero-orb{
  position: absolute; top: -220px; left: 50%; width: 760px; height: 560px;
  margin-left: -380px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(206,66,48,.22), transparent 62%);
  animation: contactOrb 16s ease-in-out infinite alternate;
}
@keyframes contactOrb{
  from{ transform: translate3d(-40px, 0, 0) scale(1); }
  to  { transform: translate3d(40px, 30px, 0) scale(1.14); }
}
.contact-hero-head{ position: relative; margin-bottom: 48px; }
.contact-hero-head h2{ font-size: clamp(2.1rem, 4.4vw, 3.2rem); line-height: 1.1; }

/* --- Estado de atención (abierto / cerrado) --- */
.hours-badge{
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin-top: 24px; padding: 9px 18px; border-radius: 100px;
  font-size: .84rem; font-weight: 600; color: var(--ink-300);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
}
.hours-sep{ opacity: .45; }
.hours-dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--ink-500); }
.hours-badge.is-open{ color: var(--white); border-color: rgba(37,211,102,.35); background: rgba(37,211,102,.1); }
.hours-badge.is-open .hours-dot{ background: #25d366; animation: hoursPulse 2s infinite; }
.hours-badge.is-closed .hours-dot{ background: var(--accent-light); }
@keyframes hoursPulse{
  0%  { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  70% { box-shadow: 0 0 0 9px rgba(37,211,102,0); }
  100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* --- Accesos directos --- */
.quick-grid{ position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.quick-card{
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px; padding: 22px 24px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-md);
  transition: transform .45s var(--ease-out), border-color .4s var(--ease),
              background .4s var(--ease), box-shadow .45s var(--ease);
}
.quick-card::before{
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 36%, rgba(255,255,255,.1) 50%, transparent 64%);
  transform: translateX(-130%); transition: transform .95s var(--ease-out);
}
.quick-card:hover{
  transform: translateY(-7px);
  border-color: rgba(206,66,48,.45); background: rgba(255,255,255,.06);
  box-shadow: 0 26px 50px -26px rgba(0,0,0,.75);
}
.quick-card:hover::before{ transform: translateX(130%); }
.quick-icon{
  position: relative; z-index: 1; flex-shrink: 0;
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(206,66,48,.14); color: var(--accent-light);
  transition: transform .5s var(--ease-pop), background .4s var(--ease), color .4s var(--ease);
}
.quick-card:hover .quick-icon{ transform: scale(1.12) rotate(-6deg); background: var(--accent); color: var(--white); }
.quick-icon-wa{ background: rgba(37,211,102,.14); color: #25d366; }
.quick-card:hover .quick-icon-wa{ background: #25d366; color: var(--white); }
/* Anillo que late al pasar el cursor */
.quick-ring{
  position: absolute; left: 24px; top: 50%; width: 50px; height: 50px;
  margin-top: -25px; border-radius: 14px; pointer-events: none;
  border: 1px solid rgba(255,107,82,.6); opacity: 0;
}
.quick-card:hover .quick-ring{ animation: quickRing 1.6s ease-out infinite; }
@keyframes quickRing{
  0%  { opacity: .7; transform: scale(1); }
  100%{ opacity: 0;  transform: scale(1.55); }
}
.quick-text{ position: relative; z-index: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.quick-text strong{ color: var(--white); font-size: .98rem; }
.quick-text span{ color: var(--ink-500); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; }
.quick-go{
  position: relative; z-index: 1; margin-left: auto; color: var(--accent-light);
  opacity: 0; transform: translateX(-8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease-out);
}
.quick-card:hover .quick-go{ opacity: 1; transform: translateX(0); }

/* --- Columna de datos --- */
.contacto-info-title{ font-size: 1.5rem; color: var(--white); margin-bottom: 28px; }
.contact-list li{ position: relative; }
.contact-icon{ transition: transform .45s var(--ease-pop), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease); }
.contact-list li:hover .contact-icon{
  transform: scale(1.1) rotate(-5deg);
  background: var(--accent); border-color: var(--accent); color: var(--white);
}
.copy-btn{
  margin-left: auto; width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  color: var(--ink-500); opacity: 0; transform: translateX(-6px);
  transition: opacity .35s var(--ease), transform .35s var(--ease),
              background .3s var(--ease), color .3s var(--ease);
}
.contact-list li:hover .copy-btn, .copy-btn:focus-visible{ opacity: 1; transform: translateX(0); }
.copy-btn:hover{ background: var(--accent); border-color: var(--accent); color: var(--white); }
.copy-btn.is-copied{ background: #25d366; border-color: #25d366; color: var(--white); }
@media (hover: none){ .copy-btn{ opacity: 1; transform: none; } }

/* --- Compromisos con contador --- */
.contact-promises{
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 8px 0 36px;
}
.promise{
  padding: 18px 16px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08);
  transition: transform .4s var(--ease-out), border-color .4s var(--ease);
}
.promise:hover{ transform: translateY(-5px); border-color: rgba(255,107,82,.4); }
.promise-num{
  display: block; font-family: var(--font-display); font-size: 1.7rem;
  font-weight: 700; color: var(--accent-light); line-height: 1;
}
.promise-label{ display: block; margin-top: 6px; font-size: .8rem; color: var(--ink-500); line-height: 1.35; }

/* --- Formulario --- */
.contact-form-wrap{ position: relative; }
.form-progress{
  height: 3px; border-radius: 3px; overflow: hidden;
  background: rgba(255,255,255,.08); margin-bottom: 4px;
}
.form-progress-bar{
  height: 100%; width: 0%; border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  transition: width .5s var(--ease-out);
}
/* Cada campo entra escalonado al revelarse el formulario */
.field{ position: relative; }
.contact-form .field > span{ transition: color .3s var(--ease); }
.field:focus-within > span{ color: var(--accent-light); }
/* Línea de acento que crece bajo el campo enfocado */
.field::after{
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  border-radius: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease-out);
}
.field:focus-within::after{ transform: scaleX(1); }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus{
  box-shadow: 0 0 0 4px rgba(206,66,48,.12);
}
/* Botón de envío con estado "enviando" */
.form-submit{ position: relative; overflow: hidden; }
.form-submit-label{ display: inline-flex; align-items: center; gap: 8px; transition: opacity .3s var(--ease), transform .3s var(--ease); }
.form-spinner{
  position: absolute; inset: 0; margin: auto; width: 20px; height: 20px;
  border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--white);
  opacity: 0; animation: spin .8s linear infinite;
}
.form-submit.is-sending .form-submit-label{ opacity: 0; transform: translateY(8px); }
.form-submit.is-sending .form-spinner{ opacity: 1; }
@keyframes spin{ to{ transform: rotate(360deg); } }

/* --- Panel de confirmación --- */
.form-success{
  position: absolute; inset: 0; z-index: 3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; text-align: center; padding: 40px;
  background: linear-gradient(160deg, rgba(20,36,49,.98), rgba(12,24,34,.98));
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; transform: scale(.96); transition: opacity .45s var(--ease), transform .5s var(--ease-out);
}
.form-success[hidden]{ display: none; }
.form-success.is-visible{ opacity: 1; transform: none; }
.form-success-check{
  width: 74px; height: 74px; border-radius: 50%; margin-bottom: 6px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,211,102,.14); border: 1px solid rgba(37,211,102,.4); color: #25d366;
}
.form-success.is-visible .form-success-check{ animation: successPop .7s var(--ease-pop) both; }
@keyframes successPop{
  0%  { transform: scale(.4); opacity: 0; }
  60% { transform: scale(1.12); opacity: 1; }
  100%{ transform: scale(1); opacity: 1; }
}
.form-success h3{ font-size: 1.5rem; color: var(--white); }
.form-success > p{ color: var(--ink-300); max-width: 38ch; }
.form-success-actions{ display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }

/* --- Aviso flotante (copiar al portapapeles) --- */
.toast{
  position: fixed; left: 50%; bottom: 34px; z-index: 1100;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none;
  padding: 12px 22px; border-radius: 100px;
  background: rgba(12,24,34,.95); border: 1px solid rgba(255,255,255,.16);
  color: var(--white); font-size: .88rem; font-weight: 600;
  box-shadow: 0 20px 40px -18px rgba(0,0,0,.8);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: opacity .35s var(--ease), transform .45s var(--ease-pop);
}
.toast.is-visible{ opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px){
  .quick-grid{ grid-template-columns: 1fr; }
  .contact-hero{ padding-bottom: 56px; }
}
@media (max-width: 560px){
  .contact-promises{ grid-template-columns: 1fr; }
  .form-success{ padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce){
  .contact-hero-orb, .quick-card:hover .quick-ring, .hours-badge.is-open .hours-dot{ animation: none; }
}
