/* =========================================================
   SAVI — Gelato, Smoothies & Açaí
   Hoja de estilos principal
========================================================= */

/* ---------- Reset + base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #FFF4F7;
  font-family: 'Jost', system-ui, sans-serif;
  color: #3D0E20;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

::selection { background: #FF4E8C; color: #fff; }

/* Respeta la preferencia de "reducir movimiento" del sistema */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; }
}

/* ---------- Efectos de scroll (GSAP ScrollTrigger) ---------- */
.hero-content {
  will-change: transform;
}
.reveal {
  will-change: transform, opacity;
}

/* ---------- Animaciones reutilizables ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: .55; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { opacity: 0; }
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-7px); }
}

/* Helper genérico para hover con transform/shadow (reemplaza style-hover inline) */
a { transition: transform .45s cubic-bezier(.2,.7,.2,1), box-shadow .45s ease, background .35s ease, border-color .35s ease; }

/* =========================================================
   NAV
========================================================= */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3.5vw, 30px) clamp(20px, 5vw, 64px);
  color: #fff;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
}
.nav-logo span {
  font-weight: 600;
  letter-spacing: .42em;
  font-size: 16px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 4vw, 38px);
  font-size: 12px;
  letter-spacing: .22em;
  text-transform: uppercase;
}
.nav-links a {
  text-decoration: none;
  color: rgba(255,255,255,.9);
}
.nav-links a:focus-visible,
a:focus-visible {
  outline: 2px solid #FF4E8C;
  outline-offset: 3px;
}

/* =========================================================
   HERO
   Imagen de fondo: images/hero-bg.jpg (reemplazar por foto real)
========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px clamp(22px, 6vw, 40px) 96px;
  color: #fff;

  background-image:
    linear-gradient(180deg, rgba(50,10,27,.32) 0%, rgba(50,10,27,.12) 34%, rgba(92,20,48,.62) 100%),
    linear-gradient(rgba(255,78,140,.14), rgba(255,78,140,.14)),
    url("images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 80% at 50% 80%, rgba(50,10,27,.45), transparent 60%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 760px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .05s;
  font-size: 11.5px;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: rgba(255,255,255,.92);
}
.hero-line { height: 1px; width: 34px; background: rgba(255,255,255,.6); }
.hero-wordmark-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .16s;
}
.hero-wordmark {
  font-weight: 600;
  letter-spacing: .46em;
  font-size: clamp(40px, 9vw, 74px);
  line-height: 1;
  padding-left: .1em;
}
.hero-tagline {
  margin-top: 26px;
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 6vw, 46px);
  line-height: 1.12;
  letter-spacing: -.01em;
  text-shadow: 0 2px 30px rgba(50,10,27,.4);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .28s;
}
.hero-categories {
  margin-top: 24px;
  font-size: 12px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .4s;
}
.hero-cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 34px;
  border: 1.5px solid rgba(255,255,255,.65);
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .2em;
  text-transform: uppercase;
  background: rgba(255,255,255,.08);
  backdrop-filter: blur(4px);
  animation: rise .9s cubic-bezier(.2,.7,.2,1) both;
  animation-delay: .52s;
}
.hero-cta:hover { background: #FF4E8C; border-color: #FF4E8C; }
.hero-cta .arrow { font-family: Georgia, serif; }
.hero-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  margin-left: -28px;
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  animation: floaty 2.6s ease-in-out infinite;
}

/* =========================================================
   CATEGORIES — 4 tarjetas verticales con foto
   Imágenes: images/cat-gelato.jpg, cat-smoothies.jpg, cat-acai.jpg, cat-coffee.jpg
========================================================= */
.categories {
  width: 100%;
  min-height: 80vh; /* Ajusta la altura que necesites para tu sección */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;

  /* Combinación de dos degradados para crear volumen tridimensional */
  background-image: 
    /* 1. Punto de luz central (Crea la sensación de que es una sala iluminada) */
    radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.25) 0%, transparent 70%),
    /* 2. Degradado base (Simula la caída de luz del techo al suelo del estudio) */
    linear-gradient(to bottom, #F7A3BA 0%, #F590AC 5%, #E56285 35%, #C94265 110%);

  /* Esto asegura que los degradados se mezclen suavemente */
  background-blend-mode: screen; 

  color: #fff;
  padding: clamp(64px, 10vw, 116px) clamp(20px, 5vw, 64px);
}
.section-inner { max-width: 1120px; margin: 0 auto; }
.section-head.center { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow {
  font-size: 11.5px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #FF4E8C;
}
.eyebrow.light { color: rgba(255,255,255,.82); }
.eyebrow.pink { color: #FF8FB6; }
.title {
  margin-top: 14px;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 5.5vw, 52px);
  line-height: 1.05;
  color: #3D0E20;
}
.title.light { color: #fff; }

.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(154px, 1fr));
  gap: clamp(14px, 2vw, 22px);
}
.cat-card {
  position: relative;
  display: block;
  aspect-ratio: 3/4;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(50,10,27,.22);
}
.cat-card:hover { transform: translateY(-8px); box-shadow: 0 26px 56px rgba(50,10,27,.32); }
.cat-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cat-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(50,10,27,.72));
}
.cat-label {
  position: absolute;
  left: 18px; bottom: 16px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: 14px;
  color: #fff;
}

/* =========================================================
   MENU — mosaico asimétrico ("bento grid")
   Imágenes: images/menu-gelato.jpg, menu-smoothies.jpg, menu-croffles.jpg,
             menu-coffee.jpg, menu-acai.jpg, menu-sweets.jpg, menu-frappes.jpg
========================================================= */
.menu {
  background: #FFF4F7;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px);
}
.section-head.split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(34px, 5vw, 56px);
}
.menu-intro {
  max-width: 280px;
  font-size: 14.5px;
  line-height: 1.6;
  color: #7a4357;
}

/* Bento grid: 6 columnas, áreas nombradas — la de Gelato ocupa el doble de espacio */
.savi-bento {
  display: grid;
  gap: clamp(14px, 1.8vw, 22px);
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 230px;
  grid-template-areas:
    "gel gel smo smo smo smo"
    "gel gel cro cro cro cof"
    "aca aca swe swe fra fra";
}
@media (max-width: 860px) {
  .savi-bento {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 210px;
    grid-template-areas:
      "gel gel"
      "smo smo"
      "cro cof"
      "aca aca"
      "swe swe"
      "fra fra";
  }
}
@media (max-width: 520px) {
  .savi-bento {
    grid-template-columns: 1fr;
    grid-auto-rows: 188px;
    grid-template-areas: "gel" "smo" "cro" "cof" "aca" "swe" "fra";
  }
}

.bento-card {
  position: relative;
  display: block;
  border-radius: 22px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 14px 36px rgba(92,20,48,.12);
}
.bento-card:hover { transform: translateY(-6px); box-shadow: 0 26px 54px rgba(92,20,48,.2); }
.bento-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.bento-fade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(50,10,27,.32) 0%, rgba(50,10,27,.02) 34%,
    rgba(50,10,27,.44) 66%, rgba(50,10,27,.8) 100%);
}
.bento-fade.tall {
  background: linear-gradient(180deg,
    rgba(50,10,27,.34) 0%, rgba(50,10,27,.04) 28%,
    rgba(50,10,27,.4) 62%, rgba(50,10,27,.82) 100%);
}
.bento-tag {
  position: absolute;
  top: 20px; left: 22px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-shadow: 0 1px 10px rgba(50,10,27,.5);
}
.bento-tag.small { top: 20px; left: 20px; font-size: 15px; gap: 7px; }
.bento-copy { position: absolute; left: 24px; right: 24px; bottom: 22px; }
.bento-copy.tight { left: 20px; right: 20px; bottom: 22px; }
.bento-eyebrow {
  font-size: 10.5px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: rgba(255,255,255,.82);
}
.bento-eyebrow.small { font-size: 10px; letter-spacing: .24em; }
.bento-quote {
  margin-top: 9px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: clamp(19px, 1.9vw, 23px);
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 16px rgba(50,10,27,.4);
}
.bento-quote.big { margin-top: 10px; font-size: clamp(22px, 2.4vw, 28px); }
.bento-quote.small { margin-top: 8px; font-size: 20px; }

/* =========================================================
   ABOUT — foto del local + historia de marca
   Imagen: images/about-counter.jpg
========================================================= */
.about {
  background: #5C1430;
  color: #FFE8EF;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px);
}
.about-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(34px, 5vw, 72px);
  align-items: center;
}
.about-photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(20,4,12,.4);
  aspect-ratio: 4/3;
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text {
  margin-top: 22px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,232,239,.86);
}
.about-quote {
  margin-top: 18px;
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: #FFC8DC;
}

/* =========================================================
   EVENTS — "Book the Cart": mobile gelato bar para eventos
   Panel rosa/burgundy con pasos + tarjeta de formulario
========================================================= */
.events {
  background: #FFF4F7;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px);
}
.events-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: clamp(0px, 2vw, 0px);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(92,20,48,.18);
}

/* ---------- Panel izquierdo: gradiente + pasos ---------- */
.events-panel {
  position: relative;
  padding: clamp(40px, 5vw, 64px);
  color: #fff;
  overflow: hidden;

  background-image:
    radial-gradient(120% 90% at 15% 0%, rgba(255,255,255,.16) 0%, transparent 55%),
    linear-gradient(160deg, #F5759C 0%, #E0537C 32%, #B3315A 68%, #5C1430 100%);
}
.events-cone-deco {
  position: absolute;
  top: -6%;
  right: -14%;
  width: 62%;
  height: auto;
  max-width: 320px;
  color: rgba(255,255,255,.1);
  pointer-events: none;
}
.events-panel .eyebrow.light { position: relative; }
.events-panel .title.light {
  position: relative;
  margin-top: 12px;
  font-size: clamp(28px, 4.2vw, 42px);
}
.events-text {
  position: relative;
  margin-top: 20px;
  max-width: 420px;
  font-size: 15.5px;
  line-height: 1.65;
  color: rgba(255,255,255,.88);
}
.events-steps {
  position: relative;
  list-style: none;
  margin-top: clamp(30px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.events-steps li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.step-num {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.3);
  font-size: 13px;
  font-weight: 500;
}
.step-title { font-size: 15px; font-weight: 500; color: #fff; }
.step-sub { margin-top: 3px; font-size: 13.5px; line-height: 1.5; color: rgba(255,255,255,.72); }

/* ---------- Tarjeta del formulario ---------- */
.events-form-card {
  background: #fff;
  padding: clamp(40px, 5vw, 64px);
  display: flex;
  flex-direction: column;
}
.events-form-card .title { margin-top: 12px; font-size: clamp(26px, 3.6vw, 36px); }
.events-form { margin-top: clamp(28px, 3.5vw, 38px); display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #B3315A;
}
.field input {
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 15px;
  color: #3D0E20;
  background: #FFF8FA;
  border: 1.5px solid #FBDDE7;
  border-radius: 12px;
  padding: 13px 16px;
  outline: none;
  transition: border-color .3s ease, background .3s ease;
}
.field input::placeholder { color: #C98AA0; }
.field input:focus {
  border-color: #FF4E8C;
  background: #fff;
}
.field input:focus-visible { outline: none; }

.events-submit {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 17px 0;
  border: none;
  border-radius: 999px;
  background: #FF4E8C;
  color: #fff;
  font-family: 'Jost', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .35s ease, transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease;
}
.events-submit:hover { background: #ED1E79; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(255,78,140,.32); }
.events-submit .arrow { font-family: Georgia, serif; }

.events-disclaimer {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #7a4357;
}
.events-email-placeholder { color: #B3315A; font-weight: 500; }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
}

/* =========================================================
   VISIT — dirección, horario, IG + mapa ilustrado en CSS
========================================================= */
.visit {
  background: #FFF4F7;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 64px);
}
.visit-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(30px, 4vw, 56px);
  align-items: stretch;
}
.visit-info { display: flex; flex-direction: column; justify-content: center; }
.visit-rows { margin-top: 30px; display: flex; flex-direction: column; gap: 22px; }
.visit-row { display: flex; gap: 16px; align-items: flex-start; }
.visit-icon { margin-top: 2px; flex: none; color: #FF4E8C; }
.visit-main { font-size: 16px; line-height: 1.5; color: #3D0E20; font-weight: 500; }
.visit-sub { font-size: 14px; color: #7a4357; margin-top: 2px; }
.visit-hours { display: flex; flex-direction: column; gap: 7px; min-width: 236px; }
.hours-row { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; }
.hours-row span:first-child { font-size: 15.5px; color: #3D0E20; font-weight: 500; }
.hours-row span:last-child { font-size: 15px; color: #7a4357; }
.visit-ig { font-size: 16px; line-height: 1.5; color: #3D0E20; font-weight: 500; text-decoration: none; }

.visit-cta {
  margin-top: 34px;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 30px;
  border-radius: 999px;
  background: #FF4E8C;
  color: #fff;
  text-decoration: none;
  font-size: 12.5px;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.visit-cta:hover { background: #ED1E79; }
.visit-cta .arrow { font-family: Georgia, serif; }

/* Mapa real: iframe de Google Maps dentro de una tarjeta con el mismo
   border-radius/shadow del resto del sitio, + botón overlay "Open in Maps" */
.map-card {
  position: relative;
  display: block;
  min-height: 330px;
  border-radius: 24px;
  overflow: hidden;
  background: #FFD0DF;
  box-shadow: 0 18px 44px rgba(92,20,48,.16);
}
.map-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  filter: saturate(.9);
}
.map-open {
  position: absolute;
  left: 18px; bottom: 18px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.94);
  color: #3D0E20;
  text-decoration: none;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 9px 16px;
  border-radius: 999px;
  box-shadow: 0 6px 14px rgba(92,20,48,.18);
  transition: background .3s ease, transform .3s ease;
}
.map-open:hover { background: #fff; transform: translateY(-2px); }
.map-open .arrow { font-family: Georgia, serif; }

/* =========================================================
   FOOTER
========================================================= */
.footer {
  background: #320A1B;
  color: #FFD9E5;
  padding: clamp(54px, 8vw, 84px) clamp(20px, 5vw, 64px) 30px;
}
.footer-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 40px;
}
.footer-logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-logo span { font-weight: 600; letter-spacing: .44em; font-size: 22px; padding-left: .1em; }
.footer-tagline { margin-top: 18px; font-family: Georgia, serif; font-style: italic; font-size: 18px; color: #FFC8DC; }
.footer-cats { margin-top: 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,217,229,.6); }
.footer-heading { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: #FF8FB6; margin-bottom: 16px; }
.footer-text { font-size: 15px; line-height: 1.7; color: rgba(255,217,229,.9); }
.footer-text.spaced { margin-top: 12px; }
.footer-ig { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: 1120px;
  margin: 46px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(255,217,229,.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,217,229,.55);
}

/* =========================================================
   EVENTS FEEDBACK — mensaje de éxito/error del formulario
   (agregado para el envío via Formspree)
========================================================= */
#events-feedback.success {
  color: #2E7D52;
  font-weight: 500;
}
#events-feedback.error {
  color: #C62828;
  font-weight: 500;
}