/* ============================================================
   GRATA · Moda infantil — stylesheet
   Fuentes de marca: Arboria (display) + Raleway (texto)
   Paleta oficial (brandbook 2025):
   teal #26546B · sage #8BB58D · mint #C8E3C3
   skyblue #B1C8CD · pink #F0A2B8 · peach #FDC199 · sand #F5E5D7
   ============================================================ */

@font-face {
  font-family: 'Arboria';
  src: url('../fonts/Arboria-Book.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Arboria';
  src: url('../fonts/Arboria-Medium.ttf') format('truetype');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Arboria';
  src: url('../fonts/Arboria-Bold.ttf') format('truetype');
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Arboria';
  src: url('../fonts/Arboria-Black.ttf') format('truetype');
  font-weight: 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway-Italic-VariableFont_wght.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --teal:      #1f4c63;
  --teal-deep: #163846;
  --sage:      #8bb58d;
  --sage-dark: #5f8c66;
  --mint:      #c8e3c3;
  --mint-soft: #e3f1e0;
  --skyblue:   #b1c8cd;
  --pink:      #f0a2b8;
  --pink-deep: #e57a97;
  --peach:     #fdc199;
  --peach-deep:#f59a5e;
  --sand:      #f5e5d7;
  --cream:     #fdf7f1;
  --ink:       #1c3540;

  --font-d: 'Arboria', 'Baloo 2', system-ui, sans-serif;
  --font-b: 'Raleway', system-ui, sans-serif;

  --ease: cubic-bezier(.22,1,.36,1);
  --r-sm: 14px;
  --r-md: 26px;
  --r-lg: 42px;
  --shadow-soft: 0 12px 30px -12px rgba(31,76,99,.25);
  --shadow-lift: 0 20px 46px -14px rgba(31,76,99,.35);
}

* , *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { max-width: 100vw; overflow-x: hidden; }

body {
  font-family: var(--font-b);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
.container { width: min(1180px, 92%); margin-inline: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-d);
  font-weight: 900;
  color: var(--teal);
  line-height: 1.06;
  letter-spacing: -.01em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-b);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-dark);
  background: var(--mint-soft);
  border: 1px solid var(--mint);
  padding: 7px 16px 7px 12px;
  border-radius: 999px;
}
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pink); flex: none; }

.section { position: relative; padding: 108px 0; }
.section--tight { padding: 76px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head p { margin-top: 16px; font-size: 1.05rem; color: #3d5866; max-width: 52ch; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center p { margin-inline: auto; }

.tag-title { font-size: clamp(2rem, 4vw, 2.9rem); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .98rem;
  padding: 15px 28px;
  border-radius: 999px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .3s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.96); }
.btn-primary {
  background: var(--teal);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); background: var(--teal-deep); }
.btn-ghost {
  background: transparent;
  color: var(--teal);
  border: 1.6px solid rgba(31,76,99,.28);
}
.btn-ghost:hover { background: rgba(31,76,99,.06); transform: translateY(-3px); border-color: var(--teal); }
.btn-light {
  background: var(--cream);
  color: var(--teal);
  box-shadow: var(--shadow-soft);
}
.btn-light:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.btn-sm { padding: 10px 20px; font-size: .82rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- floating blobs (decorative, brand shapes) ---------- */
.blob { position: absolute; z-index: 0; filter: blur(.3px); pointer-events: none; }
@keyframes float-a { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(14px,-22px) rotate(6deg); } }
@keyframes float-b { 0%,100% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(-18px,18px) rotate(-8deg); } }
@keyframes float-c { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(10px,14px) scale(1.05); } }
.blob--a { animation: float-a 9s ease-in-out infinite; }
.blob--b { animation: float-b 11s ease-in-out infinite; }
.blob--c { animation: float-c 8s ease-in-out infinite; }

.scallop {
  clip-path: url(#scallop-clip);
}

/* ---------- reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.reveal-stagger.in-view { transition-delay: calc(var(--i, 0) * 70ms); }

/* ================= HEADER ================= */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 0;
  transition: padding .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header.scrolled {
  padding: 10px 0;
  background: rgba(253,247,241,.86);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px -12px rgba(31,76,99,.18);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 42px; width: auto; transition: height .35s var(--ease); }
.site-header.scrolled .brand img { height: 34px; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .92rem;
  color: var(--teal);
  padding: 10px 14px;
  border-radius: 999px;
  transition: background .25s ease, color .25s ease;
}
.main-nav a:hover { background: rgba(139,181,141,.16); }

.header-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--mint-soft);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ''; display: block; position: absolute;
  width: 20px; height: 2.4px; border-radius: 2px; background: var(--teal);
  transition: transform .3s var(--ease), opacity .3s ease;
}
.nav-toggle span { transform: translateY(0); }
.nav-toggle::before { transform: translateY(-7px); }
.nav-toggle::after { transform: translateY(7px); }
.nav-toggle.open::before { transform: translateY(0) rotate(45deg); }
.nav-toggle.open::after { transform: translateY(0) rotate(-45deg); }
.nav-toggle.open span { opacity: 0; }

.mobile-nav {
  position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 86%);
  background: var(--cream); z-index: 200; padding: 100px 30px 30px;
  box-shadow: -18px 0 40px rgba(31,76,99,.2);
  transition: right .45s var(--ease);
  display: flex; flex-direction: column; gap: 6px;
}
.mobile-nav.open { right: 0; }
.mobile-nav a { font-family: var(--font-d); font-weight: 700; color: var(--teal); padding: 14px 6px; border-bottom: 1px solid rgba(31,76,99,.08); }
.scrim { position: fixed; inset: 0; background: rgba(22,56,70,.4); z-index: 150; opacity: 0; pointer-events: none; transition: opacity .35s ease; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* ================= HERO ================= */
.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, #fbf1e6 100%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy h1 { font-size: clamp(2.5rem, 5vw, 4.1rem); margin: 20px 0 22px; }
.hero-copy h1 em { font-style: normal; color: var(--pink-deep); position: relative; }
.hero-copy p.lead { font-size: 1.14rem; max-width: 46ch; color: #3d5866; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 40px; }

.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stats .stat strong { display: block; font-family: var(--font-d); font-size: 1.7rem; color: var(--teal); }
.hero-stats .stat span { font-size: .82rem; color: #5a7480; }

.hero-visual { position: relative; height: 560px; }
.hero-photo {
  position: absolute;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--cream);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--main {
  width: 300px; height: 420px;
  right: 40px; top: 10px;
  border-radius: 140px 140px 30px 140px;
  animation: float-a 10s ease-in-out infinite;
  z-index: 3;
}
.hero-photo--sub {
  width: 190px; height: 230px;
  left: 0; bottom: 20px;
  border-radius: 30px 140px 30px 140px;
  animation: float-b 9s ease-in-out infinite;
  z-index: 2;
}
.hero-badge-float {
  position: absolute; top: 40px; left: 30px; z-index: 4;
  width: 96px; height: 96px;
  animation: float-c 7s ease-in-out infinite;
}
.hero-card-float {
  position: absolute; right: 6px; bottom: 30px; z-index: 4;
  background: var(--cream);
  border-radius: var(--r-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-lift);
  display: flex; align-items: center; gap: 10px;
  animation: float-b 8s ease-in-out infinite;
}
.hero-card-float .ping { width: 10px; height: 10px; border-radius: 50%; background: var(--sage); position: relative; }
.hero-card-float .ping::after {
  content:''; position:absolute; inset:-4px; border-radius:50%; background: var(--sage); opacity:.5;
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .6; } 100% { transform: scale(2.2); opacity: 0; } }
.hero-card-float strong { display:block; font-family: var(--font-d); font-size: .95rem; color: var(--teal); }
.hero-card-float span { font-size: .74rem; color: #5a7480; }

/* marquee ribbon */
.marquee {
  overflow: hidden;
  background: var(--teal);
  padding: 14px 0;
  position: relative;
  z-index: 3;
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--font-d);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .04em;
  color: var(--sand);
  padding: 0 28px;
  display: flex; align-items: center; gap: 10px;
  white-space: nowrap;
}
.marquee-track span::before { content: '✦'; color: var(--peach); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ================= ABOUT ================= */
.about { background: var(--cream); }
.about .container { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: center; }
.about-photo { position: relative; }
.about-photo img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift);
  border: 6px solid var(--mint-soft);
}
.about-photo .badge-chip {
  position: absolute; bottom: -22px; right: -22px;
  background: var(--pink);
  color: #fff;
  font-family: var(--font-d); font-weight: 700; font-size: .9rem;
  padding: 16px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lift);
  animation: float-c 7s ease-in-out infinite;
}
.about-quote {
  font-family: var(--font-d);
  font-weight: 500;
  font-style: normal;
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  color: var(--teal);
  margin: 18px 0 22px;
  line-height: 1.4;
}
.about-body p { color: #3d5866; margin-bottom: 16px; max-width: 58ch; }
.about-pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 34px; }
.pillar {
  background: #fff;
  border-radius: var(--r-md);
  padding: 22px 18px;
  box-shadow: var(--shadow-soft);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.pillar:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.pillar .ic { width: 42px; height: 42px; border-radius: 12px; display:flex; align-items:center; justify-content:center; margin-bottom: 12px; }
.pillar h4 { font-size: 1.02rem; margin-bottom: 6px; }
.pillar p { font-size: .88rem; color: #5a7480; }

/* ================= HOW TO BUY ================= */
.buy { background: var(--mint-soft); }
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.buy-card {
  background: var(--cream);
  border-radius: var(--r-lg);
  padding: 34px 28px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.buy-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.buy-card.featured { background: var(--teal); color: var(--cream); }
.buy-card.featured h3, .buy-card.featured .price { color: var(--cream); }
.buy-card.featured .buy-list li { color: #cfe3ea; }
.buy-card .kicker {
  font-family: var(--font-d); font-weight: 700; font-size: .74rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--sage-dark);
}
.buy-card.featured .kicker { color: var(--peach); }
.buy-card h3 { font-size: 1.5rem; margin: 10px 0 4px; }
.buy-card .price { font-family: var(--font-d); font-size: 1.05rem; color: var(--pink-deep); margin-bottom: 18px; }
.buy-list { margin: 18px 0 24px; display: flex; flex-direction: column; gap: 10px; }
.buy-list li { font-size: .9rem; color: #3d5866; display: flex; gap: 10px; align-items: flex-start; }
.buy-list li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--sage-dark); }
.buy-card.featured .buy-list li svg { color: var(--peach); }
.buy-card .pill-tag {
  position: absolute; top: 22px; right: 22px;
  background: var(--pink); color: #fff;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em;
  padding: 5px 12px; border-radius: 999px; text-transform: uppercase;
}

/* ================= CATALOGO ================= */
.catalog { background: var(--cream); }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.catalog-item {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-soft);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.catalog-item.is-hidden { display: none; }
.catalog-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.catalog-item:hover { transform: translateY(-8px); box-shadow: var(--shadow-lift); }
.catalog-item:hover img { transform: scale(1.07); }
.catalog-item::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(31,76,99,.55) 100%);
  opacity: 0; transition: opacity .35s ease;
}
.catalog-item:hover::after { opacity: 1; }
.catalog-item .zoom-hint {
  position: absolute; right: 12px; bottom: 12px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--cream); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: translateY(8px);
  transition: opacity .35s ease, transform .35s ease;
  z-index: 2;
}
.catalog-item:hover .zoom-hint { opacity: 1; transform: translateY(0); }
.catalog-item .zoom-hint svg { width: 16px; height: 16px; }

.catalog-more { display: flex; justify-content: center; margin-top: 40px; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 20px;
  background: rgba(22, 56, 70, .82);
  backdrop-filter: blur(6px);
  opacity: 0; pointer-events: none;
  transition: opacity .35s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox-inner {
  position: relative;
  max-width: 460px; width: 100%;
  transform: scale(.92) translateY(10px);
  opacity: 0;
  transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.lightbox.open .lightbox-inner { transform: scale(1) translateY(0); opacity: 1; }
.lightbox-inner img { width: 100%; border-radius: var(--r-md); box-shadow: var(--shadow-lift); }
.lightbox-actions { display: flex; gap: 12px; margin-top: 18px; justify-content: center; flex-wrap: wrap; }
.lightbox-close {
  position: absolute; top: -18px; right: -18px;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--cream); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform .3s var(--ease);
}
.lightbox-close:hover { transform: rotate(90deg); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(253,247,241,.9); color: var(--teal);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, background .25s ease;
  z-index: 301;
}
.lightbox-nav:hover { background: var(--cream); transform: translateY(-50%) scale(1.08); }
.lightbox-nav.prev { left: max(14px, calc(50% - 290px)); }
.lightbox-nav.next { right: max(14px, calc(50% - 290px)); }
@media (max-width: 760px) {
  .lightbox-nav { background: rgba(253,247,241,.75); }
}

/* ================= CONTACT / CTA ================= */
.cta {
  position: relative;
  background: var(--teal);
  color: var(--cream);
  overflow: hidden;
}
.cta .container { position: relative; z-index: 2; text-align: center; }
.cta h2 { color: var(--cream); font-size: clamp(2rem, 4vw, 3rem); }
.cta p { color: #cfe3ea; max-width: 50ch; margin: 18px auto 34px; font-size: 1.05rem; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }
.social-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.social-chip {
  display: flex; align-items: center; gap: 10px;
  background: rgba(253,247,241,.1);
  border: 1px solid rgba(253,247,241,.25);
  padding: 12px 20px;
  border-radius: 999px;
  font-family: var(--font-d); font-weight: 700; font-size: .9rem;
  transition: background .3s ease, transform .3s var(--ease);
}
.social-chip:hover { background: rgba(253,247,241,.18); transform: translateY(-3px); }
.social-chip svg { width: 20px; height: 20px; }

/* ================= FOOTER ================= */
.site-footer { background: var(--teal-deep); color: #cfe3ea; padding: 64px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(253,247,241,.12); }
.footer-brand img { height: 76px; margin-bottom: 14px; }
.footer-brand p { max-width: 32ch; font-size: .92rem; color: #a9c2cb; }
.footer-col h4 { font-family: var(--font-d); color: var(--peach); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: .92rem; color: #cfe3ea; transition: color .25s ease, padding-left .25s ease; }
.footer-col a:hover { color: var(--peach); padding-left: 4px; }
.footer-bottom { padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: #8bacb6; }
.powered-by { display: flex; align-items: center; gap: 8px; opacity: .75; transition: opacity .25s ease; }
.powered-by:hover { opacity: 1; }
.powered-by span { font-size: .78rem; }
.powered-by img { height: 15px; width: auto; display: block; }

/* ================= RESPONSIVE ================= */
@media (max-width: 980px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; margin-top: 20px; }
  .about .container { grid-template-columns: 1fr; }
  .about-photo { max-width: 380px; margin-inline: auto; }
  .buy-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .main-nav, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; position: relative; }
  .site-header .container { position: relative; }
  .section { padding: 76px 0; }
  .hero { padding-top: 130px; }
  .footer-top { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; }
}
@media (max-width: 480px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .about-pillars { grid-template-columns: 1fr; }
}
