/* =========================================================
   Natural Beauty - Estilo principal
   Versión: Sin precios - Estilo B - Opción 1
   ========================================================= */

:root {
  --lila-base: #aa82c8;
  --lila-oscuro: #5b3e7e;
  --lila-transparente: rgba(170, 130, 200, 0.12);
  --verde-natural: #5e9860;
  --verde-suave: #cde8c5;
  --texto: #0f172a;
  --texto-suave: #6b7280;
  --blanco: #ffffff;
  --gris-fondo: #f3f4f6;
  --sombra-soft: 0 18px 45px rgba(15, 23, 42, 0.12);
  --radio-xl: 28px;
  --transition: 200ms ease-out;
  --max-width: 1120px;
}

/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--texto);
  background:
    radial-gradient(circle at top left, rgba(170, 130, 200, 0.22), transparent 55%),
    radial-gradient(circle at bottom right, rgba(96, 165, 250, 0.18), transparent 55%),
    #f9fafb;
}

/* Contenedor general */
.nb-page {
  min-height: 100vh;
}

/* ================= CABECERA / NAV ================= */

.nb-header {
  position: relative;
  padding: 1.2rem 1rem 2.4rem;
}

.nb-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 420px;
  background:
    linear-gradient(135deg, rgba(91, 62, 126, 0.93), rgba(170, 130, 200, 0.9)),
    url("../img/fondo-textura-flores.png");
  background-size: cover;
  background-position: center;
  opacity: 0.96;
  z-index: -1;
  border-radius: 0 0 36px 36px;
}

.nb-header-inner {
  max-width: var(--max-width);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  color: var(--blanco);
}

/* Logos */
.nb-logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nb-logo-round {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.2);
  padding: 4px;
}

.nb-logo-horizontal {
  max-width: 160px;
}

/* Nav */
.nb-nav {
  justify-self: center;
  position: relative;
}

.nb-nav-list {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.nb-nav-list a {
  color: var(--blanco);
  text-decoration: none;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.9;
}

.nb-nav-list a:hover {
  opacity: 1;
}

/* Toggle móvil */
.nb-nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: none;
  padding: 4px;
  cursor: pointer;
}

.nb-nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blanco);
  border-radius: 999px;
}

/* Contacto header */
.nb-header-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Pastillas pequeñas */
.nb-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  color: var(--blanco);
  font-size: 0.85rem;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px);
}

.nb-pill--whatsapp {
  background: #22c55e;
  border-color: #16a34a;
}

.nb-pill--ghost {
  background: transparent;
}

/* ================= HERO ================= */

.nb-hero {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 2.4rem;
  align-items: center;
  color: var(--blanco);
}

.nb-hero-text h1 {
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  line-height: 1.1;
  margin: 0 0 0.75rem;
}

.nb-hero-text p {
  margin: 0 0 1.4rem;
  max-width: 34rem;
  font-size: 1.02rem;
}

.nb-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.nb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.nb-btn--primary {
  background: var(--blanco);
  color: var(--lila-oscuro);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.25);
}

.nb-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.3);
}

.nb-btn--ghost {
  background: transparent;
  color: var(--blanco);
  border-color: rgba(255, 255, 255, 0.6);
}

.nb-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nb-btn--tiny {
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
}

/* Badges */
.nb-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.nb-hero-badges span {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

/* Hero media */
.nb-hero-media {
  position: relative;
  display: grid;
  place-items: center;
}

.nb-hero-main {
  width: 100%;
  max-width: 320px;
  aspect-ratio: 4/3;
  border-radius: 32px;
  overflow: hidden;
  background: var(--lila-transparente);
  box-shadow: var(--sombra-soft);
}

.nb-hero-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nb-hero-floating {
  position: absolute;
  inset: auto 0 -12%;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.nb-hero-floating img {
  width: 90px;
  height: 90px;
  border-radius: 1.5rem;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.26);
}

/* ================= SECCIONES GENERALES ================= */

.nb-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 3.2rem 1rem;
}

.nb-section-heading {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.4rem;
}

.nb-section-heading h2 {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
}

.nb-section-heading p {
  margin: 0;
  color: var(--texto-suave);
}

/* ================= LABORATORIO ================= */

.nb-lab {
  margin-top: 0.6rem;
}

.nb-lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
}

.nb-lab-card {
  background: var(--lila-transparente);
  border-radius: var(--radio-xl);
  overflow: hidden;
  padding: 0.85rem;
  box-shadow: 0 10px 30px rgba(148, 163, 184, 0.35);
}

.nb-lab-card img {
  width: 100%;
  border-radius: 20px;
  height: 190px;
  object-fit: cover;
}

.nb-lab-card figcaption {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

/* ================= PRODUCTOS / CARRUSEL ================= */

.nb-products {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 36px;
  margin-top: 1.4rem;
  box-shadow: 0 20px 50px rgba(148, 163, 184, 0.45);
}

.nb-carousel {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
}

.nb-carousel-viewport {
  overflow: hidden;
  position: relative;
  min-height: 260px;
}

.nb-product-card {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateX(12px);
  transition: opacity 220ms ease-out, transform 220ms ease-out;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 1.6rem;
  padding: 1.4rem 1rem;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(170, 130, 200, 0.09), rgba(255, 255, 255, 0.96));
}

.nb-product-card.is-active {
  position: relative;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

/* Producto media */
.nb-product-media {
  border-radius: 22px;
  overflow: hidden;
  background: var(--lila-transparente);
}

.nb-product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info */
.nb-product-info h3 {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.4rem;
}

.nb-product-info p {
  margin: 0.25rem 0;
  color: var(--texto-suave);
}

.nb-product-present {
  margin-top: 0.5rem;
  font-weight: 500;
}

.nb-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  background: var(--verde-suave);
  color: #14532d;
  font-size: 0.75rem;
}

/* Botones carrusel */
.nb-carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: none;
  background: var(--blanco);
  box-shadow: 0 10px 25px rgba(148, 163, 184, 0.6);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.3rem;
  color: var(--lila-oscuro);
  transition: transform var(--transition), box-shadow var(--transition);
}

.nb-carousel-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(148, 163, 184, 0.8);
}

.nb-products-note {
  margin-top: 2.1rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--texto-suave);
}

/* ================= SERVICIOS ================= */

.nb-services {
  margin-top: 0.8rem;
}

.nb-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.6rem;
}

.nb-service-card {
  position: relative;
  display: flex;
  justify-content: center;
}

.nb-service-card-inner {
  width: 100%;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 16px 45px rgba(148, 163, 184, 0.75);
  padding: 0.6rem 0.9rem 0.7rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
  cursor: pointer;
  border: 1px solid rgba(170, 130, 200, 0.14);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.nb-service-card-inner:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(148, 163, 184, 0.9);
  border-color: rgba(170, 130, 200, 0.55);
}

/* Imagen circular */
.nb-service-img {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid rgba(170, 130, 200, 0.45);
}

.nb-service-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nb-service-body h3 {
  margin: 0;
  font-size: 1rem;
}

.nb-service-short {
  margin: 0.25rem 0 0.35rem;
  font-size: 0.86rem;
  color: var(--texto-suave);
}

/* ================= MODAL ================= */

.nb-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;
}

.nb-modal.is-open {
  display: block;
}

.nb-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(4px);
}

.nb-modal-dialog {
  position: relative;
  max-width: 760px;
  margin: 5vh auto;
  padding: 1.2rem;
}

.nb-modal-content {
  background: #f9fafb;
  border-radius: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 1.6rem;
  box-shadow: var(--sombra-soft);
  padding: 1.6rem 1.7rem;
}

.nb-modal-close {
  position: absolute;
  top: 0.4rem;
  right: 0.5rem;
  border: none;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
  color: #64748b;
}

/* media */
.nb-modal-media img {
  width: 100%;
  border-radius: 24px;
  height: 100%;
  object-fit: cover;
}

/* body */
.nb-modal-body h3 {
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.nb-modal-body p {
  margin: 0.35rem 0;
  color: var(--texto-suave);
}

.nb-modal-contact {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.nb-modal-contact p {
  flex-basis: 100%;
  margin-bottom: 0.2rem;
}

/* ================= CONTACTO ================= */

.nb-contact {
  margin-bottom: 2.8rem;
}

.nb-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: 1.8rem;
}

.nb-contact-card {
  background: var(--lila-transparente);
  border-radius: 28px;
  padding: 1.6rem 1.7rem;
  box-shadow: 0 16px 40px rgba(148, 163, 184, 0.7);
}

.nb-contact-card h3 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.nb-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.nb-contact-label {
  font-weight: 600;
  margin-right: 0.2rem;
}

.nb-contact-list a {
  color: var(--lila-oscuro);
  text-decoration: none;
}

.nb-contact-list a:hover {
  text-decoration: underline;
}

.nb-contact-deco p {
  color: var(--texto-suave);
}

.nb-contact-deco-media {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.1rem;
}

.nb-contact-deco-media img {
  width: 33%;
  border-radius: 20px;
  height: 110px;
  object-fit: cover;
}

/* ================= FOOTER ================= */

.nb-footer {
  text-align: center;
  padding: 1.7rem 1rem 2.4rem;
  font-size: 0.9rem;
  color: var(--texto-suave);
}

.nb-footer-mini {
  font-size: 0.78rem;
  opacity: 0.9;
}

/* ================= UTILIDADES ================= */

body.nb-noscroll {
  overflow: hidden;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 960px) {
  .nb-header-inner {
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    row-gap: 0.8rem;
  }

  .nb-nav {
    justify-self: flex-end;
  }

  .nb-header-contact {
    grid-column: 1 / -1;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .nb-hero {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.1rem;
  }

  .nb-hero-media {
    order: -1;
  }

  .nb-product-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .nb-contact-grid,
  .nb-modal-content {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nb-header-inner {
    grid-template-columns: auto auto;
  }

  .nb-nav-toggle {
    display: flex;
  }

  .nb-nav-list {
    position: absolute;
    right: 0;
    top: 120%;
    background: rgba(15, 23, 42, 0.96);
    padding: 0.7rem 1rem;
    border-radius: 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.7rem;
    min-width: 180px;
    display: none;
  }

  .nb-nav-list.is-open {
    display: flex;
  }

  .nb-section {
    padding-inline: 1rem;
  }

  .nb-products {
    border-radius: 26px;
  }

  .nb-service-card-inner {
    border-radius: 999px;
  }

  .nb-contact-deco-media img {
    height: 90px;
  }

  .nb-modal-dialog {
    margin-top: 6vh;
  }
}

@media (max-width: 520px) {
  .nb-header::before {
    height: 470px;
  }

  .nb-hero-main {
    max-width: 280px;
  }

  .nb-lab-card img {
    height: 170px;
  }

  .nb-contact-card {
    padding-inline: 1.3rem;
  }

  .nb-modal-content {
    padding: 1.2rem 1.1rem 1.4rem;
  }
}
