/* ============================================
   CRISTIAN PÉREZ DE LEÓN - ESTILISTA UNISEX
   Estilos profesionales | La Plata
   ============================================ */

/* ---------- VARIABLES ---------- */
:root {
  --color-bg: #ffffff;
  --color-bg-soft: #f7f5f2;
  --color-bg-card: #ffffff;
  --color-bg-dark: #1a1a1a;
  --color-text: #1a1a1a;
  --color-text-soft: #4a4a4a;
  --color-text-muted: #8a8a8a;
  --color-text-dim: #8a8a8a;
  --color-accent: #ff6b1f;
  --color-accent-soft: #ff8c4a;
  --color-accent-deep: #d94f0a;
  --color-line: #e8e4df;
  --color-line-strong: #d4d0cb;
  --color-white: #ffffff;
  --color-black: #1a1a1a;

  --font-display: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1320px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.12);
  --shadow-accent: 0 8px 24px rgba(255, 107, 31, 0.25);

  --transition: 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-fast: 0.25s ease;
}

/* ---------- RESET ---------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-text);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Selección */
::selection {
  background: #1a1a1a;
  color: #ffffff;
}

/* Scrollbar — default del navegador */

/* ---------- TIPOGRAFÍA ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-text);
  display: inline-block;
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2.5rem;
}

.eyebrow::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1px;
  background: var(--color-text);
}

.section-title {
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  margin-bottom: 1rem;
  font-style: italic;
  color: var(--color-text);
}

.section-subtitle {
  color: var(--color-text-soft);
  font-size: 1.2rem;
  max-width: 640px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

.text-accent {
  color: var(--color-accent);
}

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 1.25rem 0;
  background: #000000;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: padding var(--transition);
}

.navbar.scrolled {
  padding: 0.85rem 0;
  background: #000000;
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.nav-container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  z-index: 1002;
}

.nav-logo img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text .name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: #ffffff;
}

.nav-logo-text .tag {
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 500;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  list-style: none;
}

.nav-menu a {
  font-size: 1rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  transition: color var(--transition-fast);
}

.nav-menu a:hover,
.nav-menu a.active {
  color: #ffffff;
}

.nav-menu a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-accent);
  transition: width var(--transition);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
  width: 100%;
}

.nav-cta {
  background: var(--color-accent);
  color: var(--color-white) !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition);
}

.nav-cta:hover {
  background: #ffffff;
  color: var(--color-text) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 255, 255, 0.2);
}

.nav-cta::after {
  display: none !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  z-index: 1002;
}

.nav-toggle span {
  width: 26px;
  height: 2px;
  background: #ffffff;
  transition: all var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 4rem;
  background: var(--color-bg);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Hero con solo imagen (inicio): overlay clarito + texto negro */
.hero-image-only .hero-bg img {
  filter: brightness(1.05) contrast(0.88) blur(3px);
  transform: scale(1.04); /* evita borde gris por el blur */
}
.hero-image-only .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.3) 45%, rgba(255, 255, 255, 0.5) 100%);
}
.hero-image-only .hero-content {
  justify-content: center !important;
  padding-bottom: 2rem;
  gap: 2.5rem;
}

/* Texto del hero en negro sobre la imagen aclarada */
.hero-image-only .hero-text .eyebrow {
  color: var(--color-text);
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.7);
  padding-left: 0;
}
.hero-image-only .hero-text .eyebrow::before {
  display: none;
}
.hero-image-only .hero-text h1 {
  color: var(--color-text);
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.75), 0 1px 2px rgba(255, 255, 255, 0.5);
}
.hero-image-only .hero-text h1 .italic {
  color: var(--color-accent);
  font-weight: 800;
}
.hero-image-only .hero-text p {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.55rem, 2.5vw, 2.15rem);
  line-height: 1.4;
  max-width: 780px;
  color: var(--color-text);
  text-shadow: 0 1px 10px rgba(255, 255, 255, 0.8), 0 1px 2px rgba(255, 255, 255, 0.6);
}

.hero-floating-actions {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 1rem 1.5rem;
  border-radius: 60px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-line);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 3rem;
}

.hero-text {
  max-width: 880px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 7.5rem);
  line-height: 0.95;
  margin-bottom: 1.75rem;
  letter-spacing: -0.03em;
  color: var(--color-text);
}

.hero h1 .italic {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 600;
  display: block;
}

.hero p {
  font-size: clamp(1.15rem, 1.5vw, 1.35rem);
  color: var(--color-text-soft);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* Marcas en el hero */
.hero-brands {
  width: 100%;
  max-width: 880px;
  margin: 3rem auto 0;
  padding: 2.5rem 2rem;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
}

/* Ocultar el bloque "Se trabaja con marcas profesionales" cuando estás dentro de Promos */
body.view-promos .hero-brands {
  display: none;
}

.section-dark .hero-brands,
.section-dark .hero-brands-label,
.section-dark .hero-brand-name {
  color: var(--color-text);
}
.section-dark .hero-brands {
  background: #ffffff;
}

.hero-brands-label {
  font-size: 0.82rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 700;
  margin-bottom: 1.75rem;
  text-align: center;
}

.hero-brands-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 3rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  transition: transform var(--transition);
  flex: 0 0 auto;
  min-width: 140px;
}

.hero-brand:hover {
  transform: translateY(-4px);
}

.hero-brand img {
  width: auto;
  height: 64px;
  max-width: 100%;
  object-fit: contain;
  transition: transform var(--transition);
}

.hero-brand:hover img {
  transform: scale(1.05);
}

.hero-brand-name {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text);
  font-weight: 700;
}

.hero-brand-name.fallback {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-text);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 1.1rem 2.2rem;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: all var(--transition);
  cursor: pointer;
  letter-spacing: 0.02em;
  font-family: inherit;
}

.btn-primary {
  background: var(--color-black);
  color: var(--color-white);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-accent);
  transform: translateY(-3px);
  box-shadow: var(--shadow-accent);
}

.btn-secondary {
  background: transparent;
  color: var(--color-text);
  border: 1.5px solid var(--color-line-strong);
}

.btn-secondary:hover {
  background: var(--color-text);
  color: var(--color-bg);
  border-color: var(--color-text);
}

.hero-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 2rem auto 0;
  width: 100%;
  max-width: 980px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem 1rem;
  align-items: center;
  justify-items: center;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  text-align: left;
  padding: 0 1.25rem;
  position: relative;
  width: 100%;
  justify-content: flex-start;
}

.hero-info-item + .hero-info-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--color-line);
}

.hero-info-item .icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--color-bg-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 1px solid var(--color-line);
}

.hero-info-item .label {
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.hero-info-item .value {
  font-size: 1.02rem;
  color: var(--color-text);
  font-weight: 600;
  line-height: 1.35;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-scroll-line {
  width: 1px;
  height: 40px;
  background: var(--color-text-muted);
  position: relative;
  overflow: hidden;
}

.hero-scroll-line::after {
  content: '';
  position: absolute;
  top: -40px;
  left: 0;
  width: 100%;
  height: 40px;
  background: var(--color-accent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0% { top: -40px; }
  100% { top: 40px; }
}

/* ============================================
   FEATURED / VENTAJAS
   ============================================ */
.featured {
  background: var(--color-bg);
  position: relative;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--color-bg-card);
  padding: 2.75rem 2.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  text-align: left;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-accent);
  transform: translateY(0);
  transition: height var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  height: 5px;
}

.feature-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--color-bg-soft);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  border: 1px solid var(--color-line);
  flex-shrink: 0;
}

.feature-card h3 {
  font-size: 1.45rem;
  margin: 0;
  color: var(--color-text);
  line-height: 1.2;
}

.feature-card p {
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-card p strong {
  color: var(--color-text);
  font-weight: 800;
}

/* ============================================
   EL SALÓN (3 fotos del local)
   ============================================ */
.salon-section {
  padding: 5rem 0;
  background: var(--color-bg);
}

.salon-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 1rem;
  max-width: 1100px;
  margin: 0 auto;
}

.salon-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 5;
  background: var(--color-bg-soft);
}

/* La foto del medio: más ancha pero misma altura que las otras */
.salon-item:nth-child(2) {
  aspect-ratio: auto;
}

.salon-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--transition);
}

.salon-item:hover img {
  transform: scale(1.05);
}

/* ============================================
   SHOWCASE / PANTALLAZOS (vidriera)
   ============================================ */
.showcase {
  padding: 5rem 0;
  background: var(--color-bg);
}

.showcase .section-header {
  margin-bottom: 3rem;
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.5rem;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* Columna derecha: se estira exactamente al alto de la grande */
.showcase-right {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.showcase-item {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: transparent;
  transition: transform var(--transition);
}

/* La grande define el alto del track con su aspect-ratio */
.showcase-item-large {
  aspect-ratio: 4 / 5;
  align-self: start;
}

/* Las dos de la derecha se reparten el alto en mitades iguales */
.showcase-right .showcase-item {
  flex: 1;
  min-height: 0;
}

.showcase-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.7s var(--transition);
}

/* La última imagen de la derecha (marcas) se muestra completa,
   y su contenedor toma el alto natural de la imagen (sin espacio extra).
   La de arriba absorbe el alto restante para mantener alineación. */
.showcase-right .showcase-item:last-child {
  flex: 0 0 auto;
}
.showcase-right .showcase-item:last-child img {
  object-fit: contain;
  height: auto;
  object-position: center;
}

.showcase-item:hover {
  transform: translateY(-4px);
}

.showcase-item:hover img {
  transform: scale(1.03);
}

/* ============================================
   SERVICIOS / RESEÑAS SLIDER
   ============================================ */
.reviews-section {
  background: #000000;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

.reviews-section::before {
  display: none;
}

.reviews-section .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}
.reviews-section .eyebrow::before {
  background: rgba(255, 255, 255, 0.9);
}
.reviews-section .section-title {
  color: #ffffff;
}
.reviews-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.slider-wrap {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
}

.slider-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.review-slide {
  flex-shrink: 0;
  padding: 0 1rem;
}

.review-card {
  background: rgba(255, 255, 255, 0.04);
  padding: 2.75rem 2.5rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  height: 100%;
  box-shadow: none;
}

.review-stars {
  color: var(--color-accent);
  margin-bottom: 1.1rem;
  font-size: 1.1rem;
  letter-spacing: 0.2em;
}

.review-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  color: #ffffff;
  line-height: 1.55;
  margin-bottom: 1.75rem;
  position: relative;
  padding-left: 2.4rem;
}

.review-text::before {
  content: '\201C';
  position: absolute;
  top: -1.4rem;
  left: -0.3rem;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-accent);
  line-height: 1;
  opacity: 0.7;
}

.review-author {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  font-weight: 700;
}

.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.slider-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  cursor: pointer;
}

.slider-btn:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #000000;
}

.slider-dots {
  display: flex;
  gap: 0.5rem;
}

.slider-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  padding: 0;
}

.slider-dot.active {
  width: 28px;
  border-radius: 5px;
  background: #ffffff;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #000000;
  color: #e8e4df;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.footer-logo .name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  color: #ffffff;
}

.footer-brand p {
  color: rgba(255, 255, 255, 0.65);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 360px;
}

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 1.4rem;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer ul a,
.footer-info-item {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.98rem;
  transition: color var(--transition-fast);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.footer ul a:hover {
  color: var(--color-accent);
}

.footer-info-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 3px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.45);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-socials {
  display: flex;
  gap: 0.75rem;
}

.footer-socials a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: all var(--transition);
}

.footer-socials a:hover {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-3px);
}

/* ============================================
   FLOATING WHATSAPP BUTTON
   ============================================ */
.float-wa {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transition: all var(--transition);
  animation: pulseWA 2s ease-in-out infinite;
}

.float-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.6);
}

@keyframes pulseWA {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.5); }
  50% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ============================================
   PAGE HEADER (subpáginas)
   ============================================ */
.page-header {
  padding: 13rem 0 6rem;
  text-align: center;
  position: relative;
  background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(0, 0, 0, 0.03), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 107, 31, 0.04), transparent 50%);
  pointer-events: none;
}

.page-header-content {
  position: relative;
  z-index: 2;
}

.page-header h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.5rem);
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.page-header h1 .accent {
  color: var(--color-accent);
  font-weight: 700;
}

.breadcrumb {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.breadcrumb a {
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.breadcrumb a:hover {
  color: var(--color-accent);
}

.breadcrumb .sep {
  margin: 0 0.5rem;
  color: var(--color-line);
}

/* ============================================
   SOBRE MÍ
   ============================================ */
.about-block {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 5rem;
  align-items: center;
  margin-bottom: 6rem;
}

.about-block.reverse {
  grid-template-columns: 1.3fr 1fr;
}

.about-block.reverse .about-image {
  order: 2;
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.about-image::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  z-index: 1;
}

.about-content .eyebrow {
  margin-bottom: 1.25rem;
}

.about-content h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-style: italic;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  color: var(--color-text);
}

.about-content p {
  color: var(--color-text-soft);
  margin-bottom: 1.25rem;
  line-height: 1.8;
  font-size: 1.12rem;
}

.about-content p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-line);
}

.about-stat .number {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-style: italic;
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.about-stat .label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* ============================================
   GALERÍA
   ============================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--color-bg-card);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--transition);
}

.gallery-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.6));
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery-item .zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px;
  height: 48px;
  background: var(--color-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transition: all var(--transition);
  z-index: 2;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

.gallery-item:hover::after {
  opacity: 1;
}

.gallery-item:hover .zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.pagination button {
  min-width: 46px;
  height: 46px;
  padding: 0 1rem;
  border-radius: 50%;
  border: 1px solid var(--color-line-strong);
  background: var(--color-bg-card);
  color: var(--color-text-soft);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  cursor: pointer;
  font-family: inherit;
}

.pagination button:hover:not(:disabled) {
  background: var(--color-bg-soft);
  color: var(--color-text);
  border-color: var(--color-text);
}

.pagination button.active {
  background: var(--color-text);
  border-color: var(--color-text);
  color: var(--color-white);
}

.pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  z-index: 2001;
}

.lightbox-close { top: 30px; right: 30px; }
.lightbox-prev { left: 30px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 30px; top: 50%; transform: translateY(-50%); }

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--color-accent);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================
   PRODUCTOS
   ============================================ */
.products-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.search-box {
  position: relative;
  flex: 1;
  max-width: 460px;
}

.search-box input {
  width: 100%;
  padding: 1rem 1.3rem 1rem 3.2rem;
  background: var(--color-bg-card);
  border: 1px solid var(--color-line-strong);
  border-radius: 50px;
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--transition);
}

.search-box input::placeholder {
  color: var(--color-text-muted);
}

.search-box input:focus {
  outline: none;
  border-color: var(--color-text);
  background: var(--color-bg-card);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.search-box svg {
  position: absolute;
  left: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
}

.products-count {
  font-size: 1rem;
  color: var(--color-text-muted);
  letter-spacing: 0.05em;
}

.products-count span {
  color: var(--color-text);
  font-weight: 700;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 3rem;
}

/* Variante para PROMOS: 2 columnas en desktop (2 arriba + 2 abajo) */
.products-grid.is-promos-grid {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* === CENTRADO automático de la última fila — solo desktop >= 1025px === */
/* === BANNER 10% OFF TRANSFERENCIA === */
.transfer-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0e0e0e 0%, #1a1a1a 100%);
  color: #ffffff;
  border-radius: 14px;
  border-top: 4px solid var(--color-accent);
  padding: 1rem 1.4rem;
  margin: 0 0 2rem 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  font-size: 0.95rem;
}
.transfer-banner svg {
  color: var(--color-accent);
  flex-shrink: 0;
}
.transfer-banner strong {
  color: var(--color-accent);
  font-weight: 800;
  letter-spacing: 0.02em;
}
/* Banner grande para el hub de marcas */
.transfer-banner-large {
  font-size: 1.2rem;
  padding: 1.4rem 2rem;
  gap: 1rem;
  margin: 0 0 3rem 0;
  justify-content: center;
  text-align: center;
}
.transfer-banner-large strong {
  font-size: 1.5rem;
}

/* === IGUALAR ALTURA DE TODAS LAS CARDS DE PRODUCTO === */
.products-grid {
  align-items: stretch;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.product-bottom {
  margin-top: auto;
}

@media (min-width: 1025px) {
  /* DESKTOP 4 COL — 1 huérfano → centrarlo realmente (entre col 2 y 3) */
  .products-grid:not(.is-promos-grid) > .product-card:nth-child(4n+1):last-child {
    grid-column: 1 / -1;
    max-width: calc(25% - 1.3125rem);
    justify-self: center;
  }
  /* DESKTOP 4 COL — 2 huérfanos → centrar los dos (cols 2 y 3) */
  .products-grid:not(.is-promos-grid) > .product-card:nth-child(4n+1):nth-last-child(2) {
    grid-column-start: 2;
  }
  /* DESKTOP 4 COL — 3 huérfanos → centrar los tres (cols 1.5 a 3.5 visualmente) */
  .products-grid:not(.is-promos-grid) > .product-card:nth-child(4n+1):nth-last-child(3) {
    grid-column: 1 / 2;
    transform: translateX(50%);
  }
  .products-grid:not(.is-promos-grid) > .product-card:nth-child(4n+1):nth-last-child(3) + .product-card {
    transform: translateX(50%);
  }
  .products-grid:not(.is-promos-grid) > .product-card:nth-child(4n+1):nth-last-child(3) + .product-card + .product-card {
    transform: translateX(50%);
  }

  /* DESKTOP 2 COL (PROMOS) — nº impar → centrar la última fila */
  .products-grid.is-promos-grid > .product-card:nth-child(2n+1):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.875rem);
    justify-self: center;
  }
}

/* ============================================
   GRID 5 productos: 3 arriba + 2 abajo CENTRADO
   Va DESPUÉS del media query desktop para tener prioridad
   y resetea cualquier transform/grid-column-start de las
   reglas anteriores de huérfanos 4n+1.
   ============================================ */
.products-grid[data-count="5"]:not(.is-promos-grid) {
  grid-template-columns: repeat(6, 1fr) !important;
}
.products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(1) { grid-column: 1 / span 2 !important; transform: none !important; max-width: none !important; justify-self: stretch !important; }
.products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(2) { grid-column: 3 / span 2 !important; transform: none !important; max-width: none !important; justify-self: stretch !important; }
.products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(3) { grid-column: 5 / span 2 !important; transform: none !important; max-width: none !important; justify-self: stretch !important; }
.products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(4) { grid-column: 2 / span 2 !important; transform: none !important; max-width: none !important; justify-self: stretch !important; }
.products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(5) { grid-column: 4 / span 2 !important; transform: none !important; max-width: none !important; justify-self: stretch !important; }

.product-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: var(--color-line-strong);
  box-shadow: var(--shadow-lg);
}

.product-image {
  aspect-ratio: 1;
  overflow: hidden;
  background: #ffffff;
  position: relative;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
  transition: transform 0.6s var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

/* PROMO CARD: imagen vertical, fondo neutro, sin recortar */
.product-card.is-promo-card .product-image {
  aspect-ratio: 3 / 4;
  background: #f5f0e8;
}
.product-card.is-promo-card .product-image img {
  object-fit: contain;
  padding: 0.5rem;
}
.product-card.is-promo-card:hover .product-image img {
  transform: scale(1.02);
}

.product-info {
  padding: 1.5rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-info h3 {
  font-family: var(--font-body);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  color: var(--color-text);
}

.product-info p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin-bottom: 0.75rem;
  line-height: 1.55;
  flex: 1;
}

.product-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
}

.product-price {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--color-text);
  font-style: italic;
}

/* Badge "Promo" para tarjetas sin precio (promociones) */
.product-badge {
  display: inline-block;
  background: var(--color-accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.4rem 0.85rem;
  border-radius: 50px;
}

/* Título grande para la página de Promos */
.promos-title-text {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-transform: uppercase;
}

/* Tarjeta de promo: marco sutil naranja arriba */
.product-card.is-promo-card {
  border-top: 3px solid var(--color-accent);
}

/* Botón "Consultar" con verde WhatsApp */
.product-add.product-add-wa {
  background: #25d366;
  color: #fff;
  text-decoration: none;
}
.product-add.product-add-wa:hover {
  background: #1ebd5b;
}

.product-add {
  background: var(--color-black);
  color: white;
  padding: 0.6rem 1.1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition);
  white-space: nowrap;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.product-add:hover {
  background: var(--color-accent);
  transform: scale(1.05);
}

.product-qty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--color-bg-soft);
  padding: 0.3rem;
  border-radius: 50px;
  border: 1px solid var(--color-text);
}

.product-qty button {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-text);
  color: white;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  border: none;
  cursor: pointer;
}

.product-qty button:hover {
  background: var(--color-accent);
}

.product-qty .qty-value {
  font-weight: 700;
  min-width: 22px;
  text-align: center;
  color: var(--color-text);
  font-size: 1rem;
}

.show-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}

.no-results svg {
  margin: 0 auto 1.5rem;
  color: var(--color-text-muted);
}

/* ============================================
   HUB DE MARCAS (productos.html)
   ============================================ */
.brands-hub {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
  margin: 2rem 0 4rem;
}

/* Si la última card queda sola en su fila (cantidad impar), centrarla.
   Solo aplica cuando el grid es de 2 columnas (desktop/tablet >= 700px). */
@media (min-width: 700px) {
  .brands-hub > .brand-card:nth-child(2n+1):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.875rem);
    justify-self: center;
  }
}

.brand-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-line);
  background: #ffffff;
  text-decoration: none;
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}

.brand-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-text);
}

.brand-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  overflow: hidden;
}

.brand-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s var(--transition);
}

/* L'Oréal: el logo es muy ancho, achicar para que se vea completo */
.brand-card[data-brand="loreal"] .brand-card-image {
  padding: 1.5rem 2rem;
  background: #ffffff;
}
.brand-card[data-brand="loreal"] .brand-card-image img {
  width: auto;
  height: auto;
  max-width: 75%;
  max-height: 75%;
  object-fit: contain;
  margin: auto;
}

.brand-card:hover .brand-card-image img {
  transform: scale(1.05);
}

.brand-card-content {
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1.75rem 1.75rem;
  background: #ffffff;
  border-top: 1px solid var(--color-line);
}

.brand-card-tag {
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
}

.brand-card-name {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.1;
  color: var(--color-text);
}

.brand-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  line-height: 1.5;
  max-width: 420px;
  margin-bottom: 1rem;
}

.brand-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.brand-card-cta svg {
  width: 15px;
  height: 15px;
  transition: transform var(--transition);
}

.brand-card:hover .brand-card-cta svg {
  transform: translateX(6px);
}

.brand-card.is-promo .brand-card-image {
  background: linear-gradient(135deg, #fff7f0 0%, #ffe4d0 100%);
}

/* Cuando una brand-card aparece en section-dark mantener el card blanco */
.section-dark .brand-card,
.section-dark .brand-card-content,
.section-dark .brand-card-image {
  background: #ffffff;
  color: var(--color-text);
}
.section-dark .brand-card-name,
.section-dark .brand-card-tag {
  color: var(--color-text);
}
.section-dark .brand-card-tag {
  color: var(--color-text-muted);
}
.section-dark .brand-card-desc {
  color: var(--color-text-soft);
}

/* Líneas dentro de una marca */
.lines-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.5rem;
  margin: 2rem 0 4rem;
}

.lines-grid > .line-card {
  grid-column: span 2;
}

/* Cuando hay 8 cards (8 líneas Hairssime): las últimas 2 quedan centradas */
.lines-grid > .line-card:nth-child(7):nth-last-child(2) {
  grid-column: 2 / span 2;
}
.lines-grid > .line-card:nth-child(8):last-child {
  grid-column: 4 / span 2;
}

.line-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}

.line-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-line-strong);
}

.line-card-image {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.line-card-image img {
  width: auto;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s var(--transition);
}

.line-card:hover .line-card-image img {
  transform: scale(1.05);
}

.line-card-body {
  padding: 1.5rem 1.4rem;
}

.line-card-body h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}

.line-card-body p {
  color: var(--color-text-soft);
  font-size: 0.98rem;
  line-height: 1.55;
}

/* Sección de línea dentro de una marca: agrupa productos bajo el título de la línea */
.line-section {
  margin-bottom: 4rem;
}
.line-section:last-of-type {
  margin-bottom: 2rem;
}
.line-section-header {
  margin: 2rem 0 1.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--color-line);
}
.line-section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--color-text);
  line-height: 1.15;
  margin: 0 0 0.35rem;
}
.line-section-title::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--color-accent);
  vertical-align: middle;
  margin-right: 0.85rem;
  transform: translateY(-3px);
}
.line-section-desc {
  color: var(--color-text-soft);
  font-size: 0.98rem;
  margin: 0;
  padding-left: 41px; /* alinea con el inicio del título */
}

.line-section-empty {
  background: var(--color-bg-soft);
  border: 1px dashed var(--color-line-strong);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.95rem;
  font-style: italic;
}

/* ============================================
   CUADRITO DE PRESENTACIÓN DE LÍNEA
   Imagen a la izquierda + título y descripción a la derecha
   ============================================ */
.line-presentation {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 2.25rem;
  align-items: center;
  background: var(--color-bg-soft);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  margin: 2rem 0 1.75rem;
  overflow: hidden;
  position: relative;
}
.line-presentation::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-accent);
}
.line-presentation-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.line-presentation-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.line-presentation-image.no-image {
  background: linear-gradient(135deg, var(--color-bg-soft), var(--color-line));
}
.line-presentation-content {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.line-presentation-eyebrow {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
}
.line-presentation-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  color: var(--color-text);
  line-height: 1.15;
  margin: 0;
}
.line-presentation-desc {
  color: var(--color-text-soft);
  font-size: 1.15rem;
  line-height: 1.55;
  margin: 0.25rem 0 0;
}

/* Header de sección de marca/línea */
.brand-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-line);
  flex-wrap: wrap;
}

.brand-section-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--color-text);
  line-height: 1.1;
}

.brand-section-subtitle {
  font-size: 1rem;
  color: var(--color-text-muted);
  margin-top: 0.3rem;
}

.brand-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
  font-family: inherit;
}

.brand-back-link:hover {
  color: var(--color-text);
}

/* Mensaje "Catálogo en preparación" */
.catalog-empty {
  text-align: center;
  padding: 5rem 2rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  border: 1px dashed var(--color-line-strong);
  margin: 2rem 0;
}

.catalog-empty-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: var(--color-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  border: 1px solid var(--color-line);
}

.catalog-empty h3 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.85rem;
  margin-bottom: 0.6rem;
  color: var(--color-text);
}

.catalog-empty p {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 480px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

/* Cross-promo: otras marcas al final de una marca */
.cross-promo {
  margin: 4rem 0 0;
  padding: 3rem 0 0;
  border-top: 1px solid var(--color-line);
}

.cross-promo-label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  font-weight: 600;
  margin-bottom: 2rem;
}

.cross-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}

/* Si solo hay 2 cards (cuando sacamos L'Oréal del catálogo) → 2 columnas centradas */
.cross-promo-grid:has(.brand-card:nth-child(2):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 620px;
}

/* Si solo hay 1 card → centrada en columna media */
.cross-promo-grid:has(.brand-card:only-child) {
  grid-template-columns: minmax(0, 320px);
  justify-content: center;
}

.cross-promo-grid .brand-card-image {
  aspect-ratio: 16 / 9;
  padding: 1.25rem 1.75rem;
  background: #ffffff;
}

.cross-promo-grid .brand-card-image img {
  width: auto;
  height: auto;
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
  margin: auto;
}

/* La card de PROMOS en cross-promo: imagen llena, sin padding (era así originalmente) */
.cross-promo-grid .brand-card[data-brand="promos"] .brand-card-image {
  padding: 0;
  background: transparent;
}
.cross-promo-grid .brand-card[data-brand="promos"] .brand-card-image img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

.cross-promo-grid .brand-card-name,
.cross-promo-grid .brand-card-tag,
.cross-promo-grid .brand-card-desc {
  display: none;
}

.cross-promo-grid .brand-card-content {
  padding: 0.9rem 1.25rem 1.1rem;
  align-items: center;
}

/* ---------- WHATSAPP FLOTANTE ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  z-index: 1001;
  transition: all var(--transition);
  text-decoration: none;
  animation: whatsappPulse 2.2s ease-in-out infinite;
}

.whatsapp-float:hover {
  background: #1ebe57;
  transform: scale(1.08) translateY(-4px);
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55);
}

@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.4); }
  70% { box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0); }
}

/* ---------- CARRITO FLOTANTE ---------- */
.cart-fab {
  position: fixed;
  bottom: 100px;
  right: 24px;
  background: var(--color-accent);
  color: white;
  padding: 0.85rem 1.4rem;
  border-radius: 50px;
  border: none;
  font-weight: 600;
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--shadow-accent);
  z-index: 998;
  cursor: pointer;
  transition: all var(--transition);
  transform: translateY(120px);
  opacity: 0;
}

.cart-fab.visible {
  transform: translateY(0);
  opacity: 1;
}

.cart-fab:hover {
  background: var(--color-accent-deep);
  transform: translateY(-4px);
  color: white;
}

.cart-count {
  background: white;
  color: var(--color-accent);
  font-size: 0.75rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* ---------- MODAL DE COMPRA ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
  animation: fadeIn 0.3s;
}

.modal {
  background: var(--color-bg-soft);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--color-line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 107, 31, 0.15);
  animation: slideUp 0.4s var(--transition);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-header {
  padding: 1.75rem 2rem;
  border-bottom: 1px solid var(--color-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: var(--color-bg-soft);
  z-index: 1;
}

.modal-header h3 {
  font-size: 1.5rem;
  font-style: italic;
  color: var(--color-text);
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-soft);
  transition: all var(--transition);
}

.modal-close:hover {
  background: var(--color-accent);
  color: white;
}

.modal-body {
  padding: 1.5rem 2rem;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.cart-item {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 1rem;
  align-items: center;
  padding: 0.85rem;
  background: var(--color-bg-card);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.cart-item-info h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cart-item-info .meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.cart-item-info .meta b {
  color: var(--color-accent);
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.5rem;
}

.cart-item-price {
  font-weight: 700;
  color: var(--color-text);
  font-size: 0.95rem;
}

.cart-item-remove {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.cart-item-remove:hover {
  color: var(--color-accent);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  border-top: 1px solid var(--color-line);
  border-bottom: 1px solid var(--color-line);
  margin-bottom: 1.5rem;
}

.cart-total .label {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.cart-total .value {
  font-family: var(--font-display);
  font-size: 2rem;
  font-style: italic;
  color: var(--color-accent);
  font-weight: 600;
}

.checkout-guide {
  background: var(--color-bg-card);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-line);
  margin-bottom: 1.5rem;
}

.checkout-guide h4 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.checkout-guide ol {
  list-style: none;
  counter-reset: step;
}

.checkout-guide li {
  position: relative;
  padding-left: 2.5rem;
  margin-bottom: 1rem;
  color: var(--color-text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  counter-increment: step;
}

.checkout-guide li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 28px;
  height: 28px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  font-family: var(--font-body);
}

.checkout-guide li:last-child {
  margin-bottom: 0;
}

.alias-box {
  background: var(--color-bg);
  padding: 0.6rem 0.85rem;
  border-radius: 6px;
  border: 1px dashed var(--color-accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--color-accent);
  margin-top: 0.4rem;
  word-break: break-all;
  display: inline-block;
}

.modal-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.modal-actions .btn {
  flex: 1;
  justify-content: center;
  min-width: 200px;
}

.empty-cart {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--color-text-muted);
}

.empty-cart svg {
  margin: 0 auto 1.25rem;
  color: var(--color-text-muted);
}

/* ============================================
   ANIMATIONS - REVEAL
   ============================================ */
.reveal {
  opacity: 1;
  transform: none;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.reveal-delay-1,
.reveal-delay-2,
.reveal-delay-3 { transition-delay: 0s; }

/* ---------- Checkout: formulario nombre ---------- */
.customer-form {
  margin: 1.5rem 0 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.customer-form label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.customer-form input {
  padding: 0.85rem 1.1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.customer-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(255, 107, 31, 0.15);
}
.customer-form input.input-error {
  border-color: #e94f4f;
  animation: shake 0.4s;
}
.customer-form .form-help {
  font-size: 0.78rem;
  color: var(--color-text-dim);
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

/* Spinner del botón "Procesando..." */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin-right: 0.4rem;
  vertical-align: -2px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Pantalla de pedido confirmado ---------- */
.order-success {
  text-align: center;
  padding: 0.5rem 0;
}
.success-icon {
  width: 86px;
  height: 86px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: rgba(255, 107, 31, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  animation: popIn 0.5s var(--transition);
}
@keyframes popIn {
  from { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.08); }
  to { transform: scale(1); opacity: 1; }
}
.success-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.85rem;
  color: var(--color-text);
  margin-bottom: 0.4rem;
}
.success-sub {
  color: var(--color-text-dim);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
}
.order-id-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 1.2rem 1rem;
  margin: 0 auto 1.25rem;
  max-width: 320px;
  border: 2px dashed var(--color-accent);
  border-radius: var(--radius);
  background: rgba(255, 107, 31, 0.06);
  position: relative;
}
.order-id-label {
  font-size: 0.7rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.order-id-value {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 2.1rem;
  letter-spacing: 6px;
  color: var(--color-accent);
  font-weight: 700;
}
.copy-id-btn {
  margin-top: 0.5rem;
  padding: 0.45rem 1rem;
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.copy-id-btn:hover {
  background: var(--color-accent);
  color: #fff;
}
.order-summary-box {
  margin: 0 auto 1.5rem;
  max-width: 380px;
  padding: 1rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  padding: 0.45rem 0;
  font-size: 0.92rem;
}
.order-summary-row + .order-summary-row {
  border-top: 1px solid var(--color-line);
}
.order-summary-row span {
  color: var(--color-text-dim);
}
.order-summary-row strong {
  color: var(--color-text);
}
.order-success .checkout-guide {
  text-align: left;
}

/* ---------- Selector de método de pago ---------- */
.payment-methods {
  margin: 1.5rem 0 0.5rem;
}
.payment-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-text-dim);
  display: block;
  margin-bottom: 0.6rem;
}
.payment-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.payment-option {
  cursor: pointer;
  position: relative;
}
.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.payment-option .payment-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 0.9rem 0.6rem;
  background: var(--color-bg);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius);
  transition: all 0.2s var(--transition);
  position: relative;
  height: 100%;
}
.payment-option:hover .payment-card {
  border-color: rgba(255, 107, 31, 0.4);
  background: rgba(255, 107, 31, 0.04);
}
.payment-option.is-selected .payment-card {
  border-color: var(--color-accent);
  background: rgba(255, 107, 31, 0.1);
  box-shadow: 0 0 0 2px rgba(255, 107, 31, 0.15);
}
.payment-option .payment-icon {
  color: var(--color-text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.payment-option.is-selected .payment-icon {
  color: var(--color-accent);
}
.payment-option .payment-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--color-text);
}
.payment-option .payment-hint {
  font-size: 0.7rem;
  color: var(--color-text-dim);
  line-height: 1.3;
}
.payment-option .payment-badge {
  position: absolute;
  top: -8px;
  right: 50%;
  transform: translateX(50%);
  background: var(--color-accent);
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(255, 107, 31, 0.4);
}

/* Total con descuento */
.cart-total .total-strike {
  text-decoration: line-through;
  color: var(--color-text-dim);
  font-size: 0.85em;
  margin-right: 0.5rem;
  font-weight: 400;
}
.cart-discount-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.4rem;
  padding: 0.5rem 0.8rem;
  background: rgba(255, 107, 31, 0.08);
  border-left: 3px solid var(--color-accent);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 600;
}
.cart-discount-note .discount-amount {
  font-family: ui-monospace, monospace;
}

@media (max-width: 480px) {
  .payment-options {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .payment-option .payment-card {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0.8rem 1rem;
    gap: 0.8rem;
  }
  .payment-option .payment-name {
    flex: 1;
  }
  .payment-option .payment-badge {
    right: 12px;
    transform: none;
  }
}

/* ============================================
   UTILITIES — SECCIONES ALTERNADAS BLANCO/NEGRO
   ============================================ */
.section-dark {
  background: var(--color-bg-dark);
  color: #f0ece6;
}
.section-dark .section-title,
.section-dark .feature-card h3,
.section-dark h2,
.section-dark h3 {
  color: #ffffff;
}
.section-dark .section-subtitle,
.section-dark .feature-card p,
.section-dark p {
  color: rgba(255, 255, 255, 0.7);
}
.section-dark .feature-card p strong,
.section-dark p strong {
  color: #ffffff;
  font-weight: 800;
}
.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}
.section-dark .eyebrow::before {
  background: rgba(255, 255, 255, 0.9);
}
.section-dark .feature-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
}
.section-dark .feature-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}
.section-dark .feature-card::before {
  background: var(--color-accent);
}
.section-dark .feature-icon {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.section-dark .about-content h2,
.section-dark .about-stat .number {
  color: #ffffff;
}
.section-dark .about-content p {
  color: rgba(255, 255, 255, 0.75);
}
.section-dark .about-stat .label {
  color: rgba(255, 255, 255, 0.55);
}
.section-dark .about-stats {
  border-top-color: rgba(255, 255, 255, 0.12);
}
.section-dark .about-image::before {
  border-color: var(--color-accent);
}
.section-dark .btn-primary {
  background: var(--color-accent);
  color: #ffffff;
}
.section-dark .btn-primary:hover {
  background: #ffffff;
  color: var(--color-text);
}
.section-dark .btn-secondary {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}
.section-dark .btn-secondary:hover {
  background: #ffffff;
  color: var(--color-text);
}

.section-light {
  background: var(--color-bg);
  color: var(--color-text);
}

/* Hero de productos con marcas en fondo */
.page-header.section-dark {
  background: var(--color-bg-dark);
}
.page-header.section-dark h1,
.page-header.section-dark .section-subtitle {
  color: #ffffff;
}
.page-header.section-dark .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}
.page-header.section-dark .eyebrow {
  color: rgba(255, 255, 255, 0.9);
}
.page-header.section-dark .eyebrow::before {
  background: rgba(255, 255, 255, 0.9);
}
.page-header.section-dark .breadcrumb,
.page-header.section-dark .breadcrumb a {
  color: rgba(255, 255, 255, 0.6);
}
.page-header.section-dark .breadcrumb a:hover {
  color: var(--color-accent);
}
.page-header.section-dark::before {
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 107, 31, 0.08), transparent 50%),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, 0.05), transparent 50%);
}

.page-header-brands {
  position: relative;
  overflow: hidden;
}
.page-header-brands-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  pointer-events: none;
  padding: 0 5%;
}
.page-header-brands-bg img {
  max-width: 100%;
  max-height: 90px;
  width: auto;
  object-fit: contain;
  filter: invert(1) brightness(2) opacity(0.06);
  mix-blend-mode: screen;
}
.page-header-brands .container {
  position: relative;
  z-index: 2;
}

/* Hero con imagen de fondo (galeria, sobremi) */
.page-header-photo {
  position: relative;
  overflow: hidden;
}
.page-header-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--hero-bg-image);
  background-size: cover;
  background-position: center;
  filter: brightness(0.5) saturate(1.05);
}
.page-header-photo > .container {
  position: relative;
  z-index: 2;
}
.page-header.section-dark.page-header-photo::before {
  background:
    linear-gradient(180deg, rgba(26, 26, 26, 0.45) 0%, rgba(26, 26, 26, 0.9) 100%);
  z-index: 1;
}

@media (max-width: 768px) {
  .page-header-brands-bg img { max-height: 50px; }
}

/* Toast */
.toast {
  position: fixed;
  top: 100px;
  right: 24px;
  background: var(--color-accent);
  color: white;
  padding: 0.85rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-accent);
  z-index: 3000;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transform: translateX(400px);
  transition: transform 0.4s var(--transition);
}

.toast.show {
  transform: translateX(0);
}

/* ============================================
   RESPONSIVE - TABLET
   ============================================ */
@media (max-width: 1024px) {
  .hero-info { grid-template-columns: repeat(3, 1fr); }
  .featured-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }

  /* TABLET: promos siguen en 2 columnas (2 arriba + 2 abajo) */
  .products-grid.is-promos-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .products-grid.is-promos-grid > .product-card:nth-child(3n+1):last-child,
  .products-grid.is-promos-grid > .product-card:nth-child(3n+1):nth-last-child(2),
  .products-grid.is-promos-grid > .product-card:nth-child(3n+1):nth-last-child(2) + .product-card {
    grid-column: auto;
    transform: none;
  }
  .products-grid.is-promos-grid > .product-card:nth-child(2n+1):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.875rem);
    justify-self: center;
  }

  /* TABLET: desactivar el layout especial de 5 productos (6 cols) */
  .products-grid[data-count="5"]:not(.is-promos-grid) {
    grid-template-columns: repeat(3, 1fr) !important;
  }
  .products-grid[data-count="5"]:not(.is-promos-grid) > .product-card {
    grid-column: auto !important;
    transform: none !important;
  }
  /* TABLET 3 COL: cuando hay 5 productos, los 2 últimos quedan huérfanos
     → empujar el 4° a la col 1 con translate para centrarlos como par */
  .products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(4) {
    grid-column: 1 / 2 !important;
    transform: translateX(50%) !important;
  }
  .products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(5) {
    grid-column: 2 / 3 !important;
    transform: translateX(50%) !important;
  }

  /* TABLET 3 COL — 1 huérfano → centrar en col 2 */
  .products-grid > .product-card:nth-child(3n+1):last-child {
    grid-column: 2 / 3;
  }
  /* TABLET 3 COL — 2 huérfanos → centrar (mismo truco translate) */
  .products-grid > .product-card:nth-child(3n+1):nth-last-child(2) {
    grid-column: 1 / 2;
    transform: translateX(50%);
  }
  .products-grid > .product-card:nth-child(3n+1):nth-last-child(2) + .product-card {
    grid-column: 2 / 3;
    transform: translateX(50%);
  }
  /* Reset reglas desktop 4-col que no aplican acá */
  .products-grid:not(.is-promos-grid) > .product-card:nth-child(4n+1):nth-last-child(2) {
    grid-column-start: auto;
    transform: none;
  }

  /* Cuadrito de presentación — tablet: imagen un poco más chica */
  .line-presentation {
    grid-template-columns: 260px 1fr;
    gap: 1.5rem;
    padding: 1.25rem;
  }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .about-block, .about-block.reverse {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .about-block.reverse .about-image { order: -1; }
  section { padding: 5rem 0; }
  .lines-grid { grid-template-columns: repeat(4, 1fr); }
  .lines-grid > .line-card { grid-column: span 2; }
  .lines-grid > .line-card:nth-child(7):nth-last-child(2),
  .lines-grid > .line-card:nth-child(8):last-child {
    grid-column: span 2;
  }
  .brands-hub { grid-template-columns: 1fr; }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  html { scroll-padding-top: 70px; }

  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    height: 100svh;
    background: #0e0e0e;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    transition: right 0.4s var(--transition);
    padding: 5rem 2rem 2rem;
    z-index: 1001;
  }

  .nav-menu.active {
    right: 0;
  }

  .nav-menu li {
    width: auto;
  }

  .nav-menu a {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-style: italic;
    color: #ffffff;
    display: block;
    text-align: center;
    padding: 0.5rem 1rem;
  }
  .nav-menu a.active {
    color: var(--color-accent);
  }
  .nav-menu a::after { display: none; }

  .nav-menu .nav-cta {
    font-family: var(--font-body);
    font-size: 1rem !important;
    font-style: normal !important;
    background: var(--color-accent);
    color: #ffffff !important;
    padding: 0.85rem 2rem;
    border-radius: 50px;
    margin-top: 1rem;
    display: inline-flex !important;
  }

  .navbar { padding: 1rem 0; }
  .navbar.scrolled { padding: 0.7rem 0; }

  .nav-logo img { width: 38px; height: 38px; }
  .nav-logo-text .name { font-size: 1rem; }
  .nav-logo-text .tag { font-size: 0.55rem; }

  /* Hero */
  .hero {
    min-height: 100svh;
    min-height: 100vh;
    padding-top: 70px;
    padding-bottom: 2rem;
    text-align: center;
  }
  .hero .container {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero-content {
    min-height: calc(100svh - 70px);
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-text { margin: 0 auto; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-info {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin: 1.5rem auto 0;
    padding: 1.5rem 1rem;
  }
  .hero-info-item {
    justify-content: flex-start;
    text-align: left;
    padding: 0.6rem 0.5rem;
  }
  .hero-info-item + .hero-info-item::before {
    left: 0.5rem;
    right: 0.5rem;
    top: 0;
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .hero-scroll { display: none; }

  /* ====== MOBILE: HERO REDISEÑADO ====== */
  /* 1) Fondo: imagen alargada para llenar el alto del hero, mostrando bien */
  .hero-image-only .hero-bg img {
    filter: brightness(0.85);
    transform: none;
    object-fit: cover;
    object-position: 88% center;
    width: 100%;
    height: 100%;
  }
  .hero-image-only .hero-bg {
    background: #0e0e0e;
  }
  /* Overlay sutil oscuro para legibilidad del texto */
  .hero-image-only .hero-bg::after {
    background: linear-gradient(180deg, rgba(0,0,0,0.45) 0%, rgba(0,0,0,0.55) 50%, rgba(0,0,0,0.7) 100%);
  }

  /* 2) Sacar la rayita del eyebrow en el hero mobile */
  .hero-image-only .hero-text .eyebrow::before {
    display: none;
  }

  /* 3) Eyebrow blanco, centrado, sin la rayita */
  .hero-image-only .hero-text .eyebrow {
    color: #ffffff;
    text-shadow: 0 1px 8px rgba(0,0,0,0.6);
    letter-spacing: 0.18em;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: block;
    padding-left: 0;
    text-align: center;
  }

  /* 4) H1 grande, blanco con contorno, MAYÚSCULAS, fuera del recuadro */
  .hero-image-only .hero-text h1 {
    color: #ffffff;
    font-weight: 800;
    text-shadow: 0 2px 14px rgba(0,0,0,0.7);
    -webkit-text-stroke: 0.5px #ffffff;
    font-size: clamp(2.2rem, 9vw, 2.8rem);
    line-height: 1.1;
    margin-bottom: 2.5rem;
  }
  .hero-image-only .hero-text h1 .italic {
    color: var(--color-accent);
    font-weight: 800;
    -webkit-text-stroke: 0.5px var(--color-accent);
  }

  /* 5) RECUADRO NEGRO con borde naranja arriba (estilo "Por qué elegirme") */
  .hero-image-only .hero-text p {
    background: #0e0e0e;
    color: #ffffff;
    text-shadow: none;
    border-radius: 14px;
    border-top: 4px solid var(--color-accent);
    padding: 1.4rem 1.2rem;
    font-style: italic;
    font-weight: 600;
    font-size: clamp(1rem, 4vw, 1.15rem);
    line-height: 1.5;
    box-shadow: 0 12px 36px rgba(0,0,0,0.4);
    max-width: 100%;
    margin: 0 0.5rem;
  }

  /* Botones con espacio extra */
  .hero-image-only .hero-actions {
    margin-top: 1.5rem;
  }

  /* Sections */
  section { padding: 4rem 0; }
  .section-header { margin-bottom: 2.5rem; }

  /* Featured-grid */
  .featured-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Showcase: en mobile stack vertical */
  .showcase { padding: 3.5rem 0; }
  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
  .showcase-right {
    flex-direction: column;
    gap: 0.4rem;
  }
  .showcase-item-large,
  .showcase-right .showcase-item {
    aspect-ratio: 4 / 5;
    flex: unset;
    min-height: unset;
    height: auto;
  }
  /* En mobile, la última imagen (marcas) toma su alto natural sin espacio extra */
  .showcase-right .showcase-item:last-child {
    aspect-ratio: auto;
  }
  .showcase-right .showcase-item:last-child img {
    height: auto;
  }

  /* El salón: stack vertical en mobile */
  .salon-section { padding: 3.5rem 0; }
  .salon-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  /* Reviews slider */
  .review-card { padding: 2rem 1.5rem; }
  .review-text { font-size: 1rem; }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-brand { align-items: center; }
  .footer-brand p { text-align: center; }
  .footer h4 { text-align: center; }
  .footer ul { align-items: center; }
  .footer-info-item { justify-content: center; text-align: left; }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  .footer-socials { justify-content: center; }

  /* Float WA */
  .float-wa { width: 54px; height: 54px; bottom: 20px; right: 20px; }

  /* Page Header */
  .page-header {
    padding: 6rem 0 3rem;
    min-height: auto;
    display: block;
  }
  .page-header-content {
    padding-top: 2rem;
  }

  /* Cross-promo en mobile: 2 columnas, más grande, CON nombres */
  .cross-promo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .cross-promo-grid .brand-card-image {
    aspect-ratio: 4 / 3;
  }
  .cross-promo-grid .brand-card-name {
    display: block;
    font-size: 1.05rem;
    text-align: center;
    margin: 0 0 0.4rem;
  }
  .cross-promo-grid .brand-card-content {
    padding: 0.9rem 0.75rem 1rem;
    align-items: center;
    text-align: center;
  }
  .cross-promo-grid .brand-card-cta {
    font-size: 0.78rem;
  }
  /* Si la última tarjeta queda sola (3 items en grid de 2 col),
     centrarla ocupando ambas columnas con ancho controlado */
  .cross-promo-grid .brand-card:nth-child(3):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.5rem);
    justify-self: center;
  }

  /* Galería */
  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
  .lightbox-close { top: 15px; right: 15px; }

  /* Products */
  .products-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
  .search-box { max-width: 100%; }

  /* GRID: 1 columna, centrada */
  .products-grid,
  .products-grid.is-promos-grid,
  .products-grid[data-count="5"]:not(.is-promos-grid) {
    grid-template-columns: 1fr !important;
    gap: 1.25rem;
    max-width: 440px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Reset agresivo para los 5 productos: ninguna regla de span debe sobrevivir */
  .products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(1),
  .products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(2),
  .products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(3),
  .products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(4),
  .products-grid[data-count="5"]:not(.is-promos-grid) > .product-card:nth-child(5) {
    grid-column: auto !important;
    transform: none !important;
    max-width: none !important;
    justify-self: stretch !important;
  }

  /*
   * RESET CRÍTICO: las reglas de centrado de tablet usan nth-child con
   * mayor especificidad, así que se cuelan en mobile. Las forzamos a
   * neutral con !important para que ninguna card se vaya de la pantalla.
   */
  .products-grid > .product-card:nth-child(n),
  .products-grid > .product-card:nth-child(n) + .product-card {
    grid-column: auto !important;
    transform: none !important;
    max-width: none !important;
    margin: 0 !important;
    width: auto !important;
    justify-self: stretch !important;
  }

  /* MOBILE — Card VERTICAL: imagen arriba, info abajo */
  .products-grid:not(.is-promos-grid) > .product-card {
    flex-direction: column !important;
    align-items: stretch;
  }
  .products-grid:not(.is-promos-grid) > .product-card .product-image {
    aspect-ratio: 3 / 2 !important;
    width: 100% !important;
    min-width: unset !important;
    flex-shrink: unset !important;
  }
  .products-grid:not(.is-promos-grid) > .product-card .product-info {
    padding: 0.85rem 1.1rem 1rem;
    min-width: 0;
  }
  /* Descripción pegada al precio: sin flex-grow, margen reducido */
  .products-grid:not(.is-promos-grid) > .product-card .product-info p {
    flex: none;
    margin-bottom: 0.55rem;
  }
  /* Precio y botón compactos */
  .products-grid:not(.is-promos-grid) > .product-card .product-bottom {
    margin-top: 0;
  }

  /* MOBILE — PROMOS: columna vertical, centrada */
  .products-grid.is-promos-grid > .product-card {
    grid-column: auto !important;
    transform: none !important;
    max-width: 100% !important;
    width: 100%;
    margin: 0 !important;
    justify-self: stretch;
  }
  /* La imagen de las promos en mobile: más alta */
  .products-grid.is-promos-grid .product-card.is-promo-card .product-image {
    aspect-ratio: 4 / 5;
  }
  .lines-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    width: 100%;
    overflow: hidden;
  }
  .lines-grid > .line-card,
  .lines-grid > .line-card:nth-child(7):nth-last-child(2),
  .lines-grid > .line-card:nth-child(8):last-child {
    grid-column: auto;
    max-width: none;
    margin: 0;
    width: auto;
  }
  .lines-grid > .line-card:nth-child(9):last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.375rem);
    justify-self: center;
  }
  .line-card-image {
    padding: 1rem;
  }
  .line-card-body {
    padding: 1rem 0.85rem 1.1rem;
  }
  .line-card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 0.3rem;
  }
  .line-card-body p {
    font-size: 0.82rem;
    line-height: 1.4;
  }

  /* Sección de productos por línea en mobile */
  .line-section { margin-bottom: 2.5rem; }
  .line-section-header { margin: 1rem 0 1.25rem; }
  .line-section-title { font-size: 1.45rem; }
  .line-section-title::before { width: 20px; margin-right: 0.6rem; }
  .line-section-desc { font-size: 0.88rem; padding-left: 0; }

  /* Cuadrito de presentación de línea — mobile: imagen izquierda, texto derecha */
  .line-presentation {
    grid-template-columns: 130px 1fr;
    gap: 0.9rem;
    padding: 0.85rem;
    margin: 1.25rem 0 1.5rem;
    align-items: center;
  }
  .line-presentation-image {
    aspect-ratio: 1 / 1;
    max-width: 100%;
  }
  .line-presentation-eyebrow { font-size: 0.75rem; }
  .line-presentation-title { font-size: 1.4rem; }
  .line-presentation-desc { font-size: 0.95rem; line-height: 1.45; }

  .modal { max-height: 95vh; }
  .modal-header { padding: 1.25rem 1.25rem; }
  .modal-body { padding: 1.25rem; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { min-width: unset; width: 100%; }

  .cart-fab {
    bottom: 90px;
    right: 16px;
    padding: 0.7rem 1.2rem;
    font-size: 0.9rem;
  }

  .toast {
    right: 16px;
    left: 16px;
    top: 80px;
    transform: translateY(-200px);
    border-radius: 12px;
  }
  .toast.show {
    transform: translateY(0);
  }

  /* About */
  .about-stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }
  .about-stat .number { font-size: 1.8rem; }
  .about-stat .label { font-size: 0.65rem; }

  /* Quitar el borde naranja decorativo en mobile para que la foto se vea limpia y completa */
  .about-image::before { display: none; }
  .about-image img {
    box-shadow: var(--shadow-md);
  }

  /* Center text on mobile generally */
  .about-content { text-align: center; }
  .about-content .eyebrow { padding-left: 0; }
  .about-content .eyebrow::before { display: none; }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .hero h1 { font-size: 2.6rem; }
  .btn { padding: 0.85rem 1.5rem; font-size: 0.85rem; width: 100%; justify-content: center; }
  .hero-actions { flex-direction: column; width: 100%; }
  /* Evitar desbordamiento horizontal en toda la página */
  html, body { max-width: 100vw; overflow-x: hidden; }
  .products-grid,
  .lines-grid,
  .brands-hub,
  .cross-promo-grid { max-width: 100%; box-sizing: border-box; }
}