/* ===========================
   VARIABLES & RESET
   =========================== */
:root {
  --rosa:      #D96C9D;
  --rosa-dark: #c85d8d;
  --azul:      #2B3A67;
  --azul-light:#3d5094;
  --beige:     #F5F1EA;
  --beige-2:   #EDE8DF;
  --blanco:    #ffffff;
  --gris:      #6b7280;
  --gris-light:#f3f4f6;
  --texto:     #1a1a2e;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);

  --radius:    16px;
  --radius-lg: 24px;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Poppins', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--beige);
  color: var(--texto);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}


/* ===========================
   NAVBAR
   =========================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: box-shadow 0.3s;
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-title {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--azul);
  letter-spacing: -0.5px;
}

.logo-sub {
  font-size: 0.7rem;
  color: var(--gris);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gris);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--rosa);
}

.btn-nav {
  background: var(--rosa);
  color: var(--blanco) !important;
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-weight: 500;
  transition: background 0.2s, transform 0.2s !important;
}

.btn-nav:hover {
  background: var(--rosa-dark) !important;
  transform: translateY(-1px);
}

/* Burger */
.menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--azul);
  border-radius: 2px;
  transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  flex-direction: column;
  gap: 0;
  padding: 0 1.5rem 1rem;
  border-top: 1px solid var(--gris-light);
}

.mobile-menu a {
  display: block;
  padding: 0.8rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--texto);
  border-bottom: 1px solid var(--gris-light);
  transition: color 0.2s;
}

.mobile-menu a:hover {
  color: var(--rosa);
}

.btn-nav-mobile {
  background: var(--rosa);
  color: var(--blanco) !important;
  text-align: center;
  border-radius: var(--radius);
  margin-top: 0.8rem;
  border-bottom: none !important;
  padding: 0.9rem !important;
}

.hidden {
  display: none !important;
}


/* ===========================
   HERO
   =========================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('../data/images/tienda.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 6rem 1.5rem 4rem;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(43,58,103,0.75) 0%,
    rgba(217,108,157,0.45) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  animation: fadeUp 0.8s ease both;
}

.hero-tag {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  letter-spacing: 0.05em;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 5rem);
  font-weight: 800;
  color: var(--blanco);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero-title em {
  font-style: italic;
  color: #f9b8d6;
}

.hero-desc {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,0.88);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: var(--rosa);
  color: var(--blanco);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(217,108,157,0.4);
}

.btn-primary:hover {
  background: var(--rosa-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(217,108,157,0.5);
}

.btn-outline {
  background: transparent;
  color: var(--blanco);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.8);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--blanco);
  color: var(--azul);
  border-color: var(--blanco);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.6);
  font-size: 1.3rem;
  animation: bounce 2s infinite;
  z-index: 1;
}


/* ===========================
   SECTION HEADERS
   =========================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--azul);
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--gris);
  font-size: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.section-header.light h2 {
  color: var(--blanco);
}

.section-header.light p {
  color: rgba(255,255,255,0.75);
}


/* ===========================
   SERVICIOS
   =========================== */
.section-servicios {
  padding: 5rem 1.5rem;
  background: var(--beige);
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.servicio-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
  opacity: 0;
  transform: translateY(24px);
}

.servicio-card.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.3s;
}

.servicio-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.servicio-icon {
  font-size: 2.8rem;
  margin-bottom: 1rem;
}

.servicio-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--azul);
  margin-bottom: 0.5rem;
}

.servicio-card p {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 1.6;
}


/* ===========================
   CATÁLOGO
   =========================== */
.section-catalogo {
  padding: 5rem 1.5rem;
  background: var(--azul);
}

.filtros {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.filtro-btn {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.filtro-btn:hover,
.filtro-btn.active {
  background: var(--rosa);
  color: var(--blanco);
  border-color: var(--rosa);
}

.buscador-wrap {
  max-width: 500px;
  margin: 0 auto 2.5rem;
}

.buscador {
  width: 100%;
  padding: 0.9rem 1.5rem;
  border: none;
  border-radius: 100px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: rgba(255,255,255,0.12);
  color: var(--blanco);
  outline: none;
  transition: background 0.2s;
}

.buscador::placeholder {
  color: rgba(255,255,255,0.5);
}

.buscador:focus {
  background: rgba(255,255,255,0.2);
}

.productos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.25rem;
}

.producto-card {
  background: var(--blanco);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s, box-shadow 0.3s;
}

.producto-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.producto-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--beige-2);
}

.producto-img-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--beige-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.producto-info {
  padding: 1rem;
}

.producto-categoria {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--rosa);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.producto-nombre {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.producto-disponible {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #16a34a;
  font-weight: 500;
}

.producto-disponible::before {
  content: '';
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #16a34a;
}

.productos-empty {
  text-align: center;
  color: rgba(255,255,255,0.7);
  padding: 3rem;
  font-size: 1rem;
}


/* ===========================
   WHATSAPP SECTION
   =========================== */
.section-wa {
  background: linear-gradient(135deg, var(--rosa) 0%, var(--rosa-dark) 100%);
  padding: 4rem 1.5rem;
}

.wa-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.wa-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: 0.5rem;
}

.wa-text p {
  color: rgba(255,255,255,0.88);
  max-width: 440px;
}

.btn-wa {
  background: var(--blanco);
  color: var(--rosa-dark);
  padding: 1rem 2rem;
  border-radius: 100px;
  font-weight: 700;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.btn-wa:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}


/* ===========================
   CONTACTO
   =========================== */
.section-contacto {
  padding: 5rem 1.5rem;
  background: var(--beige);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: start;
}

.contacto-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.info-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.info-item strong {
  display: block;
  font-weight: 600;
  color: var(--azul);
  margin-bottom: 0.2rem;
}

.info-item p,
.info-item a {
  color: var(--gris);
  font-size: 0.9rem;
  line-height: 1.6;
}

.info-item a:hover {
  color: var(--rosa);
}

.mapa-placeholder {
  height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}


/* ===========================
   FOOTER
   =========================== */
.footer {
  background: var(--azul);
  padding: 2.5rem 1.5rem;
  color: rgba(255,255,255,0.6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer .logo-title {
  color: var(--blanco);
}

.footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  margin-top: 0.25rem;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}


/* ===========================
   FAB WHATSAPP
   =========================== */
.fab-wa {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  z-index: 999;
  transition: transform 0.2s, box-shadow 0.2s;
}

.fab-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 30px rgba(37,211,102,0.6);
}


/* ===========================
   ANIMATIONS
   =========================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}


/* ===========================
   RESPONSIVE
   =========================== */

/* Tablet */
@media (max-width: 900px) {
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .mapa-placeholder {
    height: 280px;
  }
}

/* Móvil */
@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }

  .hero {
    background-attachment: scroll;
    text-align: left;
  }

  .hero-content {
    text-align: left;
  }

  .hero-btns {
    justify-content: flex-start;
  }

  .hero-tag {
    font-size: 0.78rem;
  }

  .servicios-grid {
    grid-template-columns: 1fr;
  }

  .productos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wa-inner {
    flex-direction: column;
    text-align: center;
  }

  .wa-text p {
    margin: 0 auto;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 380px) {
  .productos-grid {
    grid-template-columns: 1fr;
  }
}