/* styles.css */
:root {
  /* Fondo Dinámico: Estampado Barber Pole Mejorado (Alto Contraste) */
  --bg-base: #f8fafc;

  /* Gradiente Decorativo Barber Pole con mayor contraste */
  --bg-pattern:
    repeating-linear-gradient(-45deg,
      var(--accent-red),
      var(--accent-red) 25px,
      var(--accent-white) 25px,
      var(--accent-white) 50px,
      var(--accent-blue) 50px,
      var(--accent-blue) 75px,
      var(--accent-white) 75px,
      var(--accent-white) 100px);

  /* Estampado de fondo global - Sutil pero con los colores reales Navy y Rojo */
  --bg-gradient:
    repeating-linear-gradient(-45deg,
      rgba(210, 20, 58, 0.08),
      rgba(210, 20, 58, 0.08) 20px,
      transparent 20px,
      transparent 40px,
      rgba(10, 25, 47, 0.08) 40px,
      rgba(10, 25, 47, 0.08) 60px,
      transparent 60px,
      transparent 80px),
    linear-gradient(to right, #ffffff, #f1f5f9);

  /* Colores Extraídos directamente de la Imagen del Barber Pole */
  --accent-blue: #0A192F;
  /* Navy muy oscuro */
  --accent-red: #D2143A;
  /* Rojo clásico e intenso */
  --accent-white: #FFFFFF;
  --accent-silver: #9BA1AA;
  --accent-silver-dark: #424955;

  --text-dark: #000000;
  --text-muted: #1e293b;

  /* Liquid Glass (Adaptado para EXTREMO Contraste) */
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(10, 25, 47, 0.2);
  --glass-blur: blur(24px);
  --glass-saturate: saturate(200%);
  --glass-shadow: 0 10px 40px rgba(10, 25, 47, 0.15);
  --glass-inner-glow: inset 0 1px 0 rgba(255, 255, 255, 1);

  --accent-gradient: linear-gradient(135deg, var(--accent-red), var(--accent-blue));
  --whatsapp-green: #25D366;

  /* Profundidad Mayor Contraste */
  --shadow-sm: 0 4px 12px rgba(10, 25, 47, 0.1);
  --shadow-md: 0 8px 24px rgba(10, 25, 47, 0.15);
  --shadow-lg: 0 16px 48px rgba(10, 25, 47, 0.2);

  /* Bordes */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;

  /* Fuentes */
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-base);
  background: var(--bg-gradient);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* DECORACIÓN FONDO DIBUJOS */
.decoracion-dibujos {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: -1;
  opacity: 0.1;
  /* Background con dibujos genéricos repetitivos removido a favor de patrón más simple y dibujos puntuales */
}

/* TYPOGRAPHY */
h1,
h2,
h3,
h4,
.headline-cierre {
  font-family: var(--font-display);
  line-height: 1.2;
  color: var(--text-dark);
  font-weight: 800;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 5rem);
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  margin-bottom: 16px;
}

h3 {
  font-size: 1.125rem;
  margin-bottom: 8px;
}

h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

p {
  max-width: 65ch;
  color: var(--text-muted);
  font-weight: 500;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 900;
}

.text-red {
  color: var(--accent-red);
  font-weight: 800;
}

.text-blue {
  color: var(--accent-blue);
  font-weight: 800;
}

.text-center {
  text-align: center;
}

.opacity-70 {
  opacity: 0.8 !important;
}

.opacity-80 {
  opacity: 0.9 !important;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.max-w-lg {
  max-width: 32rem;
}

.p-6 {
  padding: 1.5rem;
}

.block {
  display: block;
}

.w-full {
  width: 100%;
}

/* GLASSMORPHISM SYSTEM (Alta Legibilidad) */
.glass {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur) var(--glass-saturate);
  -webkit-backdrop-filter: var(--glass-blur) var(--glass-saturate);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  box-shadow: var(--glass-shadow), var(--glass-inner-glow);
}

.glass-light {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(210, 20, 58, 0.15);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.glass-heavy {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(40px) saturate(200%);
  -webkit-backdrop-filter: blur(40px) saturate(200%);
  border: 2px solid rgba(10, 25, 47, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.glass-glow {
  border: 2px solid rgba(210, 20, 58, 0.6);
  box-shadow: 0 0 25px rgba(210, 20, 58, 0.3);
}

.pill {
  border-radius: var(--radius-full);
}

/* BARBER POLE CINTA DECORATIVA */
.cinta-barber-pole {
  height: 12px;
  width: 100%;
  background: var(--bg-pattern);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* COMPONENTES */
.nav {
  position: fixed;
  top: 12px;
  left: 0;
  width: 100%;
  height: 64px;
  z-index: 100;
  border-radius: 0;
  border-bottom: 1px solid var(--glass-border);
  transition: opacity 0.3s ease, filter 0.3s ease, background 0.3s ease;
}

.nav nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  height: 100%;
}

.logo,
.logo-mini {
  font-family: var(--font-display);
  font-weight: 900;
  text-decoration: none;
  color: var(--accent-blue);
  font-size: 1.5rem;
  letter-spacing: -1px;
}

.logo span {
  color: var(--accent-red);
}

.btn-nav,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-nav {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  color: var(--accent-white);
  background: var(--accent-blue);
  border: 2px solid var(--accent-blue);
}

.btn-nav:hover {
  background: white;
  color: var(--accent-blue);
}

.btn-primary {
  min-height: 52px;
  padding: 0 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(210, 20, 58, 0.4);
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-large {
  min-height: 56px;
  padding: 0 48px;
  font-size: 1.125rem;
}

.btn-primary:hover {
  transform: scale(1.03);
  box-shadow: 0 6px 30px rgba(10, 25, 47, 0.5);
}

.btn-primary:active {
  transform: scale(0.98);
}

.btn-whatsapp-glow {
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  background: var(--whatsapp-green);
  color: white;
}

.btn-whatsapp-glow:hover {
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.icon-whatsapp,
.icon-wsp-small {
  width: 24px;
  height: 24px;
  margin-left: 8px;
}

/* LAYOUT GLOBAL */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  position: relative;
}

.seccion-padding {
  padding: clamp(64px, 12vh, 120px) 0;
}

/* HERO SECTION */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 80px;
  align-items: center;
}

@media(min-width: 900px) {
  .hero {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
  }
}

.tldr-badge {
  display: inline-block;
  padding: 6px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  border-radius: var(--radius-full);
  color: var(--accent-blue);
  font-weight: 800;
  border: 2px solid var(--accent-blue);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 8px;
  letter-spacing: 0.1em;
  color: var(--accent-red);
}

.subheadline {
  font-size: 1.125rem;
  margin-bottom: 32px;
  font-weight: 600;
  color: #1e293b;
}

.cta-group {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  border: 2px solid rgba(210, 20, 58, 0.3);
}

.avatars {
  display: flex;
}

.avatar {
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  margin-right: -10px;
  border: 2px solid var(--accent-blue);
}

.hero-visual {
  position: relative;
  width: 100%;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

/* 3D POLE ANIMATION */
.barber-pole-3d {
  width: 120px;
  height: 350px;
  position: relative;
  border-radius: 60px;
  overflow: hidden;
  box-shadow: inset -10px 0 20px rgba(0, 0, 0, 0.5), inset 10px 0 20px rgba(255, 255, 255, 0.8), 0 20px 40px rgba(10, 25, 47, 0.4);
  background: white;
  border: 4px solid var(--text-dark);
}

.pole-stripes {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  /* Tamaño patrón 100px ancho total. Con 45deg, su traslación Y matemática exacta para un bucle fluido de las 4 franjas combinadas es de 141.42135px. */
  background: var(--bg-pattern);
  background-size: 141.42px 141.42px;
  animation: poleRotate 1.5s linear infinite;
}

.pole-cap-top,
.pole-cap-bottom {
  position: absolute;
  width: 140px;
  height: 35px;
  background: linear-gradient(to right, var(--accent-silver-dark), var(--accent-silver), var(--accent-white), var(--accent-silver), var(--accent-silver-dark));
  left: -10px;
  border-radius: 12px;
  border: 4px solid var(--accent-blue);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.pole-cap-top {
  top: -12px;
}

.pole-cap-bottom {
  bottom: -12px;
}

.pole-globe {
  position: absolute;
  top: -65px;
  left: 10px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 20%, #ffffff 0%, var(--accent-blue) 70%, #000000 100%);
  box-shadow: inset -10px -10px 20px rgba(0, 0, 0, 0.4), 0 10px 20px rgba(10, 25, 47, 0.6);
  border: 3px solid var(--accent-blue);
  z-index: 3;
}

.pole-globe::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 15px;
  width: 30px;
  height: 15px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  transform: rotate(-30deg);
}

@keyframes poleRotate {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 0 141.42px;
  }
}

/* CARDS FLOTANTES ALREDEDOR DEL POLE */
.floating-card-1,
.floating-card-2 {
  position: absolute;
  background: rgba(255, 255, 255, 0.98);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  border: 2px solid var(--accent-red);
  font-weight: 800;
  color: var(--accent-blue);
  z-index: 5;
  animation: float-card 4s ease-in-out infinite alternate;
}

.floating-card-1 {
  top: 20%;
  right: -20px;
}

.floating-card-2 {
  bottom: 20%;
  left: -30px;
  border-color: var(--accent-blue);
  color: var(--accent-red);
  animation-delay: 1.5s;
}

@keyframes float-card {
  from {
    transform: translateY(0) rotate(-5deg);
  }

  to {
    transform: translateY(-10px) rotate(5deg);
  }
}

/* DIBUJOS DE BARBER POLE FLOTANTES Y ANUDADOS AL FONDO */
.dibujo-pole-1,
.dibujo-pole-2 {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  opacity: 0.20;
}

.dibujo-pole-1 {
  right: -60px;
  top: 15%;
  width: 220px;
  transform: rotate(15deg);
  filter: drop-shadow(0 10px 15px rgba(10, 25, 47, 0.3));
}

.dibujo-pole-2 {
  left: -50px;
  bottom: 10%;
  width: 200px;
  transform: rotate(-25deg);
  filter: drop-shadow(0 10px 15px rgba(210, 20, 58, 0.2));
}

/* GRILLAS Y BENTOS */
.grid-2col {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media(min-width: 768px) {
  .grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
  }
}

.dolor-desc {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 1.1rem;
}

.lista-dolores li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.solucion-col {
  padding: 40px;
  background: var(--accent-red);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-lg);
}

.solucion-col h2 {
  color: white;
}

.solucion-col .text-blue {
  color: white !important;
}

.solucion-desc {
  margin-bottom: 24px;
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.9);
}

.diferenciador {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  background: white;
  color: var(--accent-red);
  font-weight: 800;
}

.bento-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento-item--featured {
    grid-column: span 2;
    grid-row: span 2;
  }
}

@media (min-width: 1024px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bento-item--wide {
    grid-column: span 2;
  }
}

.bento-item {
  background: var(--accent-blue);
  padding: 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--radius-lg);
}

.bento-item:nth-child(even) {
  background: var(--accent-red);
}

.bento-item h3 {
  color: white;
}

.bento-item p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.bento-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg), 0 10px 30px rgba(10, 25, 47, 0.4);
}

.icon-box {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.beneficio {
  margin-top: auto;
  padding-top: 16px;
  font-weight: 800;
  color: white !important;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
}

.flex-wrap-center {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

@media(min-width: 768px) {
  .flex-wrap-center {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }
}

.confianza-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  padding: 24px;
  background: var(--accent-blue);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 4px solid var(--accent-red);
}

.confianza-item h4 {
  color: white;
}

.confianza-item p,
.confianza-item .phrase {
  color: rgba(255, 255, 255, 0.8) !important;
}

.icon-gradiente {
  font-size: 3rem;
  margin-bottom: 16px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
}

.testimonio-card {
  max-width: 600px;
  padding: 32px;
  text-align: center;
  border-radius: var(--radius-lg);
  border: 4px solid white;
  background: var(--accent-blue);
  color: white;
}

.testimonio-card p {
  color: rgba(255, 255, 255, 0.85) !important;
}

.testimonio-card .text-blue {
  color: white !important;
}

.testimonio-card .text-red {
  color: var(--accent-red) !important;
}

/* FAQ */
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item.glass {
  background: var(--accent-blue);
  border: none;
}

.faq-pregunta {
  width: 100%;
  background: transparent;
  border: none;
  color: white;
  padding: 20px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-pregunta .icon-chevron {
  color: white !important;
}

.faq-respuesta {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
  padding: 0 20px;
  opacity: 0;
}

.faq-pregunta[aria-expanded="true"]+.faq-respuesta {
  grid-template-rows: 1fr;
  padding-bottom: 20px;
  opacity: 1;
}

.faq-respuesta p {
  overflow: hidden;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

/* FORMS */
.formulario-tarjeta {
  padding: 40px 32px;
  background: var(--accent-blue) !important;
  border-radius: var(--radius-lg);
  border: 4px solid var(--accent-red) !important;
}

.formulario-tarjeta .text-blue {
  color: white !important;
}

.formulario-tarjeta p {
  color: rgba(255, 255, 255, 0.8) !important;
}

.form-group label {
  font-weight: 800;
  color: white;
  display: block;
  margin-bottom: 8px;
}

.glass-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  color: white;
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-weight: 600;
  color-scheme: dark;
}

.glass-input:focus {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 4px rgba(210, 20, 58, 0.2);
  outline: none;
}

/* CTAs FINAL */
.cta-box {
  padding: 60px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  background: var(--accent-blue);
  color: white;
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  color: white;
}

.cta-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-pattern);
  opacity: 0.1;
  z-index: 0;
}

.cta-box>* {
  position: relative;
  z-index: 1;
}

/* FOOTER */
.footer {
  padding: 60px 0;
  background: var(--accent-blue);
  color: white;
  border-top: 6px solid var(--accent-red);
  margin-top: 60px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 5vw, 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.links-legales a {
  color: white;
  opacity: 0.8;
  font-weight: 600;
}

.copyright {
  font-weight: 600;
  opacity: 0.7;
}

/* HUMAN SCRIBBLES ROJOS Y AZULES (Dibujos tipo sketch) */
.scribble-arrow {
  position: absolute;
  width: 140px;
  top: -10px;
  left: 260px;
  pointer-events: none;
  display: none;
  z-index: 10;
  filter: drop-shadow(2px 4px 6px rgba(0, 0, 0, 0.3));
}

@media(min-width: 768px) {
  .scribble-arrow {
    display: block;
  }
}

.scribble-arrow.revealed .draw-path,
.scribble-arrow.revealed .draw-arrow {
  animation: draw 1s ease forwards;
}

/* SCROLLYTELLING */
[data-scroll] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.8s ease-out;
}

[data-scroll].revealed {
  opacity: 1;
  transform: translateY(0);
}

[data-scroll="fade-blur"] {
  filter: blur(10px);
}

[data-scroll="fade-blur"].revealed {
  filter: blur(0);
}

[data-scroll="scale"] {
  transform: scale(0.95) translateY(20px);
}

[data-scroll="scale"].revealed {
  transform: scale(1) translateY(0);
}

[data-scroll-stagger]>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-scroll-stagger].revealed>* {
  opacity: 1;
  transform: translateY(0);
}

[data-scroll-stagger].revealed>*:nth-child(1) {
  transition-delay: 0s;
}

[data-scroll-stagger].revealed>*:nth-child(2) {
  transition-delay: 0.08s;
}

[data-scroll-stagger].revealed>*:nth-child(3) {
  transition-delay: 0.16s;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}