html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color: #f5efe6; /* crema base */
  color: #4a2a1a; /* café profundo */
  position: relative;
  overflow-x: hidden;
}

/* Textura granulada para elevar el aspecto visual */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 50;
  opacity: 0.035;
  background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
}

/* Navbar tipo cápsula / Editorial glassmorphism */
.nav-pill {
  background: rgba(245, 239, 230, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(93, 110, 84, 0.1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav-scrolled .nav-pill {
  background: rgba(245, 239, 230, 0.95);
  box-shadow: 0 15px 35px rgba(74, 42, 26, 0.05);
  border-color: transparent;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* Botón principal Terracota con sombras orgánicas */
.btn-terracotta {
  background: linear-gradient(135deg, #b8643c, #cc744a);
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
  z-index: 0;
}

.btn-terracotta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  transition: left 0.7s ease;
  z-index: -1;
}

.btn-terracotta:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -10px rgba(184, 100, 60, 0.5);
}

.btn-terracotta:hover::after {
  left: 140%;
}

/* Espaciados editoriales fuertes */
.section-padding {
  padding-top: max(6rem, 12vh);
  padding-bottom: max(6rem, 12vh);
}

/* Efecto de enmascarado orgánico para imágenes */
.image-mask-organic {
  border-radius: 2rem 10rem 2rem 8rem;
  overflow: hidden;
  box-shadow: 0 40px 60px -20px rgba(74, 42, 26, 0.1);
  transition: border-radius 0.8s ease;
}
.image-mask-organic:hover {
  border-radius: 4rem 8rem 4rem 10rem;
}

/* Imágenes con zoom sutil (efecto boutique) */
.img-zoom-hover {
  overflow: hidden;
  position: relative;
}
.img-zoom-hover img {
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.img-zoom-hover:hover img {
  transform: scale(1.04);
}

/* WhatsApp Flotante Premium */
.wa-float {
  background-color: #25d366;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wa-float:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.5);
}

/* Texto emocional */
.italic-premium {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  font-weight: 500;
}

.emotional-slider {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.emotional-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 1.8s ease-in-out,
    transform 7s ease-in-out;
}

.emotional-slide.active {
  opacity: 1;
  transform: scale(1.12);
}
