/* =====================================================
   VARIABLES GLOBALES (colores, base del diseño)
===================================================== */
:root {
  --bg: #f7f4ff;
  --surface: #ffffff;
  --lilac: #c77dff;
  --lilac-strong: #9b5cf0;
  --deep: #2f1f44;
  --muted: #5a4a6b;
}

/* =====================================================
   RESET & BASE
===================================================== */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background:
    radial-gradient(circle at 20% 15%, rgba(199,125,255,0.14), transparent 36%),
    radial-gradient(circle at 92% 8%, rgba(123,241,168,0.16), transparent 32%),
    linear-gradient(135deg, #fdfbff 0%, #f3f5ff 50%, #fdfbff 100%);
  color: var(--deep);
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   LAYOUT GENERAL
===================================================== */
.container {
  width: min(1100px, 100%);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 64px 0;
}

.center-align {
  text-align: center;
}

/* =====================================================
   TIPOGRAFÍA
===================================================== */
h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  margin-bottom: 10px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: var(--lilac-strong);
  margin-bottom: 6px;
}

.section-lead {
  max-width: 640px;
  margin-bottom: 32px;
}

/* =====================================================
   BOTONES
===================================================== */
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, var(--lilac), var(--lilac-strong));
  color: #fff;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(155,92,240,0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(155,92,240,0.45);
}

.btn-chip {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(199,125,255,0.18);
  font-weight: 700;
  transition: transform 0.15s ease;
}

.btn-chip:hover {
  transform: translateY(-2px);
}

/* =====================================================
   HEADER / NAV (mobile first)
===================================================== */
.site-header {
  position: sticky;
  top: 12px;
  z-index: 100;
}

.nav-bar {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  border-radius: 999px;
  padding: 10px 16px;
  box-shadow: 0 18px 40px rgba(47,31,68,0.15);
  display: flex;
  align-items: center;
}

.brand-logo {
  width: 52px;
}

nav {
  margin-left: auto;
}

.nav-toggle {
  background: linear-gradient(135deg, var(--lilac), var(--lilac-strong));
  border: none;
  color: #fff;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 1.2rem;
  cursor: pointer;
}

.nav-links {
  list-style: none;
  display: none;
  flex-direction: column;
  position: absolute;
  top: calc(100% + 14px);
  right: 20px;
  background: #fff;
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 18px 40px rgba(47,31,68,0.2);
}

.nav-links.show {
  display: flex;
}

.nav-links li {
  margin-bottom: 6px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 700;
}

.nav-links a:hover {
  background: rgba(199,125,255,0.18);
}

/* =====================================================
   HERO
===================================================== */
.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.hero-actions {
  margin-top: 20px;
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.card-glass {
  background: rgba(255,255,255,0.88);
  padding: 18px;
  border-radius: 22px;
  box-shadow: 0 18px 40px rgba(47,31,68,0.2);
  max-width: 360px;
}

.hero-photo {
  border-radius: 14px;
}

.card-note {
  margin-top: 12px;
  background: rgba(199,125,255,0.18);
  border-radius: 12px;
  padding: 10px;
  font-weight: 600;
}

/* =====================================================
   PRESS-ON
===================================================== */
.presson-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

.presson-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.presson-visual .card-glass {
  max-width: 360px;
}

.presson-cta {
  margin-top: 28px;
}

/* =====================================================
   SERVICIOS
===================================================== */
#services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--surface);
  border-radius: 20px;
  position: relative;
  padding: 18px;
  box-shadow: 0 16px 40px rgba(47,31,68,0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(47,31,68,0.22);
}

.service-meta {
  display: flex;
  gap: 8px;
  margin: 10px 0;
  flex-wrap: wrap;
}

.badge {
  background: rgba(199,125,255,0.2);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
/* Badge dinámico de servicio destacado */
.service-card .soft-badge {
  top: 14px;
  left: 14px;
  right: auto;
  z-index: 3;
  font-size: 0.7rem;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

/* =====================================================
   GALERÍA
===================================================== */
#gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.gallery-item {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(47,31,68,0.18);
  cursor: pointer;
  aspect-ratio: 3 / 4;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Indicador mobile */
.gallery-item::after {
  content: 'Tocá para consultar';
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.55);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
  opacity: 0;
}

/* =====================================================
   FAQ
===================================================== */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.faq-item {
  background: #fff;
  padding: 20px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(47,31,68,0.15);
}

/* =====================================================
   UBICACIÓN / MAPA
===================================================== */
.location-card {
  margin-top: 32px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(47,31,68,0.18);
}

.location-card iframe {
  width: 100%;
  height: 360px;
  border: 0;
}

.location-link {
  text-decoration-color: rgba(199,125,255,0.6);
  transition: color 0.2s ease;
}

.location-link:hover {
  color: var(--lilac-strong);
}

/* =====================================================
   FOOTER
===================================================== */
.footer {
  background: #2f1f44;
  color: #fff;
  padding: 32px 0;
}

.footer-text {
  color: #d8cbed;
}

/* =====================================================
   FLOATING WHATSAPP
===================================================== */
.floating-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  background: #25d366;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.25);
  z-index: 100;
}

/* =====================================================
   MOBILE BEHAVIOR
===================================================== */
@media (hover: none) {
  .gallery-item::after {
    opacity: 1;
  }
}

/* =====================================================
   DESKTOP AJUSTES
===================================================== */
@media (min-width: 768px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .presson-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }
}

@media (min-width: 1024px) {
  .site-header {
    top: 0;
  }

  .nav-bar {
    border-radius: 16px;
    padding: 12px 24px;
  }

  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    background: transparent;
    box-shadow: none;
    gap: 10px;
  }

  .nav-toggle {
    display: none;
  }

  .hero-visual .card-glass {
    background: transparent;
    box-shadow: none;
    padding: 0;
    max-width: 420px;
  }

  .hero-photo {
    border-radius: 18px;
    box-shadow: 0 22px 50px rgba(47,31,68,0.25);
  }
}

html {
  scroll-behavior: smooth;
}


/* =====================================================
   SOFTGEL VS POLYGEL (COMPARATIVA)
===================================================== */

.soft-poly {
  background: rgba(255,255,255,0.6);
}

.soft-poly-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 32px;
}

/* Cards */
.soft-poly-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 16px 40px rgba(47,31,68,0.12);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.soft-poly-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(47,31,68,0.2);
}

.soft-poly-card h3 {
  margin-bottom: 14px;
  color: var(--deep);
}

.soft-poly-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.soft-poly-card li {
  margin-bottom: 10px;
  color: var(--muted);
  font-weight: 500;
}

/* Destacado Softgel */
.soft-poly-card.featured {
  border: 2px solid rgba(199,125,255,0.45);
}

/* Badge "Más elegido" */
.soft-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, #ffd166, #f4a261);
  color: #2f1f44;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 999px;
}

/* Desktop */
@media (min-width: 768px) {
  .soft-poly-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* =====================
   PRESS-ON SLIDER
===================== */

.presson-slider {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.presson-track {
  display: flex;
  gap: 16px;
  padding: 10px 2px 20px;
}

.presson-slide {
  min-width: 220px;
  max-width: 240px;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(47,31,68,.18);
  scroll-snap-align: start;
  cursor: pointer;
  overflow: hidden;
}

.presson-slide img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.presson-info {
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  font-weight: 800;
}

/* =====================
   GALLERY SLIDER
===================== */

.gallery-filters {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 14px;
}

.gallery-filter {
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(199,125,255,0.18);
  cursor: pointer;
  white-space: nowrap;
}

.gallery-filter.active {
  background: linear-gradient(135deg, var(--lilac), var(--lilac-strong));
  color: #fff;
}

/* Slider */
.gallery-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
}

.gallery-item {
  flex: 0 0 75%;
  max-width: 75%;
  scroll-snap-align: start;
}

.gallery-item img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
}

/* Desktop */
@media (min-width: 768px) {
  .gallery-item {
    flex: 0 0 30%;
    max-width: 30%;
  }

  .gallery-item img {
    height: 360px;
  }
}


/* =====================================================
   GALLERY · MODAL FULLSCREEN
===================================================== */

.gallery-modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 10, 35, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
}

.gallery-modal.open {
  display: flex;
}

.gallery-modal-content {
  max-width: 92%;
  max-height: 88%;
  position: relative;
}

.gallery-modal img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 18px;
  box-shadow: 0 22px 50px rgba(0,0,0,.45);
}

.gallery-modal-close {
  position: absolute;
  top: -16px;
  right: -16px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  width: 38px;
  height: 38px;
  font-weight: 900;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* CTA dentro del modal */
.gallery-modal-cta {
  margin-top: 16px;
  text-align: center;
}

/* =====================================================
   INDICADOR DESLIZAR
===================================================== */

.gallery-slider-wrapper {
  position: relative;
}

.gallery-slider-wrapper::after {
  content: 'Deslizá →';
  position: absolute;
  right: 10px;
  bottom: -18px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

/* Solo mobile */
@media (min-width: 768px) {
  .gallery-slider-wrapper::after {
    display: none;
  }
}
