/* =============================================
   SAL SÍ PUEDES — Coastal Editorial Luxury
   ============================================= */

:root {
  --gold: #8B6914;
  --gold-light: #C8A96E;
  --gold-glow: rgba(139, 105, 20, 0.25);
  --teal: #2B7A78;
  --teal-deep: #1B5E5C;
  --sand: #F5F0E8;
  --sand-dark: #E8DFD2;
  --cream: #FAF8F5;
  --sunset: #E8A838;
  --olive: #5B8C3E;
  --wine: #7B2D4F;
  --dark: #1a1a1a;
  --dark-warm: #2a2420;
  --text: #3a3530;
  --text-light: #7a7268;
  --white: #ffffff;
  --whatsapp: #25d366;
  --whatsapp-dark: #1da851;

  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Outfit', -apple-system, sans-serif;

  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

/* --- Reset & Base --- */

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--sand);
  line-height: 1.6;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

/* --- Grain Texture Overlay --- */

.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px;
}

/* --- Header --- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 0;
  transition: all 0.5s var(--ease-out-expo);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.5s var(--ease-out-expo);
}

.header--scrolled {
  background: rgba(245, 240, 232, 0.92);
  backdrop-filter: blur(20px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(139, 105, 20, 0.08);
}

.header--scrolled .header-inner {
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
  transition: all 0.4s var(--ease-out-expo);
  border: 2px solid rgba(139, 105, 20, 0.15);
}

.header--scrolled .header-logo-img {
  height: 40px;
  width: 40px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-light);
  transition: color 0.3s;
  position: relative;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--gold);
  transition: width 0.4s var(--ease-out-expo);
}

.nav a:hover {
  color: var(--dark);
}

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

.nav-cta {
  background: var(--dark);
  color: var(--cream) !important;
  padding: 0.6rem 1.5rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  transition: all 0.3s var(--ease-out-expo) !important;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--gold) !important;
  transform: translateY(-1px);
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.3s var(--ease-out-expo);
  transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(245, 240, 232, 0.98);
  backdrop-filter: blur(30px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-out-expo);
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--dark);
  transition: color 0.3s;
}

.mobile-link:hover {
  color: var(--gold);
}

.mobile-link.cta {
  margin-top: 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--dark);
  color: var(--cream);
  padding: 1rem 2.5rem;
  border-radius: 100px;
}

/* --- Hero --- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transform: scale(1.05);
  animation: heroZoom 20s var(--ease-out-expo) forwards;
}

@keyframes heroZoom {
  to { transform: scale(1); }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(26, 26, 26, 0.3) 0%,
      rgba(26, 26, 26, 0.15) 40%,
      rgba(26, 26, 26, 0.5) 70%,
      rgba(26, 26, 26, 0.85) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--white);
  padding: 8rem 1rem 10rem;
}

/* Hero animations */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

.hero-badge {
  margin-bottom: 2rem;
}

.hero-badge {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.hero-logo {
  width: clamp(120px, 20vw, 180px);
  height: clamp(120px, 20vw, 180px);
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: logoPulse 4s ease-in-out infinite alternate;
}

@keyframes logoPulse {
  from { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 0 0 rgba(200, 169, 110, 0); }
  to { box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 40px 4px rgba(200, 169, 110, 0.15); }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.hero h1 em {
  font-style: italic;
  color: var(--gold-light);
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
  margin-bottom: 3rem;
}

.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  background: var(--gold-light);
  padding: 1rem 2.5rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(139, 105, 20, 0.3);
}

.btn-hero:hover {
  background: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 8px 35px rgba(139, 105, 20, 0.4);
}

/* Wave divider */
.wave-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  z-index: 3;
  line-height: 0;
}

.wave-divider svg {
  width: 100%;
  height: clamp(60px, 8vw, 120px);
}

/* --- About Section --- */

.about {
  padding: clamp(5rem, 10vw, 10rem) 0;
  background: var(--sand);
  position: relative;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 6rem);
  align-items: center;
}

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
  position: relative;
  padding-left: 2.5rem;
}

.section-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 2rem;
  height: 1.5px;
  background: var(--gold);
}

.section-label--light {
  color: var(--gold-light);
}

.section-label--light::before {
  background: var(--gold-light);
}

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

.about-text h2 em {
  font-style: italic;
  color: var(--teal);
}

.about-text p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-light);
  margin-bottom: 1rem;
  max-width: 480px;
}

.about-origin {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.origin-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--sand-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.02em;
}

.origin-flag {
  font-size: 1.1rem;
}

.origin-icon {
  color: var(--gold);
  font-size: 0.9rem;
}

.about-visual {
  position: relative;
}

.about-img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.about-img-accent {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  border: 2px solid var(--gold-light);
  border-radius: 16px;
  opacity: 0.3;
  z-index: -1;
}

/* --- Products Section --- */

.products {
  position: relative;
  padding: clamp(5rem, 10vw, 10rem) 0;
  background: var(--dark);
  color: var(--cream);
  overflow: hidden;
}

.products-bg-texture {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 20% 50%, var(--gold) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, var(--teal) 0%, transparent 40%),
    radial-gradient(circle at 60% 80%, var(--sunset) 0%, transparent 50%);
}

.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 1rem;
}

.section-header h2 em {
  font-style: italic;
  color: var(--gold-light);
}

.section-subtitle {
  font-size: 1.05rem;
  color: rgba(245, 240, 232, 0.55);
  line-height: 1.7;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.product-card {
  position: relative;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.5s var(--ease-out-expo);
  cursor: default;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(200, 169, 110, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.product-card-img {
  position: relative;
  overflow: hidden;
}

.product-card-img img {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-expo);
}

.product-card:hover .product-card-img img {
  transform: scale(1.05);
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.product-card-body p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(245, 240, 232, 0.5);
}

.product-card-glow {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-light), transparent);
  opacity: 0;
  transition: opacity 0.5s;
}

.product-card:hover .product-card-glow {
  opacity: 1;
}

.product-card-glow--wine {
  background: linear-gradient(90deg, transparent, var(--wine), transparent);
}

.product-card--featured {
  border-color: rgba(200, 169, 110, 0.12);
}

/* --- Product Price --- */

.product-price {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  padding-top: 0.5rem;
}

.product-price small {
  font-size: 0.7rem;
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.6;
  letter-spacing: 0.04em;
}

/* --- Bundle Card --- */

.bundle-card {
  margin-top: 3rem;
  background: linear-gradient(135deg, rgba(200, 169, 110, 0.08), rgba(139, 105, 20, 0.15));
  border: 1px solid rgba(200, 169, 110, 0.2);
  border-radius: 16px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.bundle-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(200, 169, 110, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.bundle-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
}

.bundle-text {
  flex: 1;
}

.bundle-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--dark);
  background: var(--gold-light);
  padding: 0.35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.bundle-text h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 0.5rem;
}

.bundle-text p {
  font-size: 0.95rem;
  color: rgba(245, 240, 232, 0.5);
  line-height: 1.6;
  max-width: 400px;
}

.bundle-pricing {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
}

.bundle-original {
  font-size: 1rem;
  color: rgba(245, 240, 232, 0.35);
  text-decoration: line-through;
}

.bundle-price {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
}

.bundle-price small {
  font-size: 0.8rem;
  font-family: var(--font-body);
  font-weight: 400;
  opacity: 0.6;
}

.bundle-save {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--olive);
  letter-spacing: 0.02em;
}

.btn-bundle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--dark);
  background: var(--gold-light);
  padding: 0.85rem 2rem;
  border-radius: 100px;
  margin-top: 0.75rem;
  transition: all 0.4s var(--ease-out-expo);
}

.btn-bundle:hover {
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 169, 110, 0.3);
}

/* --- CTA Section --- */

.cta-section {
  position: relative;
  background: var(--sand);
  padding: clamp(6rem, 12vw, 12rem) 0 clamp(5rem, 10vw, 8rem);
  text-align: center;
}

.cta-wave-top {
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  line-height: 0;
}

.cta-wave-top svg {
  width: 100%;
  height: clamp(40px, 6vw, 80px);
}

.cta-content {
  max-width: 600px;
}

.cta-logo {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 2rem;
  border: 2px solid var(--sand-dark);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 1rem;
}

.cta-section h2 em {
  font-style: italic;
  color: var(--teal);
}

.cta-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--white);
  background: var(--whatsapp);
  padding: 1.1rem 2.8rem;
  border-radius: 100px;
  transition: all 0.4s var(--ease-out-expo);
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.btn-whatsapp:hover {
  background: var(--whatsapp-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(37, 211, 102, 0.35);
}

/* --- Footer --- */

.footer {
  background: var(--dark);
  padding: 3.5rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.6;
}

.footer-tagline {
  font-family: var(--font-display);
  font-size: 1rem;
  font-style: italic;
  color: rgba(245, 240, 232, 0.4);
}

.footer-line {
  width: 40px;
  height: 1px;
  background: rgba(245, 240, 232, 0.1);
  margin: 0.5rem 0;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.25);
  letter-spacing: 0.04em;
}

/* --- Scroll Animations --- */

[data-animate-scroll] {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.9s var(--ease-out-expo);
}

[data-animate-scroll].in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger product cards */
.product-card:nth-child(2) { transition-delay: 0.08s; }
.product-card:nth-child(3) { transition-delay: 0.16s; }
.product-card:nth-child(4) { transition-delay: 0.24s; }
.product-card:nth-child(5) { transition-delay: 0.32s; }

/* --- Responsive --- */

@media (max-width: 900px) {
  .bundle-content {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  .bundle-text p {
    max-width: 100%;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-visual {
    order: -1;
  }

  .about-img {
    aspect-ratio: 4/3;
  }

  .about-img-accent {
    display: none;
  }

  .about-text p {
    max-width: 100%;
  }

  .product-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 640px) {
  .nav {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .hero-content {
    padding: 7rem 1rem 8rem;
  }

  .product-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .product-card-body {
    padding: 1rem;
  }

  .product-card-body h3 {
    font-size: 1.2rem;
  }

  .product-card-body p {
    font-size: 0.8rem;
  }

  .about-origin {
    flex-direction: column;
  }
}

@media (max-width: 400px) {
  .product-grid {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .product-card-img img {
    aspect-ratio: 1/1;
  }
}
