/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Nunito', sans-serif;
  color: #3a3a3a;
  background: #fff;
  overflow-x: hidden;
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

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

ul {
  list-style: none;
}

/* =========================================
   TEXTURA SUTIL (granos de sal)
   ========================================= */
.salt-texture {
  position: relative;
}

.salt-texture::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
  z-index: 0;
}

/* =========================================
   ANIMACIONES
   ========================================= */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay-1 { transition-delay: 0.15s; }
.fade-in-delay-2 { transition-delay: 0.3s; }
.fade-in-delay-3 { transition-delay: 0.45s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 1; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 102, 196, 0.3); }
  50% { box-shadow: 0 0 40px rgba(255, 102, 196, 0.6); }
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.97);
  padding: 0.6rem 1.5rem;
  box-shadow: 0 2px 20px rgba(204, 0, 126, 0.1);
}

.navbar__logo img {
  height: 50px;
  transition: height 0.4s ease;
}

.navbar.scrolled .navbar__logo img {
  height: 38px;
}

.navbar__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.navbar__links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white);
  transition: color 0.3s ease;
  position: relative;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar.scrolled .navbar__links a {
  color: var(--accent);
}

.navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.navbar__toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--white);
  border-radius: 2px;
  transition: background 0.3s ease, transform 0.3s ease;
}

.navbar.scrolled .navbar__toggle span {
  background: var(--accent);
}

@media (max-width: 768px) {
  .navbar__toggle {
    display: flex;
  }

  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transition: right 0.4s ease;
    box-shadow: -4px 0 30px rgba(0,0,0,0.15);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__links a {
    color: var(--accent) !important;
    font-size: 1.2rem;
  }

  .nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
  }

  .nav-overlay.active {
    opacity: 1;
    pointer-events: all;
  }
}

/* =========================================
   HERO
   ========================================= */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--gradient);
  position: relative;
  padding: 6rem 1.5rem 4rem;
  overflow: hidden;
}

/* Elementos decorativos del hero */
.hero__decorations {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__moon {
  position: absolute;
  top: 12%;
  right: 8%;
  opacity: 0.15;
  animation: float 6s ease-in-out infinite;
}

.hero__star {
  position: absolute;
  opacity: 0.25;
}

.hero__star--1 { top: 18%; left: 10%; animation: twinkle 3s ease-in-out infinite; }
.hero__star--2 { top: 30%; right: 15%; animation: twinkle 4s ease-in-out infinite 1s; }
.hero__star--3 { bottom: 25%; left: 18%; animation: twinkle 3.5s ease-in-out infinite 0.5s; }
.hero__star--4 { top: 45%; left: 5%; animation: twinkle 4.5s ease-in-out infinite 1.5s; }
.hero__star--5 { bottom: 35%; right: 10%; animation: twinkle 3s ease-in-out infinite 2s; }

.hero__palm {
  position: absolute;
  bottom: -5%;
  opacity: 0.08;
}

.hero__palm--left { left: -3%; transform: rotate(15deg); }
.hero__palm--right { right: -3%; transform: rotate(-15deg) scaleX(-1); }

/* Ondas decorativas */
.hero__waves {
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  z-index: 1;
}

.hero__logo {
  width: 200px;
  max-width: 55vw;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 30px rgba(204, 0, 126, 0.3));
}

.hero__slogan {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.8rem);
  color: var(--white);
  margin-bottom: 0.8rem;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 15px rgba(204, 0, 126, 0.3);
}

.hero__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  color: var(--white);
  font-weight: 300;
  max-width: 540px;
  margin: 0 auto 2rem;
  position: relative;
  z-index: 2;
  opacity: 0.95;
}

.btn {
  display: inline-block;
  padding: 0.9rem 2.2rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  position: relative;
  z-index: 2;
}

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

.btn--white {
  background: var(--white);
  color: var(--accent);
  box-shadow: 0 4px 20px rgba(204, 0, 126, 0.25);
}

.btn--white:hover {
  box-shadow: 0 8px 30px rgba(204, 0, 126, 0.35);
}

.btn--gradient {
  background: var(--gradient);
  color: var(--white);
  box-shadow: var(--shadow);
}

.btn--gradient:hover {
  box-shadow: var(--shadow-lg);
}

.btn--outline {
  background: transparent;
  color: var(--accent);
  border: 2px solid var(--accent);
}

.btn--outline:hover {
  background: var(--accent);
  color: var(--white);
}

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

/* Offset para navbar fijo: evita que el título quede oculto al navegar por anclas */
section,
[id] {
  scroll-margin-top: 80px;
}

section {
  padding: 5rem 1.5rem;
}

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.5rem;
}

.section__divider {
  width: 80px;
  height: 4px;
  background: var(--gradient);
  border-radius: 2px;
  margin: 0 auto 3rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* =========================================
   HISTORIA / ORIGEN
   ========================================= */
.origin {
  background: #fff;
  position: relative;
}

.origin__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .origin__cards {
    grid-template-columns: repeat(3, 1fr);
  }
}

.origin__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.origin__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.origin__card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.origin__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255,102,196,0.1), rgba(255,222,89,0.1));
  border-radius: 50%;
  padding: 14px;
}

.origin__icon svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.origin__card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.origin__card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
}

.origin__narrative {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  color: #555;
  line-height: 1.8;
  font-style: italic;
  position: relative;
  padding: 1.5rem 2rem;
}

.origin__narrative::before,
.origin__narrative::after {
  content: '"';
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--pink);
  opacity: 0.3;
  position: absolute;
  line-height: 1;
}

.origin__narrative::before {
  top: -0.2rem;
  left: 0;
}

.origin__narrative::after {
  content: '"';
  bottom: -1rem;
  right: 0;
}

/* =========================================
   PRODUCTOS
   ========================================= */
.products {
  background: linear-gradient(180deg, #fff5fb 0%, #fff 100%);
  position: relative;
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card__header {
  background: var(--gradient);
  padding: 2.5rem 1.5rem;
  text-align: center;
  position: relative;
}

.product-card__header .salt-texture::before {
  border-radius: 0;
}

.product-card__icon {
  margin: 0 auto;
}

.product-card__header--photo {
  background: #fdf6f0;
  padding: 0;
  height: 280px;
}

.product-card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.product-card__badge {
  display: inline-block;
  background: var(--white);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: 50px;
  position: absolute;
  top: 1rem;
  right: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__body {
  padding: 1.8rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.3rem;
}

.product-card__weight {
  font-size: 0.85rem;
  color: #999;
  font-weight: 600;
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.product-card__cta {
  margin-top: auto;
}

.product-card__cta .btn {
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.product-card__cta .btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Tarjeta "Próximamente" */
.product-card--upcoming {
  opacity: 0.7;
  position: relative;
}

.product-card--upcoming .product-card__header {
  background: linear-gradient(90deg, #d4d4d4, #e8e8e8);
}

.product-card--upcoming .product-card__badge {
  background: var(--accent);
  color: var(--white);
}

.product-card--upcoming:hover {
  transform: none;
  box-shadow: var(--shadow);
}

/* =========================================
   VALORES
   ========================================= */
.values {
  background: linear-gradient(180deg, #fff 0%, #fff5fb 100%);
}

/* Grid Misión / Visión */
.values__mv-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .values__mv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.values__mv-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2.5rem 1.5rem;
  text-align: left;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.values__mv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient);
}

.values__mv-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.values__mv-card .origin__icon {
  margin: 0 0 1.2rem;
}

.values__mv-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--accent);
  margin-bottom: 0.6rem;
}

.values__mv-card p {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.7;
}

/* Subtítulo de la sección de valores */
.values__subtitle {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Grid de los 8 valores */
.values__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .values__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .values__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.values__card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 1.5rem 1.2rem;
  box-shadow: var(--shadow);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.values__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
}

.values__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.values__card-icon {
  display: block;
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.values__card h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.values__card p {
  font-size: 0.88rem;
  color: #666;
  line-height: 1.6;
}

/* Lema */
.values__lema {
  background: linear-gradient(135deg, rgba(255,102,196,0.08), rgba(255,222,89,0.12));
  border-radius: var(--radius);
  border: 1px solid rgba(204,0,126,0.15);
  padding: 2.5rem 2rem;
  text-align: center;
}

.values__lema-quote {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: var(--accent);
  margin-bottom: 2rem;
}

.values__lema-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  justify-content: center;
}

.values__lema-pill {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  background: var(--white);
  border-radius: 50px;
  padding: 0.7rem 1.4rem;
  box-shadow: 0 2px 12px rgba(204,0,126,0.1);
}

.values__lema-pill-icon {
  font-size: 1.4rem;
}

.values__lema-pill div {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.values__lema-pill strong {
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 700;
}

.values__lema-pill span {
  font-size: 0.78rem;
  color: #888;
}

/* =========================================
   CONTACTO / CÓMO COMPRAR
   ========================================= */
.contact {
  background: #fff;
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.step__number {
  width: 56px;
  height: 56px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--white);
  margin: 0 auto 1rem;
  box-shadow: 0 4px 15px rgba(255, 102, 196, 0.3);
}

.step h3 {
  font-size: 1.1rem;
  color: var(--accent);
  margin-bottom: 0.4rem;
}

.step p {
  font-size: 0.9rem;
  color: #777;
}

/* Conector entre pasos (desktop) */
@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 28px;
    right: -10%;
    width: 20%;
    height: 2px;
    background: var(--gradient);
    transform: translateY(50%);
  }
}

.contact__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.contact__buttons .btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.contact__buttons .btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Formulario */
.contact-form {
  max-width: 500px;
  margin: 0 auto 2.5rem;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  text-align: center;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.2rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 0.4rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 2px solid #eee;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  outline: none;
  background: #fafafa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 102, 196, 0.1);
  background: #fff;
}

.form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.contact-form .btn {
  width: 100%;
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem;
}

.form-success.active {
  display: block;
}

.form-success svg {
  width: 60px;
  height: 60px;
  margin-bottom: 1rem;
}

.form-success h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.form-success p {
  color: #777;
}

/* Banner tienda online */
.shop-banner {
  text-align: center;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255,102,196,0.05), rgba(255,222,89,0.05));
  border-radius: var(--radius);
  border: 1px dashed rgba(204,0,126,0.2);
}

.shop-banner__badge {
  display: inline-block;
  background: var(--gradient);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.shop-banner p {
  font-size: 0.95rem;
  color: #888;
}

/* =========================================
   FOOTER
   ========================================= */
.footer {
  background: var(--gradient);
  padding: 2.5rem 1.5rem;
  text-align: center;
  color: var(--white);
  position: relative;
}

.footer .salt-texture::before {
  opacity: 0.15;
}

.footer__logo {
  height: 50px;
  margin-bottom: 1rem;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

.footer__text {
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

.footer__links a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--white);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.3s ease;
}

.footer__links a:hover {
  opacity: 0.8;
}

.footer__links svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* =========================================
   RESPONSIVE
   ========================================= */
@media (min-width: 768px) {
  section {
    padding: 6rem 2rem;
  }

  .hero__logo {
    width: 260px;
  }
}

@media (min-width: 1024px) {
  .hero__logo {
    width: 300px;
  }
}
