/* ===================================================
   OKASHI Pastelería — Estilos
   =================================================== */

:root {
  --bg: #120d0b;
  --bg-alt: #1a1310;
  --bg-card: #201814;
  --gold: #c79a4b;
  --gold-light: #e8cd8e;
  --wine: #8c1f2c;
  --cream: #f6efe4;
  --muted: #b8a99a;
  --border: rgba(199, 154, 75, 0.22);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --serif: 'Cormorant Garamond', serif;
  --sans: 'Jost', sans-serif;
  --wa: #25d366;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--gold-light);
  letter-spacing: 0.3px;
}

em { color: var(--gold); font-style: italic; }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.75rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.eyebrow.center { text-align: center; }

.section-title { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 12px; }
.section-title.center { text-align: center; }
.section-sub {
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 46px;
  text-align: center;
  font-size: 0.98rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.92rem;
  letter-spacing: 0.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #1a1310;
  font-weight: 500;
}
.btn-primary:hover { box-shadow: 0 10px 28px rgba(199, 154, 75, 0.35); transform: translateY(-2px); }

.btn-whatsapp {
  background: var(--wa);
  color: #06170d;
  font-weight: 500;
}
.btn-whatsapp:hover { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.35); transform: translateY(-2px); }

.btn-lg { padding: 16px 34px; font-size: 1rem; }
.btn-block { width: 100%; }

.icon-wa { width: 19px; height: 19px; fill: currentColor; flex-shrink: 0; }

.link-underline {
  display: inline-block;
  margin-top: 10px;
  color: var(--gold-light);
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  font-size: 0.95rem;
  transition: opacity 0.2s ease;
}
.link-underline:hover { opacity: 0.75; }

/* ===== Header ===== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(18, 13, 11, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.3s ease;
}
.site-header.scrolled {
  background: rgba(18, 13, 11, 0.92);
  border-bottom-color: var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
}

.logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--cream);
}
.logo span { color: var(--gold); }

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav-link {
  font-size: 0.88rem;
  letter-spacing: 0.5px;
  color: var(--muted);
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav-link:hover { color: var(--cream); }
.nav-link:hover::after { width: 100%; }

.nav-cta { padding: 10px 20px; font-size: 0.82rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold-light);
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 78px;
  background:
    radial-gradient(circle at 20% 20%, rgba(199, 154, 75, 0.10), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(140, 31, 44, 0.18), transparent 50%),
    linear-gradient(180deg, #150f0c 0%, #120d0b 60%, #0e0a08 100%);
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.petal {
  position: absolute;
  color: var(--gold);
  opacity: 0.35;
  font-size: 1.4rem;
  animation: float 9s ease-in-out infinite;
}
.petal-1 { top: 18%; left: 8%; animation-delay: 0s; }
.petal-2 { top: 65%; left: 14%; font-size: 1rem; animation-delay: 1.5s; }
.petal-3 { top: 28%; right: 12%; font-size: 1.7rem; animation-delay: 0.8s; }
.petal-4 { top: 72%; right: 20%; font-size: 1.1rem; animation-delay: 2.4s; }

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-22px) rotate(20deg); }
}

.hero-inner { text-align: center; padding: 60px 24px 90px; }

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.12;
  margin-bottom: 22px;
}

.hero-sub {
  max-width: 560px;
  margin: 0 auto 38px;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 6vw, 64px);
  flex-wrap: wrap;
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.9rem;
  color: var(--gold-light);
}
.hero-stats span {
  font-size: 0.78rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 20px;
}
.scroll-cue span {
  display: block;
  width: 4px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  margin: 7px auto 0;
  animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ===== About ===== */
.about { padding: 110px 0; background: var(--bg); }
.about-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.about-svg { width: 100%; height: auto; }

.about-text h2 { font-size: clamp(1.9rem, 3.2vw, 2.5rem); margin-bottom: 18px; }
.about-text p { color: var(--muted); margin-bottom: 20px; }
.about-list { list-style: none; margin-bottom: 8px; }
.about-list li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 10px;
  color: var(--cream);
  font-size: 0.95rem;
}
.about-list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 0.8rem;
}

/* ===== Products ===== */
.products { padding: 110px 0; background: var(--bg-alt); }

.filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 46px;
}
.filter-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 9px 20px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.filter-btn:hover { color: var(--cream); border-color: var(--gold); }
.filter-btn.active {
  background: var(--gold);
  color: #1a1310;
  border-color: var(--gold);
  font-weight: 500;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--gold);
}

.product-media {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.product-media svg { width: 100%; height: 100%; }

.product-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(18, 13, 11, 0.75);
  color: var(--gold-light);
  font-size: 0.68rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
}

.product-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.product-body h3 { font-size: 1.25rem; }
.product-body p {
  color: var(--muted);
  font-size: 0.88rem;
  flex: 1;
  margin-bottom: 6px;
}

.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.price { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-light); font-weight: 600; }

.order-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--wa);
  color: var(--wa);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: all 0.25s ease;
}
.order-btn:hover { background: var(--wa); color: #06170d; }
.order-btn svg { width: 15px; height: 15px; fill: currentColor; }

/* ===== Testimonials ===== */
.testimonials { padding: 110px 0; background: var(--bg); }
.testi-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.testi-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  position: relative;
}
.testi-card::before {
  content: '“';
  font-family: var(--serif);
  font-size: 3.5rem;
  color: var(--gold);
  opacity: 0.5;
  position: absolute;
  top: 6px;
  left: 20px;
}
.testi-card p {
  font-family: var(--serif);
  font-size: 1.08rem;
  color: var(--cream);
  margin: 26px 0 18px;
  font-style: italic;
}
.testi-card span { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.5px; }

/* ===== Contact ===== */
.contact { padding: 110px 0; background: var(--bg-alt); }
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-text h2 { font-size: clamp(1.8rem, 3vw, 2.3rem); margin-bottom: 16px; }
.contact-text p { color: var(--muted); margin-bottom: 28px; }

.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 34px;
}
.info-item { display: flex; flex-direction: column; gap: 4px; }
.info-label {
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
}
.info-item span:last-child { color: var(--cream); font-size: 0.95rem; }

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: var(--shadow);
}
.contact-form h3 { font-size: 1.4rem; margin-bottom: 6px; }

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.95rem;
  resize: vertical;
  transition: border-color 0.2s ease;
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-hint { color: var(--muted); font-size: 0.75rem; text-align: center; }

/* ===== Footer ===== */
.footer { background: #0e0a08; padding: 60px 0 30px; border-top: 1px solid var(--border); }
.footer-inner { text-align: center; }
.footer-tag { color: var(--muted); font-size: 0.9rem; margin: 14px 0 24px; }
.footer-social { display: flex; justify-content: center; gap: 26px; margin-bottom: 30px; }
.footer-social a { color: var(--muted); font-size: 0.85rem; transition: color 0.2s ease; }
.footer-social a:hover { color: var(--gold); }
.footer-copy { color: #7a6d61; font-size: 0.78rem; }

/* ===== Floating WhatsApp ===== */
.float-wa {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 58px;
  height: 58px;
  background: var(--wa);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4);
  z-index: 900;
  animation: pulse 2.4s ease-in-out infinite;
}
.float-wa .icon-wa { width: 28px; height: 28px; color: #06170d; }
@keyframes pulse {
  0%, 100% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 10px 28px rgba(37, 211, 102, 0.75), 0 0 0 8px rgba(37, 211, 102, 0.08); }
}

.to-top {
  position: fixed;
  bottom: 26px;
  left: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-inner, .contact-inner { grid-template-columns: 1fr; }
  .about-media { order: 2; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed;
    top: 78px;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(14, 10, 8, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    transform: translateX(100%);
    transition: transform 0.35s ease;
  }
  .nav.open { transform: translateX(0); }
  .nav-link { font-size: 1.1rem; }
  .nav-cta { margin-top: 10px; }
  .hamburger { display: flex; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 320px; }

  .contact-info { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .float-wa { width: 52px; height: 52px; bottom: 18px; right: 18px; }
  .to-top { bottom: 18px; left: 18px; width: 40px; height: 40px; }
}
