/* ============================================
   VARIABLES
   ============================================ */
:root {
  --bg: #0a0a0d;
  --card-bg: rgba(255, 255, 255, 0.04);
  --pink: #ff2e88;
  --pink-light: #ff6fb0;
  --text: #f5f5f7;
  --text-dim: #a6a3ad;
  --radius: 16px;

  /* Derivados de --pink, para que un cambio de color desde el admin se
     propague automáticamente a bordes y resplandores. */
  --card-border: color-mix(in srgb, var(--pink) 30%, transparent);
  --pink-glow: color-mix(in srgb, var(--pink) 45%, transparent);
  --bg-alt: color-mix(in srgb, var(--bg) 85%, white);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.pink { color: var(--pink-light); }

/* ============================================
   BOTONES
   ============================================ */
.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  border: none;
  cursor: pointer;
}

.btn-pink {
  background: linear-gradient(135deg, var(--pink), #c81d68);
  color: #fff;
  box-shadow: 0 4px 20px var(--pink-glow);
}

.btn-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--pink-glow);
}

.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; text-align: center; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 13, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  overflow: visible; /* permite que el logo sobresalga del header */
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  gap: 16px;
  overflow: visible; /* necesario para que el logo pueda desbordar */
  position: relative;
}

.logo-wrap {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  overflow: visible;
  z-index: 5; /* queda por encima del resto del header al desbordar */
}

.logo-img {
  height: 92px;           /* antes 44px: mucho más grande */
  width: auto;
  position: relative;
  margin: -24px 0;        /* hace que sobresalga por arriba y por abajo del header */
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.55))
          drop-shadow(0 0 14px var(--pink-glow));
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-img:hover {
  transform: scale(1.04) translateY(-2px);
}

.logo-text {
  font-weight: 800;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #fff, var(--pink-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.main-nav {
  display: flex;
  gap: 28px;
  margin-left: auto;
  margin-right: 24px;
}

.main-nav a {
  color: var(--text-dim);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  position: relative;
}

.main-nav a:hover { color: var(--pink-light); }

.nav-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  padding: 90px 0 70px;
  text-align: center;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 500px;
  background: radial-gradient(circle, var(--pink-glow) 0%, transparent 70%);
  filter: blur(40px);
  animation: pulseGlow 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

.hero-inner { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.hero p {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 560px;
  margin: 0 auto 32px;
}

/* ============================================
   CATÁLOGO / PRODUCTOS
   ============================================ */
.catalogo { padding: 50px 0 20px; }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 24px;
  padding-left: 14px;
  border-left: 4px solid var(--pink);
}

.grid-productos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 22px;
}

.card-producto {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 20px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card-producto:hover {
  transform: translateY(-6px);
  border-color: var(--pink);
  box-shadow: 0 12px 30px rgba(255, 46, 136, 0.15);
}

.badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: linear-gradient(135deg, var(--pink), #c81d68);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.card-img {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }

.img-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink), #c81d68);
  color: #fff;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
}

.card-producto h3 { font-size: 1.1rem; margin-bottom: 6px; }

.card-producto .desc {
  color: var(--text-dim);
  font-size: 0.88rem;
  margin-bottom: 10px;
  flex-grow: 1;
}

.entrega {
  font-size: 0.8rem;
  color: var(--pink-light);
  margin-bottom: 14px;
}

.precio-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.precio-anterior {
  color: var(--text-dim);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.precio {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
}

/* ============================================
   FRANJA DE CONFIANZA
   ============================================ */
.franja-confianza {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 60px 0 30px;
  padding: 30px 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
}

.franja-confianza .item {
  text-align: center;
}

.franja-confianza span {
  display: block;
  font-size: 1.6rem;
  margin-bottom: 6px;
}

.franja-confianza p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--card-border);
  background: var(--bg-alt);
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
  padding: 50px 20px 30px;
}

.footer-logo { height: 38px; margin-bottom: 12px; }

.footer-brand p {
  color: var(--text-dim);
  font-size: 0.9rem;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  color: #fff;
}

.footer-col p { margin-bottom: 8px; }

.footer-col a {
  color: var(--text-dim);
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--pink-light); }

.footer-bottom {
  text-align: center;
  padding: 18px 20px;
  border-top: 1px solid var(--card-border);
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE — MÓVIL 100%
   ============================================ */
@media (max-width: 860px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(10, 10, 13, 0.97);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--card-border);
    padding: 20px;
    gap: 18px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
  }

  .main-nav.open {
    max-height: 320px;
    opacity: 1;
  }

  .nav-cta { display: none; }

  .hero { padding: 60px 0 50px; }
  .hero p { font-size: 1rem; }

  .franja-confianza { grid-template-columns: repeat(2, 1fr); }

  .logo-img {
    height: 68px;      /* un poco más contenido en móvil, sigue sobresaliendo */
    margin: -16px 0;
  }
}

@media (max-width: 480px) {
  .grid-productos { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer-brand p { margin: 0 auto; }
  .logo-img { height: 56px; margin: -12px 0; }
}