/*
Theme Name: Yayo
Theme URI: https://example.com/
Author: Yayo
Description: Tema visual para la marca Gelatina Yayo.
Version: 1.0.0
Text Domain: yayo
*/

:root {
  --cream: #fff6df;
  --cream-deep: #f7e8c4;
  --ink: #552a1b;
  --coral: #ef625d;
  --orange: #f59a35;
  --blue: #4c8fe9;
  --green: #69b95d;
  --shadow: 0 18px 50px rgba(85, 42, 27, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: "DM Sans", sans-serif; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header { align-items: center; background: transparent; display: flex; justify-content: space-between; left: 0; padding: 12px max(5vw, calc((100vw - 1320px) / 2)); position: fixed; right: 0; top: 0; transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; z-index: 10; }
.site-header.is-scrolled { backdrop-filter: blur(14px); background: rgba(255, 246, 223, .88); box-shadow: 0 8px 24px rgba(85, 42, 27, .08); }
.brand img { width: 112px; }
.nav { align-items: center; display: flex; gap: 30px; font-size: 0.9rem; font-weight: 700; }
.nav-cta { background: var(--ink); border-radius: 999px; color: #fff8e8; padding: 10px 17px; }
.section-shell { margin: 0 auto; max-width: 1320px; padding-left: 5vw; padding-right: 5vw; }

.hero { max-width: none; min-height: min(720px, calc(100vh - 88px)); overflow: hidden; padding-left: 0; padding-right: 0; position: relative; }
.hero-art { height: 100%; inset: 0; object-fit: cover; object-position: center; position: absolute; width: 100%; z-index: -1; }
.hero-copy { margin: 0 auto; max-width: 1320px; padding: clamp(100px, 14vw, 190px) 5vw 150px; }
.reveal { opacity: 1; transform: none; }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }
.js .hero-copy .reveal:nth-child(2) { transition-delay: .08s; }
.js .hero-copy .reveal:nth-child(3) { transition-delay: .16s; }
.js .hero-copy .reveal:nth-child(4) { transition-delay: .24s; }
.eyebrow { color: var(--coral); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; margin: 0 0 18px; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Fredoka, sans-serif; letter-spacing: -0.045em; }
h1 { font-size: clamp(3.4rem, 7vw, 6.9rem); line-height: 0.91; margin-bottom: 24px; }
h2 { font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: 0.94; margin-bottom: 22px; }
h2 em { color: var(--coral); font-style: normal; }
.hero-text { font-size: 1.08rem; line-height: 1.5; margin-bottom: 30px; max-width: 300px; }
.button { align-items: center; border-radius: 999px; display: inline-flex; font-weight: 700; gap: 16px; padding: 15px 21px; transition: transform .2s ease, box-shadow .2s ease; }
.button:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.button-primary { background: var(--ink); color: #fff8e8; }
.button-dark { background: var(--ink); color: #fff8e8; }

.flavors { padding-bottom: 140px; padding-top: 145px; }
.section-heading { align-items: end; display: flex; gap: 30px; justify-content: space-between; margin-bottom: 50px; }
.section-intro { line-height: 1.55; max-width: 300px; }
.flavor-grid { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); }
.flavor-card { background: #fffaf0; border-radius: 26px; box-shadow: 0 9px 24px rgba(85, 42, 27, .06); overflow: hidden; }
.js .flavor-card:nth-child(2) { transition-delay: .08s; }
.js .flavor-card:nth-child(3) { transition-delay: .16s; }
.js .flavor-card:nth-child(4) { transition-delay: .24s; }
.flavor-art { aspect-ratio: 0.77; overflow: hidden; }
.flavor-art img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.flavor-card:hover .flavor-art img { transform: scale(1.04); }
.flavor-info { padding: 20px 20px 23px; position: relative; }
.flavor-dot { background: var(--flavor); border-radius: 50%; display: block; height: 12px; margin-bottom: 13px; width: 12px; }
.flavor-info h3 { font-size: 1.8rem; margin-bottom: 6px; }
.flavor-info p { font-size: .91rem; line-height: 1.4; min-height: 42px; }
.flavor-info a { border-bottom: 1px solid currentColor; display: inline-flex; font-size: .84rem; font-weight: 700; gap: 8px; padding-bottom: 3px; }
.flavor-red { --flavor: #df3f4d; }
.flavor-orange { --flavor: var(--orange); }
.flavor-blue { --flavor: var(--blue); }
.flavor-green { --flavor: var(--green); }

.world { align-items: center; display: grid; gap: clamp(40px, 8vw, 130px); grid-template-columns: 1.2fr .8fr; padding-bottom: 150px; }
.world-art-wrap { border-radius: 38px; box-shadow: var(--shadow); overflow: hidden; transform: rotate(-1.5deg); }
.world-art-wrap img { aspect-ratio: 1.55; object-fit: cover; width: 100%; }
.world-copy { max-width: 390px; }
.world-copy > p:not(.eyebrow) { font-size: 1.05rem; line-height: 1.6; margin-bottom: 28px; }
.site-footer { align-items: center; background: var(--ink); color: #fff4d8; display: flex; justify-content: space-between; padding: 34px 5vw; }
.site-footer img { background: var(--cream); border-radius: 12px; padding: 8px 10px; width: 140px; }
.site-footer p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

@media (max-width: 900px) {
  .nav { gap: 15px; }
  .nav a:not(.nav-cta) { display: none; }
  .hero { min-height: 680px; }
  .hero-art { object-position: 63% center; }
  .hero-copy { padding-top: 90px; }
  .hero-copy::before { background: rgba(255, 246, 223, .72); border-radius: 35% 65% 40% 60%; content: ""; inset: 40px 35% 80px -18%; position: absolute; z-index: -1; }
  .flavor-grid { grid-template-columns: repeat(2, 1fr); }
  .world { grid-template-columns: 1fr; }
  .world-copy { max-width: 560px; }
}

@media (max-width: 560px) {
  .site-header { padding-bottom: 9px; padding-top: 9px; }
  .brand img { width: 102px; }
  .nav-cta { padding: 9px 14px; }
  .hero { min-height: 650px; }
  .hero-art { object-position: 64% center; }
  .hero-copy { padding-top: 84px; }
  .hero-copy::before { inset: 34px 12% 130px -35%; }
  h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .flavors { padding-bottom: 95px; padding-top: 95px; }
  .section-heading { align-items: start; flex-direction: column; gap: 5px; }
  .flavor-grid { gap: 12px; }
  .flavor-card { border-radius: 18px; }
  .flavor-info { padding: 15px; }
  .flavor-info h3 { font-size: 1.45rem; }
  .flavor-info p { font-size: .8rem; min-height: 56px; }
  .world { padding-bottom: 95px; }
  .world-art-wrap { border-radius: 24px; }
  .site-footer { align-items: center; flex-direction: column; gap: 18px; text-align: center; }
}
