/* ============================================================
   FLYPROVEE — sistema de diseño
   Paleta extraída del logo: tinta #0B0F17, azul #0362FB
   Tipografía: Space Grotesk (display) + Inter (texto)
   Motivo visual: el hexágono + la flecha del logo, repetidos
   ============================================================ */

:root{
  --ink: #0B0F17;
  --ink-soft: #131A26;
  --blue: #0362FB;
  --blue-light: #4C8CFF;
  --blue-bright: #1E7BFF;
  --blue-pale: #EAF1FF;
  --blue-glow: rgba(3, 98, 251, .35);
  --white: #FFFFFF;
  --paper: #F5F7FB;
  --line: #E4E9F2;
  --gray-500: #5B6472;
  --gray-700: #333B47;

  --font-display: "Space Grotesk", "Arial", sans-serif;
  --font-body: "Inter", "Arial", sans-serif;

  --max: 1180px;
  --radius: 18px;
  --ease: cubic-bezier(.22,1,.36,1);
}

*, *::before, *::after{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

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

body{
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p{ margin: 0; }

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

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

button{ font-family: inherit; cursor: pointer; }

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

:focus-visible{
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

/* ---------- botones ---------- */

.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .35s var(--ease), background .25s ease, border-color .25s ease, box-shadow .25s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }

.btn-primary{
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 10px 24px -10px var(--blue-glow);
}
.btn-primary:hover{ box-shadow: 0 16px 30px -10px var(--blue-glow); }

.btn-ghost-dark{
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.28);
}
.btn-ghost-dark:hover{ border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }

.btn-ghost-light{
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost-light:hover{ border-color: var(--ink); }

.btn-block{ width: 100%; }

/* ---------- topbar de aviso ---------- */

.topbar{
  background: var(--ink);
  overflow: hidden;
  white-space: nowrap;
  padding: 10px 0;
}
.topbar-track{
  display: inline-flex;
  align-items: center;
  animation: marquee 26s linear infinite;
}
.topbar-track span{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.82);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
  padding: 0 28px;
  border-right: 1px solid rgba(255,255,255,.16);
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- navegación tipo tienda ---------- */

.nav{
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap{
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  height: 84px;
}

.nav-pills{
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-pills a{
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--gray-700);
  transition: background .2s ease, color .2s ease;
}
.nav-pills a:hover{ color: var(--ink); }
.nav-pills a.active{ background: var(--ink); color: var(--white); }

.nav-brand{ display: flex; align-items: center; justify-self: center; }
.nav-brand img{ height: 28px; width: auto; }

.nav-icons{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}
.nav-icon-btn{
  position: relative;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
}
.nav-icon-btn:hover{ background: var(--paper); }
.nav-icon-btn svg{ width: 20px; height: 20px; }
.nav-icon-btn .cart-count{
  position: absolute;
  top: 2px; right: 2px;
  min-width: 17px; height: 17px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--blue);
  color: var(--white);
  font-size: 10.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .2s ease, transform .2s var(--ease);
}
.nav-icon-btn .cart-count.show{ opacity: 1; transform: scale(1); }

.nav-toggle{
  display: none;
  background: none;
  border: none;
  width: 40px; height: 40px;
  position: relative;
  justify-self: start;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease), opacity .3s ease, top .3s ease;
}
.nav-toggle span{ top: 19px; left: 9px; right: 9px; }
.nav-toggle span::before{ top: -7px; }
.nav-toggle span::after{ top: 7px; }
.nav-toggle.open span{ background: transparent; }
.nav-toggle.open span::before{ top: 0; transform: rotate(45deg); background: var(--ink); }
.nav-toggle.open span::after{ top: 0; transform: rotate(-45deg); background: var(--ink); }

/* ---------- panel de búsqueda ---------- */

.search-panel{
  position: fixed;
  inset: 84px 0 auto 0;
  z-index: 55;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px -20px rgba(11,15,23,.2);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s var(--ease);
}
.search-panel.open{ opacity: 1; transform: none; pointer-events: auto; }
.search-panel .wrap{ display: flex; align-items: center; gap: 14px; padding: 18px 28px; }
.search-panel svg{ width: 20px; height: 20px; color: var(--gray-500); flex-shrink: 0; }
.search-panel input{
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--ink);
  background: none;
}
.search-panel button{
  background: none;
  border: none;
  color: var(--gray-500);
  font-size: 13px;
  font-weight: 600;
}

/* ---------- carrito / lista de interés ---------- */

.cart-overlay{
  position: fixed;
  inset: 0;
  background: rgba(11,15,23,.5);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.cart-overlay.open{ opacity: 1; pointer-events: auto; }

.cart-drawer{
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(400px, 100%);
  background: var(--white);
  z-index: 71;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform .4s var(--ease);
  box-shadow: -20px 0 40px -20px rgba(11,15,23,.3);
}
.cart-drawer.open{ transform: none; }

.cart-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}
.cart-head h3{ font-size: 19px; }
.cart-close{ background: none; border: none; width: 32px; height: 32px; color: var(--gray-500); }
.cart-close svg{ width: 20px; height: 20px; }

.cart-body{ flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty{ text-align: center; color: var(--gray-500); font-size: 14px; padding: 50px 10px; }
.cart-empty svg{ width: 40px; height: 40px; color: var(--line); margin-bottom: 14px; }

.cart-line{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-line span{ font-size: 14.5px; font-weight: 600; }
.cart-line button{
  background: none; border: none;
  color: var(--gray-500);
  width: 28px; height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
}
.cart-line button:hover{ background: var(--paper); color: var(--ink); }
.cart-line button svg{ width: 16px; height: 16px; }

.cart-foot{ padding: 20px 24px 24px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.cart-foot p{ font-size: 12.5px; color: var(--gray-500); text-align: center; }

/* ---------- hero ---------- */

.hero{
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding: 108px 0 96px;
}

.hero-hexfield{
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transform: scale(.94);
  transition: opacity 1.1s var(--ease), transform 1.4s var(--ease);
}
.hero.is-ready .hero-hexfield{ opacity: 1; transform: scale(1); }

.hero-hexfield svg{ width: 100%; height: 100%; }

.hero .wrap{
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  align-items: center;
}

.hero-kicker{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.66);
  margin-bottom: 22px;
  opacity: 0;
  transform: translateY(10px);
}
.hero-kicker .dot{
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 0 5px rgba(76,140,255,.18);
}

.hero h1{
  font-size: clamp(38px, 5vw, 60px);
  max-width: 15ch;
  opacity: 0;
  transform: translateY(16px);
}

.hero-sub{
  margin-top: 24px;
  font-size: 18px;
  color: rgba(255,255,255,.72);
  max-width: 46ch;
  opacity: 0;
  transform: translateY(14px);
}

.hero-cta{
  display: flex;
  gap: 14px;
  margin-top: 38px;
  flex-wrap: wrap;
  opacity: 0;
  transform: translateY(12px);
}

.hero.is-ready .hero-kicker,
.hero.is-ready .hero-sub,
.hero.is-ready .hero-cta{ opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.hero.is-ready .hero-kicker{ transition-delay: .05s; }
.hero.is-ready h1{ opacity: 1; transform: none; transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: .12s; }
.hero.is-ready .hero-sub{ transition-delay: .26s; }
.hero.is-ready .hero-cta{ transition-delay: .38s; }

.hero-stats{
  display: flex;
  gap: 34px;
  margin-top: 56px;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,.14);
  opacity: 0;
}
.hero.is-ready .hero-stats{ opacity: 1; transition: opacity 1s var(--ease); transition-delay: .5s; }
.hero-stat b{
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
}
.hero-stat span{
  font-size: 13px;
  color: rgba(255,255,255,.58);
}

/* hexágono central animado del hero */
.hero-mark{
  position: relative;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(.85) rotate(-6deg);
}
.hero.is-ready .hero-mark{
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: .3s;
}
.hero-mark svg{ width: 92%; height: 92%; }
.hero-mark .spin-slow{
  animation: spin 34s linear infinite;
  transform-origin: 200px 200px;
}
.hero-mark .arrow-pulse{
  animation: pulseArrow 2.6s ease-in-out infinite;
  transform-origin: 200px 200px;
}
@keyframes spin{ to{ transform: rotate(360deg); } }
@keyframes pulseArrow{
  0%, 100%{ transform: translate(0,0); opacity: 1; }
  50%{ transform: translate(4px,-4px); opacity: .78; }
}

/* ---------- intro 3D interactiva ---------- */

#intro3d{
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  transition: opacity .7s var(--ease);
}
#intro3d.hide{ opacity: 0; pointer-events: none; }
#intro3d canvas{ display: block; }
.intro3d-caption{
  position: absolute;
  bottom: 54px; left: 0; right: 0;
  text-align: center;
  color: rgba(255,255,255,.55);
  font-size: 13px;
  letter-spacing: .02em;
  opacity: 0;
  animation: introFade 1s ease forwards;
  animation-delay: .6s;
}
.intro3d-caption b{ color: var(--white); }
@keyframes introFade{ to{ opacity: 1; } }

/* ---------- secciones generales ---------- */

section{ padding: 96px 0; }

.section-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 48px;
}
.section-head h2{ font-size: clamp(28px, 3.4vw, 38px); max-width: 18ch; }
.section-head p{ color: var(--gray-500); max-width: 40ch; font-size: 15.5px; }

.section-alt{ background: var(--paper); }

/* ---------- catálogo: tarjetas de producto ---------- */

.catalog-grid{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.product-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.product-card:hover{ transform: translateY(-6px); box-shadow: 0 26px 40px -26px rgba(11,15,23,.28); }

.product-media{
  position: relative;
  aspect-ratio: 10 / 7;
  overflow: hidden;
}
.product-media img.drip{
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.product-card:nth-child(even) .product-media img.drip{ transform: scaleX(-1); }
.product-card:hover .product-media img.drip{ transform: scale(1.06); }
.product-card:nth-child(even):hover .product-media img.drip{ transform: scaleX(-1) scale(1.06); }

.product-overlay{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  text-align: center;
  color: var(--white);
}
.product-overlay .product-icon{
  width: 40px; height: 40px;
  margin-bottom: 2px;
}
.product-overlay b{
  font-family: var(--font-display);
  font-size: 16.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .01em;
}
.product-overlay small{
  font-size: 11px;
  color: var(--blue-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.product-ribbon{
  position: absolute;
  top: 12px; left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--white);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  padding: 6px 10px;
  border-radius: 999px;
  z-index: 2;
}
.product-ribbon svg{ width: 12px; height: 12px; color: var(--blue); }

.product-body{ padding: 18px 20px 20px; }
.product-body h3{ font-size: 16.5px; margin-bottom: 5px; }
.product-body p{ font-size: 13px; color: var(--gray-500); margin-bottom: 16px; min-height: 34px; }

.product-actions{ display: flex; gap: 8px; }
.product-actions .btn{ padding: 11px 14px; font-size: 13.5px; flex: 1; }

@media (max-width: 980px){
  .catalog-grid{ grid-template-columns: repeat(3, 1fr); }
}

/* ---------- banners interactivos (tilt 3D al pasar el ratón) ---------- */

.banner-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  perspective: 1200px;
}
.banner-tilt{
  position: relative;
  background: var(--ink);
  color: var(--white);
  border-radius: 20px;
  padding: 30px 26px;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .15s ease-out;
  will-change: transform;
}
.banner-tilt::before{
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 220px; height: 220px;
  background: radial-gradient(circle, var(--blue) 0%, transparent 70%);
  opacity: .5;
  transform: translateZ(0);
  pointer-events: none;
}
.banner-tilt-inner{ position: relative; transform: translateZ(40px); }
.banner-tilt .banner-icon{
  width: 40px; height: 40px;
  color: var(--blue-light);
  margin-bottom: 16px;
}
.banner-tilt h3{ color: var(--white); font-size: 18px; margin-bottom: 8px; }
.banner-tilt p{ color: rgba(255,255,255,.62); font-size: 13.5px; }
.banner-tilt a.banner-link{
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-light);
}

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

/* ---------- escena 3D de auriculares controlada por scroll ---------- */

.airpods-scene{
  position: relative;
  height: 280vh;
  background: var(--ink);
}
.airpods-scene.static{ height: auto; }

.airpods-sticky{
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.airpods-scene.static .airpods-sticky{
  position: static;
  height: auto;
  padding: 96px 0;
}

#airpods-canvas{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.airpods-scene.static #airpods-canvas{ display: none; }

.airpods-copy{
  position: absolute;
  left: 0; right: 0;
  bottom: 12%;
  z-index: 2;
  text-align: center;
  pointer-events: none;
  padding: 0 24px;
}
.airpods-kicker{
  display: block;
  color: var(--blue-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 14px;
  opacity: 0;
  transition: opacity .5s ease;
}
.airpods-kicker.show{ opacity: 1; }

.airpods-step{
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 88vw);
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(22px, 3.6vw, 34px);
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transition: opacity .5s ease;
}
.airpods-step.show{ opacity: 1; }
.airpods-step a.btn{ pointer-events: auto; margin-top: 18px; }

.airpods-fallback{
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  color: var(--white);
  text-align: center;
  padding: 0 24px;
}
.airpods-scene.static .airpods-fallback{ display: flex; }
.airpods-scene.static .airpods-copy,
.airpods-scene.static .airpods-progress{ display: none; }
.airpods-fallback svg{ width: 56px; height: 56px; color: var(--blue-light); }
.airpods-fallback h2{ color: var(--white); font-size: clamp(24px,4vw,34px); max-width: 18ch; }
.airpods-fallback p{ color: rgba(255,255,255,.65); max-width: 42ch; }

.airpods-progress{
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  gap: 6px;
}
.airpods-progress span{
  width: 22px; height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,.22);
  transition: background .3s ease;
}
.airpods-progress span.on{ background: var(--blue-light); }

.steps{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.step{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step-num{
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--blue);
  margin-bottom: 18px;
}
.step h3{ font-size: 19px; margin-bottom: 10px; }
.step p{ color: var(--gray-500); font-size: 14.5px; }

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

/* ---------- confianza / franja ---------- */

.trust{
  background: var(--ink);
  color: var(--white);
  border-radius: 28px;
  padding: 56px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.trust h2{ color: var(--white); font-size: clamp(26px,3vw,34px); max-width: 16ch; }
.trust-list{ list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 16px; }
.trust-list li{
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14.5px;
  color: rgba(255,255,255,.78);
}
.trust-list svg{ flex-shrink: 0; width: 20px; height: 20px; color: var(--blue-light); margin-top: 2px; }

.trust-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.trust-tile{
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 22px;
}
.trust-tile b{ display: block; font-family: var(--font-display); font-size: 24px; margin-bottom: 4px; }
.trust-tile span{ font-size: 12.5px; color: rgba(255,255,255,.58); }

@media (max-width: 860px){
  .trust{ grid-template-columns: 1fr; padding: 36px 26px; border-radius: 22px; }
}

/* ---------- CTA final ---------- */

.cta-final{
  text-align: center;
}
.cta-final h2{ font-size: clamp(28px,4vw,42px); max-width: 20ch; margin: 0 auto; }
.cta-final p{ color: var(--gray-500); margin: 18px auto 32px; max-width: 46ch; }
.cta-final .hero-cta{ opacity: 1; transform: none; justify-content: center; }

/* ---------- footer ---------- */

footer{
  background: var(--ink);
  color: rgba(255,255,255,.6);
  padding: 64px 0 28px;
}
.footer-top{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand img{ height: 26px; margin-bottom: 16px; }
.footer-brand p{ font-size: 14px; max-width: 34ch; color: rgba(255,255,255,.52); }
.footer-social{ display: flex; gap: 12px; margin-top: 20px; }
.footer-social a{
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .25s ease, background .25s ease;
}
.footer-social a:hover{ border-color: var(--blue-light); background: rgba(3,98,251,.14); }
.footer-social svg{ width: 17px; height: 17px; }

.footer-col h4{ color: var(--white); font-size: 14px; margin-bottom: 18px; }
.footer-col ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer-col a{ font-size: 14px; transition: color .2s ease; }
.footer-col a:hover{ color: var(--white); }

.footer-bottom{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- botón flotante WhatsApp ---------- */

.wa-float{
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -10px var(--blue-glow);
  opacity: 0;
  transform: translateY(10px) scale(.9);
  pointer-events: none;
  transition: transform .3s var(--ease), opacity .3s ease;
}
.wa-float.visible{ opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover{ transform: translateY(-3px) scale(1.05); }
@media (max-width: 560px){
  .wa-float{ width: 50px; height: 50px; right: 16px; bottom: 16px; }
  .wa-float svg{ width: 22px; height: 22px; }
}
.wa-float svg{ width: 26px; height: 26px; }

/* ============================================================
   Página de contacto
   ============================================================ */

.page-hero{
  background: var(--ink);
  color: var(--white);
  padding: 76px 0 64px;
}
.page-hero h1{ font-size: clamp(32px,4.4vw,48px); max-width: 16ch; }
.page-hero p{ margin-top: 16px; color: rgba(255,255,255,.68); max-width: 48ch; font-size: 16.5px; }

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

.contact-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-card h3{ font-size: 21px; margin-bottom: 6px; }
.contact-card > p{ color: var(--gray-500); font-size: 14.5px; margin-bottom: 26px; }

.field{ margin-bottom: 18px; }
.field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea{
  width: 100%;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 14.5px;
  color: var(--ink);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(3,98,251,.14);
  outline: none;
}
.field textarea{ min-height: 120px; resize: vertical; }
.field-row{ display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form-note{
  font-size: 12.5px;
  color: var(--gray-500);
  margin-top: 14px;
  text-align: center;
}

.form-success{
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--blue-pale);
  border: 1px solid rgba(3,98,251,.25);
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.form-success.show{ display: flex; }
.form-success svg{ width: 20px; height: 20px; color: var(--blue); flex-shrink: 0; }

.contact-direct{ display: grid; gap: 16px; margin-bottom: 36px; }
.direct-item{
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .25s ease, transform .3s var(--ease);
}
.direct-item:hover{ border-color: var(--blue); transform: translateX(4px); }
.direct-icon{
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-pale);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.direct-icon svg{ width: 20px; height: 20px; }
.direct-item b{ display: block; font-size: 14.5px; margin-bottom: 3px; }
.direct-item span{ font-size: 13.5px; color: var(--gray-500); }

.hours-table{ width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td{ padding: 9px 0; border-bottom: 1px solid var(--line); }
.hours-table td:first-child{ color: var(--gray-500); }
.hours-table td:last-child{ text-align: right; font-weight: 600; }

.faq{ margin-top: 96px; }
.faq-list{ max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item{
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}
.faq-q{
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
}
.faq-q .plus{
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-q .plus::before, .faq-q .plus::after{
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  transition: transform .3s var(--ease);
}
.faq-q .plus::before{ left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); }
.faq-q .plus::after{ top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); }
.faq-item.open .plus::after{ transform: translateX(-50%) rotate(90deg); opacity: 0; }

.faq-a{
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-a p{
  padding: 0 22px 20px;
  color: var(--gray-500);
  font-size: 14.5px;
  max-width: 62ch;
}

@media (max-width: 900px){
  .contact-grid{ grid-template-columns: 1fr; gap: 44px; }
}

/* ============================================================
   Página de pago
   ============================================================ */

.pay-grid{
  display: grid;
  grid-template-columns: 1fr .8fr;
  gap: 56px;
  align-items: start;
}

.pay-card{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
}
.pay-card h3{ font-size: 21px; margin-bottom: 6px; }
.pay-card > p{ color: var(--gray-500); font-size: 14.5px; margin-bottom: 28px; }

.amount-field{
  margin-bottom: 20px;
}
.amount-field label{
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 8px;
}
.amount-input-wrap{
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 4px 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.amount-input-wrap:focus-within{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(3,98,251,.14);
}
.amount-input-wrap span{
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--gray-500);
}
.amount-input-wrap input{
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  padding: 14px 0;
}
.amount-input-wrap input::-webkit-outer-spin-button,
.amount-input-wrap input::-webkit-inner-spin-button{ margin: 0; }

.pay-status{
  display: none;
  align-items: flex-start;
  gap: 12px;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  margin-bottom: 18px;
}
.pay-status.show{ display: flex; }
.pay-status svg{ width: 20px; height: 20px; flex-shrink: 0; margin-top: 1px; }
.pay-status.pay-success{ background: var(--blue-pale); border: 1px solid rgba(3,98,251,.25); color: var(--ink); }
.pay-status.pay-error{ background: #FDEDEC; border: 1px solid rgba(217,48,37,.25); color: #7A241A; }
.pay-status.pay-error svg{ color: #D93025; }
.pay-status.pay-success svg{ color: var(--blue); }

#paypal-button-container{ margin-top: 4px; min-height: 48px; }
.pay-disabled-note{
  font-size: 13px;
  color: var(--gray-500);
  text-align: center;
  padding: 14px;
  border: 1px dashed var(--line);
  border-radius: 12px;
}

.pay-side{ display: grid; gap: 16px; }

.pay-steps{ list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.pay-steps li{
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 14.5px;
  color: var(--gray-700);
}
.pay-steps b{
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-size: 13px;
}

.pay-note{
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  font-size: 13.5px;
  color: var(--gray-500);
}
.pay-note b{ color: var(--ink); }

@media (max-width: 900px){
  .pay-grid{ grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- responsive nav / secciones ---------- */

@media (max-width: 860px){
  .nav .wrap{ grid-template-columns: auto 1fr auto; height: 72px; }
  .nav-toggle{ display: block; }
  .nav-brand{ justify-self: center; }
  .nav-brand img{ height: 24px; }
  .nav-pills{
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 22px;
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
  }
  .nav-pills.open{ opacity: 1; transform: none; pointer-events: auto; }
  .nav-pills a{ width: 100%; border-radius: 12px; }
  .nav-icons{ gap: 0; }
  .search-panel{ inset: 72px 0 auto 0; }
  .hero .wrap{ grid-template-columns: 1fr; }
  .hero-mark{ max-width: 260px; margin: 0 auto; }
  section{ padding: 72px 0; }
  .section-head{ flex-direction: column; align-items: flex-start; }
  .footer-top{ grid-template-columns: 1fr; }
  .banner-grid{ grid-template-columns: 1fr; }
  .catalog-grid{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px){
  .field-row{ grid-template-columns: 1fr; }
  .wrap{ padding: 0 20px; }
  .catalog-grid{ grid-template-columns: 1fr 1fr; gap: 14px; }
  .product-body{ padding: 14px; }
  .product-actions{ flex-direction: column; }
}

