/* ═══════════════════════════════════════════════
   MAMMA PASTAS – Premium CSS
   Dark luxury: Borgoña + Crema + Dorado
   Mobile-first | 2025
═══════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,900;1,400;1,700&family=Raleway:wght@300;400;500;600;700&display=swap');

/* ── Variables ── */
:root {
  --negro:        #0D0D0D;
  --oscuro:       #141010;
  --oscuro2:      #1E1515;
  --oscuro3:      #261A1A;
  --borgo:        #6B0F0F;
  --borgo-vivo:   #8B1A0A;
  --rojo:         #C0110A;
  --dorado:       #C9920A;
  --dorado-claro: #FFD080;
  --dorado-suave: rgba(201,146,10,0.15);
  --crema:        #F5EFE0;
  --crema-suave:  rgba(245,239,224,0.85);
  --crema-opaca:  rgba(245,239,224,0.55);
  --texto-suave:  rgba(245,239,224,0.6);
  --glass-bg:     rgba(30,20,20,0.72);
  --glass-border: rgba(201,146,10,0.25);
  --sombra:       0 8px 40px rgba(0,0,0,0.7);
  --radio:        14px;
  --radio-sm:     8px;
  --trans:        .38s cubic-bezier(.23,1,.32,1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
body {
  font-family: 'Raleway', sans-serif;
  background: var(--negro);
  color: var(--crema);
  min-height: 100dvh;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a, button { text-decoration: none; cursor: pointer; }

/* ══════════════════════════════════════
   VIEWS SYSTEM
══════════════════════════════════════ */
.view {
  position: fixed; inset: 0;
  overflow-y: auto; overflow-x: hidden;
  background: var(--negro);
  transition: opacity .35s ease, transform .35s cubic-bezier(.23,1,.32,1);
}
.view.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(30px);
}
.view.exit {
  opacity: 0;
  transform: translateX(-30px);
}

/* ══════════════════════════════════════
   HEADER
══════════════════════════════════════ */
.mp-header {
  position: sticky; top: 0; z-index: 100;
  height: 72px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(180deg, rgba(13,13,13,0.98) 0%, rgba(13,13,13,0.92) 100%);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.mp-header.with-back {
  justify-content: flex-start;
  padding: 0 20px;
  gap: 16px;
}
.mp-header .header-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--crema);
  letter-spacing: .5px;
}
.mp-header .header-sub {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--dorado);
  display: block;
}
.btn-back {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  color: var(--dorado);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: var(--trans);
}
.btn-back:active { background: var(--dorado-suave); transform: scale(0.92); }
.btn-back svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Logo en header ── */
.logo-header {
  cursor: pointer;
  display: flex; align-items: center; gap: 10px;
}

/* ── Logo diamante SVG ── */
.logo-diamond {
  width: 44px; height: 44px;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(201,146,10,0.4));
  transition: transform var(--trans);
}
.logo-diamond:hover { transform: scale(1.08); }
.logo-text-wrap { display: flex; flex-direction: column; }
.logo-name {
  font-family: 'Playfair Display', serif;
  font-weight: 900;
  font-size: 1.2rem;
  color: var(--crema);
  line-height: 1;
  letter-spacing: .5px;
}
.logo-tagline {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--dorado);
  margin-top: 2px;
}

/* ══════════════════════════════════════
   VIEW: HOME
══════════════════════════════════════ */
#view-home { background: var(--negro); }

/* ── Hero ── */
.hero {
  position: relative;
  height: min(65dvh, 480px); /* Más alto para que el texto baje más */
  overflow: hidden;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-end; /* Texto abajo */
  text-align: center;
  padding: 20px 24px 15px; /* Menos padding abajo para empujarlo más */
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at center, #3a0a0a 0%, #1a0505 45%, #0D0D0D 100%);
}
.hero-bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}
.hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 120px;
  background: linear-gradient(to top, var(--negro) 0%, transparent 100%);
  z-index: 1;
}
.hero-content { position: relative; z-index: 2; animation: fadeDown .7s both; padding-top: 20px; }
.hero-logo-container {
  width: 140px; height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(60,60,60,0.85) 0%, rgba(10,10,10,0.95) 75%, transparent 100%);
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.9), 0 8px 30px rgba(0,0,0,0.8);
  border: 1px solid rgba(255,255,255,0.05);
}
.main-logo-img {
  width: 110px; height: auto;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.9)) drop-shadow(0 2px 4px rgba(201,146,10,0.5));
  transition: transform var(--trans);
}
.main-logo-img:hover { transform: scale(1.05); }
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: 900;
  color: var(--crema);
  text-shadow: 0 2px 20px rgba(0,0,0,0.9);
  line-height: 1;
  letter-spacing: 1px;
}
.hero-title em {
  font-style: italic;
  color: var(--dorado-claro);
}
.hero-tagline {
  font-size: 0.65rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--dorado);
  margin-top: 8px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.hero-tagline::before, .hero-tagline::after {
  content: '◆';
  font-size: .45rem;
  opacity: .7;
}

/* ── Sección menú ── */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 0.68rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--dorado);
  text-align: center;
  padding: 24px 20px 18px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
}
.section-title::before, .section-title::after {
  content: '';
  flex: 1; max-width: 60px; height: 1px;
  background: linear-gradient(to right, transparent, var(--dorado));
}
.section-title::after { background: linear-gradient(to left, transparent, var(--dorado)); }

/* ── Grilla de categorías ── */
/* Lógica de desenfoque al ampliar una tarjeta (Safari fix) */
body.has-ampliada header,
body.has-ampliada .hero,
body.has-ampliada .section-title-wrapper,
body.has-ampliada .cat-grid .cat-card-wrapper:not(.activa) {
  filter: blur(2px) brightness(0.65); /* Menos blur y un poco más claro */
  transition: all 0.4s ease;
  pointer-events: none;
}
body.has-ampliada {
  overflow: hidden; /* Evitar scroll mientras está abierta */
}

.cat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 16px 32px;
  position: relative;
  z-index: 10;
}
.cat-card-wrapper {
  position: relative;
  aspect-ratio: 1;
}
.cat-card {
  position: absolute; inset: 0;
  border-radius: var(--radio);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .5s cubic-bezier(.23,1,.32,1);
  animation: fadeUp .55s cubic-bezier(.23,1,.32,1) both;
  z-index: 1;
}
.cat-card:nth-child(1) { animation-delay: .05s; }
.cat-card:nth-child(2) { animation-delay: .10s; }
.cat-card:nth-child(3) { animation-delay: .15s; }
.cat-card:nth-child(4) { animation-delay: .20s; }
.cat-card:nth-child(5) { animation-delay: .25s; }
.cat-card:nth-child(6) { animation-delay: .30s; }
.cat-card:nth-child(7) { animation-delay: .35s; }
.cat-card:nth-child(8) { animation-delay: .40s; }

.cat-card-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .4s cubic-bezier(.23,1,.32,1), filter .4s;
  filter: brightness(0.65);
}
.cat-card-overlay {
  display: none; /* Sin color sólido extra */
}
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.95) 0%, rgba(0,0,0,.15) 50%, transparent 100%);
}
.cat-card-content {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 10px 12px 14px;
}
.cat-emoji {
  display: none !important;
}
.cat-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 900;
  color: var(--crema);
  text-shadow: 0 2px 12px rgba(0,0,0,1);
  line-height: 1.1;
  text-align: center;
  padding-bottom: 8px;
}
.cat-cant {
  display: none !important;
}
/* línea dorada inferior (ahora visible siempre) */
.cat-card-line {
  position: absolute; bottom: 0; left: 0;
  height: 3px; width: 100%;
  border-radius: 2px 2px 0 0;
  background: linear-gradient(to right, var(--dorado), var(--dorado-claro));
  z-index: 3;
}
/* ----- ESTADO AMPLIADO (1° clic) ----- */
.cat-card-wrapper.activa {
  z-index: 200; /* Lo sacamos por encima de todo el grid para que no lo tape el blur */
}
.cat-card.ampliada {
  transform: scale(1.35); /* Crecimiento mayor solicitado por usuario */
  box-shadow: 0 20px 60px rgba(0,0,0,0.95);
  border: 1px solid var(--dorado);
  z-index: 200;
}

.cat-card.ampliada .cat-card-bg {
  filter: brightness(0.95) saturate(1.2);
  transform: scale(1.05); /* Zoom a la imagen interna también */
}

/* ══════════════════════════════════════
   VIEW: LISTA DE PRODUCTOS
══════════════════════════════════════ */
#view-lista { background: var(--negro); }

.lista-hero {
  height: 120px;
  background: linear-gradient(to bottom, rgba(107,15,15,.7), var(--negro));
  display: flex; align-items: flex-end;
  padding: 0 20px 16px;
  gap: 12px;
}
.lista-hero-emoji {
  font-size: 2.4rem;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.8));
}
.lista-hero-info { flex: 1; }
.lista-hero-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--crema);
  line-height: 1;
}
.lista-hero-desc {
  font-size: .68rem; color: var(--texto-suave);
  margin-top: 4px;
}

.gold-divider {
  height: 1px; margin: 0 20px;
  background: linear-gradient(to right, transparent, var(--dorado) 30%, var(--dorado-claro) 50%, var(--dorado) 70%, transparent);
}

.productos-list {
  padding: 12px 16px 100px;
  display: flex; flex-direction: column; gap: 10px;
}

.prod-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radio);
  display: flex; align-items: center; gap: 12px;
  padding: 14px 14px;
  cursor: pointer;
  transition: var(--trans);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeUp .45s both;
}
.prod-card:active { transform: scale(0.97); background: rgba(201,146,10,.1); }

.prod-thumb {
  width: 60px; height: 60px;
  border-radius: var(--radio-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.prod-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.prod-info { flex: 1; min-width: 0; }
.prod-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem; font-weight: 700;
  color: var(--crema);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prod-desc {
  font-size: .68rem; color: var(--texto-suave);
  margin-top: 2px; line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.prod-precio {
  font-family: 'Playfair Display', serif;
  font-size: .9rem; font-weight: 900;
  color: var(--dorado);
  white-space: nowrap; flex-shrink: 0;
  display: flex; flex-direction: column; align-items: flex-end; gap: 4px;
}
.prod-chevron {
  width: 18px; height: 18px;
  stroke: var(--glass-border);
  fill: none; stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0;
}

/* ══════════════════════════════════════
   POPUP DE PRODUCTO
══════════════════════════════════════ */
.popup-overlay {
  display: none;
  position: fixed; inset: 0; z-index: 500;
  background: rgba(13,13,13,.88);
  align-items: flex-end; justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.popup-overlay.visible { display: flex; }

.popup {
  background: var(--oscuro2);
  border: 1px solid var(--glass-border);
  border-radius: 24px 24px 0 0;
  width: 100%; max-width: 540px;
  max-height: 90dvh;
  overflow-y: auto;
  animation: slideUp .4s cubic-bezier(.23,1,.32,1);
}
@media (min-height: 700px) {
  .popup {
    border-radius: 24px;
    margin: 20px;
    max-height: 85dvh;
  }
}

.popup-gallery-container {
  width: 100%; height: 260px;
  position: relative;
  display: none;
}
.popup-gallery {
  width: 100%; height: 100%;
  border-radius: 24px 24px 0 0;
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
}
.popup-gallery::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.popup-gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  flex: 0 0 100%;
  scroll-snap-align: center;
}

.popup-dots {
  position: absolute;
  bottom: 12px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
  pointer-events: none;
  z-index: 10;
}
.popup-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.popup-dot.active {
  background: white;
  transform: scale(1.3);
}
.popup-img-placeholder {
  width: 100%; height: 180px;
  background: radial-gradient(ellipse, rgba(107,15,15,.4), rgba(13,13,13,1));
  display: flex; align-items: center; justify-content: center;
  font-size: 4.5rem;
  border-radius: 24px 24px 0 0;
}

.popup-body { padding: 20px 22px 4px; }
.popup-cat {
  font-size: .58rem; font-weight: 700; color: var(--dorado);
  letter-spacing: 3.5px; text-transform: uppercase;
  display: flex; align-items: center; gap: 8px; margin-bottom: 7px;
}
.popup-nombre {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 900;
  color: var(--crema); line-height: 1.1; margin-bottom: 10px;
}
.popup-desc {
  font-size: .82rem; color: var(--texto-suave);
  line-height: 1.65; margin-bottom: 16px;
}
.popup-divider { height: 1px; background: var(--glass-border); margin-bottom: 14px; }
.popup-precio-wrap { display: flex; align-items: baseline; gap: 8px; margin-bottom: 20px; }
.popup-precio {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 900; color: var(--dorado);
}
.popup-precio-nota { font-size: .7rem; color: var(--texto-suave); font-style: italic; }

.popup-footer { padding: 14px 22px 28px; display: flex; gap: 10px; }
.btn-wpp {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 9px;
  background: linear-gradient(135deg,#1da855,#25D366);
  color: white; font-weight: 700; font-size: .9rem;
  padding: 14px; border-radius: 12px; border: none;
  box-shadow: 0 4px 20px rgba(37,211,102,.3);
  transition: var(--trans);
  font-family: 'Raleway', sans-serif;
}
.btn-wpp:active { transform: scale(0.97); box-shadow: 0 2px 10px rgba(37,211,102,.2); }
.btn-wpp svg { width: 20px; height: 20px; fill: white; flex-shrink: 0; }
.btn-close {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  border: 1.5px solid var(--glass-border);
  background: transparent; color: var(--texto-suave);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; transition: var(--trans);
  font-family: sans-serif;
}
.btn-close:active { border-color: var(--rojo); color: var(--rojo); }

/* ══════════════════════════════════════
   VIEW: NOSOTROS / INFO
══════════════════════════════════════ */
#view-info { background: var(--negro); }

.info-brand {
  position: relative;
  text-align: center;
  padding: 45px 24px 25px;
  background: radial-gradient(ellipse at top center, rgba(201,146,10,0.08) 0%, transparent 70%);
}
.info-brand .logo-info {
  display: block;
  width: 170px; height: auto;
  margin: 0 auto 24px;
  filter: 
    drop-shadow(0 8px 15px rgba(0,0,0,0.9)) 
    drop-shadow(0 0 25px rgba(201,146,10,0.4)) 
    drop-shadow(0 0 60px rgba(201,146,10,0.2));
  animation: pulseGoldGlow 4s ease-in-out infinite alternate;
}
@keyframes pulseGoldGlow {
  0% {
    filter: 
      drop-shadow(0 8px 15px rgba(0,0,0,0.9))
      drop-shadow(0 0 15px rgba(201,146,10,0.3))
      drop-shadow(0 0 40px rgba(201,146,10,0.1));
    transform: translateY(0);
  }
  100% {
    filter: 
      drop-shadow(0 12px 20px rgba(0,0,0,0.95))
      drop-shadow(0 0 35px rgba(201,146,10,0.6))
      drop-shadow(0 0 80px rgba(201,146,10,0.3));
    transform: translateY(-5px);
  }
}
.info-brand h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.1rem; font-weight: 900; 
  background: linear-gradient(180deg, var(--crema) 0%, var(--dorado) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.6));
  letter-spacing: 0.5px;
}
.info-brand p {
  font-size: .65rem; font-weight: 700; letter-spacing: 4px;
  text-transform: uppercase; color: var(--dorado-claro);
  margin-top: 8px;
  opacity: 0.9;
}

.info-section { padding: 0 16px 24px; }
.info-section-title {
  font-size: .6rem; font-weight: 700;
  letter-spacing: 4px; text-transform: uppercase;
  color: var(--dorado); margin-bottom: 12px;
  text-align: center;
}

/* Horarios */
.horarios-list { display: flex; flex-direction: column; gap: 6px; }
.horario-row {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--dorado);
  border-radius: var(--radio-sm);
  padding: 11px 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .84rem;
}
.horario-dia { font-weight: 700; color: var(--crema); }
.horario-horas { color: var(--dorado); font-weight: 600; font-size: .78rem; }

/* Botones de contacto */
.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.btn-contacto {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 18px 12px;
  border-radius: var(--radio);
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--trans);
  color: var(--crema);
}
.btn-contacto:active { transform: scale(0.95); }
.btn-ico {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.btn-ico svg, .btn-ico img { width: 26px; height: 26px; }
.ico-wpp  { background: linear-gradient(135deg,#1da855,#25D366); }
.ico-tel  { background: linear-gradient(135deg,#1a4a8a,#2D6AC0); }
.ico-ig   { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.ico-map  { background: linear-gradient(135deg,#8a0a06,#C0110A); }
.btn-contacto-label { font-weight: 700; font-size: .78rem; text-align: center; line-height: 1.3; }
.btn-contacto-sub   { font-size: .66rem; color: var(--texto-suave); text-align: center; }

/* Servicios – tags */
.servicios-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tag-serv {
  background: var(--dorado-suave);
  border: 1.5px solid rgba(201,146,10,.35);
  border-radius: 20px; padding: 7px 14px;
  font-size: .73rem; font-weight: 700; color: var(--dorado);
}

/* Mapa */
.mapa-wrap {
  margin: 0 16px 24px;
  border-radius: var(--radio);
  overflow: hidden;
  border: 1px solid var(--glass-border);
}
.mapa-embed {
  width: 100%; height: 200px; border: none;
  filter: sepia(20%) saturate(.8) brightness(.85);
  display: block;
}

.info-footer {
  padding-bottom: 100px;
  text-align: center;
  font-size: .58rem; color: var(--texto-suave);
  font-family: 'Playfair Display', serif; font-style: italic;
  letter-spacing: 1.5px; opacity: .6;
}

/* ══════════════════════════════════════
   BOTTOM NAV
══════════════════════════════════════ */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 200;
  height: 64px;
  display: flex;
  background: rgba(13,13,13,.96);
  border-top: 1px solid var(--glass-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 3px;
  border: none; background: transparent;
  color: var(--texto-suave);
  transition: color .25s;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  font-family: 'Raleway', sans-serif;
}
.nav-item svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item span { font-size: .58rem; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.nav-item.active { color: var(--dorado); }
.nav-item.active svg { stroke: var(--dorado); }

/* ══════════════════════════════════════
   FLOATING WHATSAPP
══════════════════════════════════════ */
.wpp-float {
  position: fixed; bottom: 80px; right: 18px; z-index: 300;
  width: 54px; height: 54px;
  background: linear-gradient(135deg,#1da855,#25D366);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  text-decoration: none;
  animation: wppPulse 3s ease-in-out infinite;
  transition: transform .2s;
}
.wpp-float:active { transform: scale(0.9); animation: none; }
.wpp-float svg { width: 27px; height: 27px; fill: white; }

/* ══════════════════════════════════════
   ANIMACIONES
══════════════════════════════════════ */
@keyframes fadeDown  { from { opacity:0; transform:translateY(-16px); } to { opacity:1; transform:translateY(0); } }
@keyframes fadeUp    { from { opacity:0; transform:translateY(16px); }  to { opacity:1; transform:translateY(0); } }
@keyframes slideUp   { from { opacity:0; transform:translateY(60px); }  to { opacity:1; transform:translateY(0); } }
@keyframes wppPulse  {
  0%,100% { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.3); }
  50%     { box-shadow: 0 4px 20px rgba(37,211,102,.45), 0 0 0 12px rgba(37,211,102,0); }
}

/* ══════════════════════════════════════
   UTILITY
══════════════════════════════════════ */
.pb-nav { padding-bottom: 80px; }

/* ── Scrollbar estilo ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(201,146,10,.3); border-radius: 2px; }

/* ── Responsive desktop ── */
@media (min-width: 600px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .contacto-grid { grid-template-columns: repeat(2, 1fr); }
  .bottom-nav { max-width: 540px; left: 50%; transform: translateX(-50%); border-radius: 20px 20px 0 0; }
  .wpp-float { right: calc(50% - 270px + 18px); }
  .popup-overlay { align-items: center; }
}
@media (min-width: 900px) {
  .view { max-width: 540px; left: 50%; transform: translateX(-50%); }
  .view.hidden { transform: translateX(calc(-50% + 30px)); }
  .view.exit { transform: translateX(calc(-50% - 30px)); }
}

/* ══════════════════════════════════════
   PWA MODAL
══════════════════════════════════════ */
.pwa-modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.pwa-modal-overlay.active {
  opacity: 1; pointer-events: auto;
}
.pwa-modal {
  background: var(--grafito);
  border: 1px solid var(--dorado);
  border-radius: 16px;
  padding: 24px; width: 90%; max-width: 320px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0,0,0,0.8);
  transform: translateY(20px); transition: transform 0.3s;
}
.pwa-modal-overlay.active .pwa-modal {
  transform: translateY(0);
}
.pwa-icon {
  width: 60px; height: 60px; border-radius: 12px;
  margin: 0 auto 16px; display: block;
}
.pwa-title {
  font-family: var(--font-display);
  font-size: 1.4rem; color: var(--claro); margin-bottom: 8px;
}
.pwa-text {
  font-size: 0.9rem; color: #BBB; line-height: 1.4; margin-bottom: 20px;
}
.pwa-btn {
  background: var(--dorado); color: var(--negro);
  border: none; border-radius: 8px; font-weight: 700;
  padding: 12px 20px; width: 100%; cursor: pointer;
  font-family: var(--font-sans); font-size: 1rem; margin-bottom: 10px;
}
.pwa-btn:active { transform: scale(0.98); }
.pwa-close {
  background: transparent; border: none; font-size: 0.85rem;
  color: #888; text-decoration: underline; cursor: pointer;
}
