/* ==========================================================================
   CHISPA NAILS — sistema de diseño
   Paleta: fondo ciruela-negro, neones esmalte (rosa, violeta, cian, amarillo)
   ========================================================================== */

:root {
  --bg: #FBF3F8;
  --bg-alt: #F7E9F2;
  --surface: #FFFFFF;
  --surface-2: #FDEFF6;
  --line: #F0D6E6;

  --pink: #EC1279;
  --pink-soft: #F6A8C9;
  --violet: #A83DE0;
  --cyan: #14A6BA;
  --yellow: #DCA315;
  --cream: #3A1530;
  --muted: #8C6D82;
  --on-accent: #FFFFFF;

  --grad-hero: radial-gradient(60% 60% at 20% 20%, rgba(236, 18, 121, 0.14), transparent 60%),
    radial-gradient(50% 50% at 85% 15%, rgba(220, 163, 21, 0.14), transparent 60%),
    radial-gradient(70% 70% at 60% 90%, rgba(168, 61, 224, 0.12), transparent 60%);

  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-mono: "Space Mono", monospace;

  --radius: 18px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: 3px;
}

/* ---------- tipografía ---------- */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
}
p { color: var(--muted); margin: 0; }

/* ---------- swatch rail: elemento de firma ---------- */
.swatch-rail {
  display: flex;
  gap: 6px;
  align-items: center;
}
.swatch-rail span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.swatch-rail span:nth-child(1) { background: var(--pink); }
.swatch-rail span:nth-child(2) { background: var(--violet); }
.swatch-rail span:nth-child(3) { background: var(--cyan); }
.swatch-rail span:nth-child(4) { background: var(--yellow); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-img {
  height: 46px;
  width: auto;
  display: block;
  border-radius: 10px;
}

/* ---------- letrero de neón (junto al logo) ---------- */
.neon-sign {
  display: flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(160deg, #2a1030, #170a1e);
  padding: 6px 14px;
  border-radius: 14px;
  box-shadow: 0 4px 18px -8px rgba(236, 18, 121, 0.45);
}
.neon-bottle {
  width: 20px;
  height: 32px;
  flex-shrink: 0;
  fill: none;
  stroke: var(--pink-soft);
  stroke-width: 2;
  filter: drop-shadow(0 0 3px var(--pink)) drop-shadow(0 0 7px var(--pink));
}
.neon-bottle .neon-heart {
  fill: var(--pink);
  stroke: none;
  filter: drop-shadow(0 0 3px var(--pink));
}
.neon-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.neon-line1 {
  font-family: "Pacifico", cursive;
  font-size: 16px;
  color: #fff;
  text-shadow: 0 0 3px #fff, 0 0 8px var(--pink), 0 0 16px var(--pink), 0 0 28px var(--pink-soft);
}
.neon-line2 {
  font-family: "Dancing Script", cursive;
  font-weight: 700;
  font-size: 11px;
  color: #fff;
  text-shadow: 0 0 2px #fff, 0 0 6px var(--pink-soft), 0 0 14px var(--pink-soft);
  margin-top: 1px;
}
@media (max-width: 720px) {
  .neon-sign { display: none; }
}
.logo .word {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.nav-links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  font-weight: 600;
}
.nav-links a {
  color: var(--cream);
  opacity: 0.8;
  transition: opacity 0.15s, color 0.15s;
  position: relative;
}
.nav-links a:hover { opacity: 1; color: var(--pink); }
.nav-right { display: flex; align-items: center; gap: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(120deg, var(--pink), var(--pink-soft));
  color: var(--on-accent);
  box-shadow: 0 8px 24px -8px rgba(236, 18, 121, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 28px -6px rgba(236, 18, 121, 0.45); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--cream);
}
.btn-ghost:hover { border-color: var(--cyan); color: var(--cyan); }

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  color: var(--cream);
  font-size: 18px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background: var(--bg);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  filter: blur(10px);
  z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  margin: 18px 0 22px;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--pink), var(--yellow) 60%, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-stats {
  display: flex;
  gap: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.hero-stats div strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
}
.hero-stats div span {
  font-size: 13px;
  color: var(--muted);
}

/* ---------- bottle art (elemento visual de firma) ---------- */
.bottle-stage {
  position: relative;
  height: 420px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 18px;
}
.bottle {
  --c: var(--pink);
  width: 64px;
  border-radius: 14px 14px 20px 20px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 85%, white 15%), var(--c) 55%, color-mix(in srgb, var(--c) 70%, black 30%));
  box-shadow: 0 20px 40px -14px color-mix(in srgb, var(--c) 60%, transparent);
  position: relative;
}
.bottle::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -22px;
  transform: translateX(-50%);
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.bottle::after {
  content: "";
  position: absolute;
  inset: 10px 8px auto 8px;
  height: 34%;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.28);
}
.bottle.b1 { height: 230px; --c: var(--pink); }
.bottle.b2 { height: 320px; --c: var(--violet); }
.bottle.b3 { height: 260px; --c: var(--cyan); }
.bottle.b4 { height: 190px; --c: var(--yellow); }

.sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--cream);
  border-radius: 50%;
  opacity: 0.8;
  animation: drift 6s ease-in-out infinite;
}
@keyframes drift {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-16px) scale(1.4); opacity: 0.9; }
}

/* ---------- secciones generales ---------- */
section { padding: 88px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 46px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-top: 14px;
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

@media (min-width: 600px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 900px) {
  .cat-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.cat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 8px;
  transition: transform 0.18s ease, border-color 0.18s ease;
  text-align: center;
  cursor: pointer;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cat-card:hover { transform: translateY(-3px); border-color: var(--c, var(--pink)); }
.cat-dot {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--c, var(--pink));
  margin: 0 auto 8px;
}
.cat-card h3 { font-size: 16px; margin-bottom: 2px; }
.cat-card p { font-size: 13px; line-height: 1.2; color: var(--muted); margin: 0; }

/* por qué elegirnos */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.why-card {
  border-radius: var(--radius);
  padding: 28px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.why-num {
  font-family: var(--font-mono);
  color: var(--yellow);
  font-size: 13px;
  margin-bottom: 14px;
  display: block;
}
.why-card h3 { font-size: 18px; margin-bottom: 10px; }
.why-card p { font-size: 14px; }

/* vista previa catálogo (compartida con product cards de catálogo) */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color 0.15s, transform 0.15s;
}
.product-card:hover { border-color: color-mix(in srgb, var(--c, var(--pink)) 60%, var(--line)); transform: translateY(-4px); }
.product-visual {
  height: 140px;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 14px;
}
.product-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c, var(--pink));
}
.product-card h3 { font-size: 16px; margin: 2px 0 0; }
.product-card .desc { font-size: 13px; }
.product-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.price {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--cream);
}

/* footer / contacto */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg-alt);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-grid h4 {
  font-family: var(--font-display);
  font-size: 14px;
  margin-bottom: 16px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.footer-grid a, .footer-grid p { font-size: 14px; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a { opacity: 0.85; }
.footer-grid li a:hover { color: var(--pink); opacity: 1; }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

/* ---------- página catálogo ---------- */
.cat-hero {
  padding: 58px 0 30px;
  background: var(--grad-hero), var(--bg);
}
.cat-hero h1 { font-size: clamp(32px, 5vw, 48px); margin-top: 12px; }
.cat-hero p { max-width: 52ch; margin-top: 14px; font-size: 16px; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  padding: 26px 0 8px;
}
.chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--cream);
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}
.chip[aria-pressed="true"] {
  background: linear-gradient(120deg, var(--pink), var(--pink-soft));
  border-color: transparent;
  color: var(--on-accent);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 30px 0 90px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-row button {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--bg-alt);
  color: var(--cream);
  font-size: 16px;
  line-height: 1;
}
.qty-row button:hover { border-color: var(--cyan); }
.qty-row span { font-family: var(--font-mono); min-width: 18px; text-align: center; }

.add-btn {
  width: 100%;
  padding: 11px;
  border-radius: 10px;
  border: none;
  font-weight: 700;
  font-size: 13.5px;
  background: var(--surface-2);
  color: var(--cream);
  border: 1px solid var(--line);
  transition: background 0.15s, border-color 0.15s;
}
.add-btn:hover { border-color: var(--c, var(--pink)); }
.add-btn.in-cart {
  background: linear-gradient(120deg, var(--pink), var(--pink-soft));
  border-color: transparent;
  color: var(--on-accent);
}

/* carrito flotante */
.cart-fab {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 60;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--pink), var(--pink-soft));
  color: var(--on-accent);
  font-size: 24px;
  box-shadow: 0 14px 30px -10px rgba(236, 18, 121, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--yellow);
  color: var(--cream);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 6, 14, 0.6);
  z-index: 70;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 92vw);
  background: var(--bg-alt);
  border-left: 1px solid var(--line);
  z-index: 80;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }
.cart-drawer-head {
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.cart-drawer-head h2 { font-size: 19px; }
.cart-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 34px;
  height: 34px;
  color: var(--cream);
  font-size: 16px;
}
.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 24px;
}
.cart-empty {
  padding: 40px 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.cart-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.cart-item .swatch {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--c, var(--pink));
}
.cart-item h4 { font-size: 14px; margin-bottom: 4px; }
.cart-item .cart-item-price { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.cart-item .remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
}
.cart-drawer-foot {
  padding: 22px 24px 26px;
  border-top: 1px solid var(--line);
}
.cart-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 15px;
  margin-bottom: 16px;
}
.cart-total strong { font-size: 20px; }
.cart-drawer-foot .btn { width: 100%; justify-content: center; }
.cart-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

.neon-sign-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 0.9;
  transform: rotate(-2deg);
}

/* Style général du néon */
@font-face {
  font-family: "Brittany Signature";
  src: url("fonts/BrittanySignature.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

.neon-line {
  font-family: "Brittany Signature", cursive;
  font-weight: 400;
  color: #ff4fa3;
  white-space: nowrap;
  -webkit-text-stroke: 0.7px #ff4fa3;
}

/* NailStore */
.line-1 {
  font-size: 24px;
  margin-bottom: 10px;
}

/* Mayra Hernández */
.line-2 {
  font-size: 17px;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .bottle-stage { height: 260px; }
  .cat-grid, .why-grid, .preview-grid { grid-template-columns: repeat(2, 1fr); }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .menu-toggle { display: flex; align-items: center; justify-content: center; }
}

@media (max-width: 768px) {
  .line-1 {
    font-size: 18px;
  }
  .line-2 {
    font-size: 14px;
  }
}

@media (max-width: 560px) {
  .cat-grid, .why-grid, .preview-grid, .catalog-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .line-1 {
    font-size: 14px;
    margin-bottom: 6px;
  }
  .line-2 {
    font-size: 11px;
  }
  .neon-sign-text {
    transform: rotate(-1deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.product-card {
  min-width: 0; /* ← empêche les enfants de forcer la largeur */
}

.product-card * {
  max-width: 100%; /* ← empêche les débordements */
}

/* =========================================
   AGRANDISSEMENT DES IMAGES — LO MÁS PEDIDO
========================================= */

#productImageModal {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: none;
  align-items: center;
  justify-content: center;

  padding: 20px;
}

#productImageModal.active {
  display: flex;
}

.product-image-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: zoom-out;
}

.product-image-modal-content {
  position: relative;
  z-index: 1;

  max-width: min(900px, 95vw);
  max-height: 90vh;

  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image-modal-content img {
  display: block;

  max-width: 100%;
  max-height: 90vh;

  width: auto;
  height: auto;

  object-fit: contain;
  border-radius: var(--radius-sm);

  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
}

.product-image-modal-close {
  position: absolute;
  top: -14px;
  right: -14px;

  width: 40px;
  height: 40px;

  border: none;
  border-radius: 50%;

  background: white;
  color: #222;

  font-size: 28px;
  line-height: 1;

  cursor: pointer;
  z-index: 2;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.25);
}

.product-image-modal-close:hover {
  transform: scale(1.08);
}