/* Yoly Postres Casuales — estilos */

:root {
  --teal: #12969b;
  --teal-dark: #0a6266;
  --teal-light: #e3f4f4;
  --magenta: #9c1f8c;
  --magenta-dark: #711566;
  --peach: #f6d9a8;
  --peach-dark: #e8bd6f;
  --cream: #fffaf2;
  --ink: #201a2b;
  --ink-soft: #4a4256;
  --white: #ffffff;

  --font-display: "Playfair Display", Georgia, serif;
  --font-script: "Dancing Script", cursive;
  --font-body: "Poppins", "Segoe UI", sans-serif;

  --shadow-soft: 0 18px 45px -20px rgba(32, 26, 43, 0.35);
  --shadow-card: 0 10px 30px -12px rgba(32, 26, 43, 0.25);
  --radius-lg: 26px;
  --radius-md: 16px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  z-index: 999;
  background: var(--white);
  padding: 10px 16px;
  border-radius: 10px;
  box-shadow: var(--shadow-card);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 250, 242, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(32, 26, 43, 0.06);
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.brand__logo {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 14px -6px rgba(32, 26, 43, 0.4);
}
.site-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
  font-weight: 500;
  font-size: 0.95rem;
}
.site-nav a { transition: color 0.2s; }
.site-nav a:hover { color: var(--magenta); }
.site-nav__cta {
  background: var(--magenta);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 999px;
  box-shadow: var(--shadow-card);
}
.site-nav__cta:hover { background: var(--magenta-dark); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.icon-btn {
  border: none;
  background: var(--white);
  color: var(--ink);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s, color 0.15s;
}
.icon-btn:hover { color: var(--magenta); transform: translateY(-2px); }

@media (max-width: 720px) {
  .site-nav a:not(.site-nav__cta) { display: none; }
  .site-nav { gap: 10px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroFade 24s infinite;
}
.hero__bg-img--1 { animation-delay: 0s; }
.hero__bg-img--2 { animation-delay: 4s; }
.hero__bg-img--3 { animation-delay: 8s; }
.hero__bg-img--4 { animation-delay: 12s; }
.hero__bg-img--5 { animation-delay: 16s; }
.hero__bg-img--6 { animation-delay: 20s; }
@keyframes heroFade {
  0% { opacity: 0; transform: scale(1.06); }
  4% { opacity: 1; transform: scale(1.06); }
  16% { opacity: 1; transform: scale(1.14); }
  20% { opacity: 0; transform: scale(1.14); }
  100% { opacity: 0; }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(18, 14, 24, 0.55) 0%, rgba(18, 14, 24, 0.55) 40%, rgba(18, 14, 24, 0.82) 100%),
    linear-gradient(120deg, rgba(156, 31, 140, 0.35), rgba(18, 150, 155, 0.35));
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
  padding: 100px 24px 60px;
  text-align: center;
}
.hero__eyebrow {
  font-family: var(--font-script);
  font-size: 1.8rem;
  color: var(--peach);
  margin: 0 0 6px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  line-height: 1.08;
  margin: 0 0 18px;
}
.hero__title span { color: var(--peach); font-style: italic; }
.hero__subtitle {
  font-size: 1.08rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero__actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--magenta);
  color: var(--white);
  box-shadow: 0 14px 30px -10px rgba(156, 31, 140, 0.55);
}
.btn--primary:hover { background: var(--magenta-dark); transform: translateY(-2px); }
.btn--ghost {
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }
.btn--block { width: 100%; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--peach);
  overflow: hidden;
  white-space: nowrap;
  display: flex;
  padding: 16px 0;
  border-top: 3px solid var(--magenta);
  border-bottom: 3px solid var(--teal);
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  animation: marqueeScroll 22s linear infinite;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.1rem, 2.6vw, 1.7rem);
  letter-spacing: 0.12em;
  padding-right: 2rem;
}
.marquee__track span { padding: 0 0.4em; }
.marquee__dot { color: var(--teal); }
@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track, .hero__bg-img { animation: none; }
}

/* ---------- Categories bento ---------- */
.categories { padding: 64px 20px 20px; }
.categories__inner {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  border: none;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-card);
  padding: 0;
}
.category-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.category-card:hover img { transform: scale(1.08); }
.category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(18,14,24,0.75) 100%);
}
.category-card__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}
@media (max-width: 860px) {
  .categories__inner { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Section heading ---------- */
.section-heading { text-align: center; margin-bottom: 40px; }
.section-heading--left { text-align: left; margin-bottom: 26px; }
.section-heading__eyebrow {
  font-family: var(--font-script);
  color: var(--magenta);
  font-size: 1.5rem;
  margin: 0 0 2px;
}
.section-heading__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  margin: 0;
  color: var(--ink);
}

/* ---------- Gallery ---------- */
.gallery-section { padding: 70px 20px; max-width: 1180px; margin: 0 auto; }
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 34px;
}
.gallery-tab {
  border: 2px solid var(--teal);
  background: transparent;
  color: var(--teal-dark);
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  transition: all 0.18s;
}
.gallery-tab:hover { background: var(--teal-light); }
.gallery-tab.is-active { background: var(--teal); color: var(--white); }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.gallery-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--ink-soft);
  padding: 40px 0;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  box-shadow: var(--shadow-card);
  cursor: zoom-in;
  background: var(--teal-light);
}
.gallery-item img, .gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img, .gallery-item:hover video { transform: scale(1.07); }
.gallery-item__play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  background: rgba(18,14,24,0.18);
}
.gallery-item__play svg { width: 44px; height: 44px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.4)); }

@media (max-width: 960px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- About ---------- */
.about-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 100%);
  color: var(--white);
  padding: 90px 24px;
}
.about-section__inner { max-width: 760px; margin: 0 auto; text-align: center; }
.about-section__quote {
  font-family: var(--font-script);
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  color: var(--peach);
  margin: 0 0 22px;
}
.about-section__text { font-size: 1.08rem; line-height: 1.75; color: rgba(255,255,255,0.95); }

/* ---------- Quote form ---------- */
.quote-section { padding: 90px 20px; max-width: 1180px; margin: 0 auto; }
.quote-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  padding: clamp(28px, 5vw, 56px);
  max-width: 640px;
  margin: 0 auto;
  border-top: 6px solid var(--magenta);
}
.quote-card__subtitle { color: var(--ink-soft); margin: 6px 0 0; }
.quote-form { display: flex; flex-direction: column; gap: 18px; margin-top: 10px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 0.92rem; color: var(--ink); }
.field input, .field textarea {
  border: 2px solid #ecdfe8;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--cream);
  resize: vertical;
  transition: border-color 0.15s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--magenta);
}
.quote-form__note { margin: 0; text-align: center; font-size: 0.9rem; min-height: 1.2em; color: var(--teal-dark); font-weight: 600; }
.quote-form__note.is-error { color: #b3261e; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  padding: 60px 20px 40px;
}
.site-footer__logo { width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 14px; }
.site-footer__tagline { font-family: var(--font-display); letter-spacing: 0.08em; color: var(--peach); margin: 0 0 18px; }
.site-footer__whatsapp {
  display: inline-block;
  background: var(--magenta);
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  margin-bottom: 14px;
}
.site-footer__whatsapp:hover { background: var(--magenta-dark); }
.site-footer__social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 22px;
}
.site-footer__social a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: border-color 0.15s, color 0.15s, transform 0.15s;
}
.site-footer__social a:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }
.site-footer__share {
  display: block;
  margin: 0 auto 26px;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 999px;
  font-size: 0.88rem;
}
.site-footer__share:hover { border-color: var(--teal); color: var(--teal); }
.site-footer__credit { font-size: 0.8rem; color: rgba(255,255,255,0.5); margin: 0; }

/* ---------- Floating WhatsApp ---------- */
.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 50;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 26px -8px rgba(37, 211, 102, 0.7);
  animation: whatsappPulse 2.6s ease-in-out infinite;
}
@keyframes whatsappPulse {
  0%, 100% { box-shadow: 0 12px 26px -8px rgba(37, 211, 102, 0.7); }
  50% { box-shadow: 0 12px 30px -4px rgba(37, 211, 102, 0.95); }
}
@media (prefers-reduced-motion: reduce) { .whatsapp-float { animation: none; } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(18, 14, 24, 0.94);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__stage { max-width: min(92vw, 900px); max-height: 86vh; }
.lightbox__stage img, .lightbox__stage video {
  max-width: 100%;
  max-height: 86vh;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 46px;
  height: 46px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox__close { top: 18px; right: 18px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 18px; }
.lightbox__nav--next { right: 18px; }
.lightbox__close:hover, .lightbox__nav:hover { background: var(--magenta); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--white);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  z-index: 200;
  box-shadow: var(--shadow-soft);
}
