/* ==========================================================
   FRESSIA — Inicio
   Carrusel a todo el ancho, grillas de productos estilo tienda,
   dos fotos destacadas, beneficios y cierre.
   ========================================================== */

/* ── Carrusel principal ────────────────────────────────── */
.carrusel {
  position: relative; overflow: hidden; isolation: isolate;
  height: clamp(460px, calc(100vh - 150px), 860px);
  background: var(--tinta-3);
}
.carrusel__pista { position: absolute; inset: 0; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}
.slide.is-activa { opacity: 1; visibility: visible; z-index: 1; }
.slide__fotos { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0; }
.slide__foto { width: 100%; height: 100%; object-fit: cover; object-position: center 22%; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-activa .slide__foto { transform: scale(1); }
/* Velo para que el texto se lea sobre cualquier foto */
.slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 30, 22, 0) 45%, rgba(40, 30, 22, 0.42) 100%); pointer-events: none; }

.slide__texto {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(56px, 9vh, 110px);
  display: grid; justify-items: center; gap: 14px; padding-inline: var(--gutter);
  color: #fffdfa; text-align: center;
}
.slide--texto-izquierda .slide__texto { justify-items: start; text-align: left; padding-left: clamp(40px, 8vw, 140px); }
.slide--texto-derecha .slide__texto { justify-items: end; text-align: right; padding-right: clamp(40px, 8vw, 140px); }
.slide__etiqueta { font-size: clamp(11px, 1vw, 13px); font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; }
.slide__titulo { font-family: var(--ff-titulo); font-weight: 400; font-size: clamp(40px, 5.6vw, 92px); line-height: 1; text-shadow: 0 2px 30px rgba(0, 0, 0, 0.18); }
.slide__titulo em { color: inherit; font-style: italic; }
.slide__boton {
  margin-top: 8px; display: inline-flex; align-items: center; min-height: 46px; padding: 0 34px;
  border: 1px solid #fffdfa; color: #fffdfa;
  font-size: 12px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase;
  transition: background 0.25s, color 0.25s;
}
.slide__boton:hover { background: #fffdfa; color: var(--papel); }
/* Animación del texto al entrar */
.slide__texto > * { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.slide.is-activa .slide__texto > * { opacity: 1; transform: none; }
.slide.is-activa .slide__texto > :nth-child(2) { transition-delay: 0.12s; }
.slide.is-activa .slide__texto > :nth-child(3) { transition-delay: 0.24s; }

.carrusel__flecha {
  position: absolute; z-index: 3; top: 50%; width: 52px; height: 52px; margin-top: -26px;
  display: grid; place-items: center; color: #fffdfa; opacity: 0.85; transition: opacity 0.2s, transform 0.2s var(--ease);
}
.carrusel__flecha svg { width: 34px; height: 34px; filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.25)); }
.carrusel__flecha:hover { opacity: 1; }
.carrusel__flecha--ant { left: clamp(10px, 2vw, 36px); }
.carrusel__flecha--sig { right: clamp(10px, 2vw, 36px); }
.carrusel__flecha--ant:hover { transform: translateX(-3px); }
.carrusel__flecha--sig:hover { transform: translateX(3px); }

.carrusel__puntos { position: absolute; z-index: 3; left: 50%; bottom: clamp(20px, 3.5vh, 34px); transform: translateX(-50%); display: flex; gap: 10px; }
.carrusel__punto { width: 44px; height: 20px; display: grid; align-items: center; }
.carrusel__punto span { display: block; height: 2px; background: rgba(255, 253, 250, 0.45); overflow: hidden; position: relative; }
/* La rayita activa se va llenando mientras dura el banner */
.carrusel__punto span::after { content: ""; position: absolute; inset: 0; background: #fffdfa; transform: scaleX(0); transform-origin: left; }
.carrusel__punto.is-activo span::after { animation: llenar var(--duracion, 6s) linear forwards; }
.carrusel.pausado .carrusel__punto.is-activo span::after { animation-play-state: paused; }
@keyframes llenar { to { transform: scaleX(1); } }

/* ── Bloques de productos ──────────────────────────────── */
.bloque { padding-top: clamp(44px, 6vw, 84px); }
.bloque__cab { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: clamp(18px, 2.4vw, 30px); }
.bloque__titulo { font-family: var(--ff-titulo); font-weight: 400; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.05; }
.bloque__titulo em { color: var(--rosa); }
.bloque__link { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 12px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: color 0.2s, gap 0.2s; }
.bloque__link:hover { color: var(--rosa); gap: 12px; }
.bloque__link svg { width: 16px; height: 16px; }

/* ── Fotos destacadas ──────────────────────────────────── */
.destacadas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(44px, 6vw, 84px); }
.destacada { position: relative; display: block; aspect-ratio: 4 / 5; max-height: 92vh; width: 100%; overflow: hidden; background: var(--tinta-3); }
.destacada img { width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1.2s var(--ease); }
.destacada:hover img { transform: scale(1.04); }
.destacada::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(40, 30, 22, 0.45)); }
.destacada__texto { position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(26px, 5vw, 60px); display: grid; justify-items: center; gap: 16px; color: #fffdfa; text-align: center; }
.destacada__titulo { font-family: var(--ff-titulo); font-weight: 400; font-size: clamp(34px, 4vw, 64px); line-height: 1; }
.destacada__boton { padding: 12px 30px; border: 1px solid #fffdfa; font-size: 11.5px; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; transition: background 0.25s, color 0.25s; }
.destacada:hover .destacada__boton { background: #fffdfa; color: var(--papel); }

/* ── Beneficios del inicio ─────────────────────────────── */
.beneficios--inicio { margin-top: clamp(48px, 7vw, 96px); }

/* ── Cierre ────────────────────────────────────────────── */
.cierre { margin-top: clamp(48px, 7vw, 96px); }
.cierre__interior { display: grid; justify-items: center; gap: 18px; text-align: center; color: var(--papel); }
.cierre .slide__etiqueta { color: var(--rosa); }
.cierre__titulo { font-family: var(--ff-titulo); font-weight: 400; font-size: clamp(32px, 4.4vw, 58px); line-height: 1.08; }
.cierre__titulo span { display: block; }
.cierre__titulo em { font-style: italic; color: var(--rosa); }
.cierre__botones { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }

/* ── Tablet ────────────────────────────────────────────── */
@media (max-width: 1099px) {
  .carrusel { height: clamp(420px, 70vh, 640px); }
  .slide--3fotos .slide__foto:nth-child(3) { display: none; }
}

/* ── Celular ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .carrusel { height: auto; aspect-ratio: 4 / 5; max-height: calc(100svh - 190px); min-height: 380px; }
  /* En celular se ve solo la primera foto del banner */
  .slide__foto:not(:first-child) { display: none; }
  .slide__texto, .slide--texto-izquierda .slide__texto, .slide--texto-derecha .slide__texto { justify-items: center; text-align: center; padding-inline: 20px; bottom: 54px; }
  .slide__titulo { font-size: clamp(36px, 11vw, 52px); }
  .slide__boton { min-height: 42px; padding: 0 26px; font-size: 11px; }
  .carrusel__flecha { display: none; }
  .carrusel__punto { width: 30px; }
  .bloque__titulo { font-size: 30px; }
  .bloque__link { font-size: 10.5px; letter-spacing: 0.14em; }
  .destacadas { grid-template-columns: 1fr; gap: 10px; }
  .destacada { aspect-ratio: 4 / 4.6; }
}

/* ── Nuestro local: video del local, dirección y mapa ──── */
.local {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: clamp(48px, 7vw, 96px); padding-block: clamp(48px, 7vw, 100px);
  background: #efe4d6;
}
/* Fondo: el mismo video, desenfocado y aclarado con un velo beige */
.local__fondo { position: absolute; inset: -40px; z-index: -2; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(28px) saturate(1.1); opacity: 0; transition: opacity 1.2s; }
.local__fondo.listo { opacity: 1; }
.local__velo { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, rgba(246, 238, 228, 0.55) 0%, rgba(246, 238, 228, 0.88) 55%, rgba(246, 238, 228, 0.95) 100%); }

.local__grilla { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); align-items: center; max-width: 1280px; }

/* Video vertical en un marco con forma de arco */
.local__video { position: relative; margin: 0; justify-self: center; width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 999px 999px 18px 18px; overflow: hidden; background: #d9c6ae; box-shadow: 0 30px 60px -30px rgba(58, 47, 39, 0.55); }
.local__video video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.local__marco { position: absolute; inset: 10px; border: 1px solid rgba(255, 253, 250, 0.7); border-radius: 999px 999px 12px 12px; pointer-events: none; }
.local__chip { position: absolute; left: 18px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 253, 250, 0.88); backdrop-filter: blur(6px); font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; }
.local__punto { width: 8px; height: 8px; border-radius: 50%; background: #5f9b6e; box-shadow: 0 0 0 0 rgba(95, 155, 110, 0.6); animation: abierto 2s ease-out infinite; }
@keyframes abierto { to { box-shadow: 0 0 0 8px rgba(95, 155, 110, 0); } }

.local__info { display: grid; gap: 18px; justify-items: start; }
.local__etiqueta { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; font-weight: 500; letter-spacing: 0.28em; text-transform: uppercase; color: var(--rosa); }
.local__etiqueta::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.local__titulo { font-family: var(--ff-titulo); font-weight: 400; font-size: clamp(40px, 5vw, 72px); line-height: 1; }
.local__titulo em { font-style: italic; color: var(--rosa); }
.local__bajada { max-width: 46ch; color: var(--papel-2); font-size: 16px; }
.local__datos { display: grid; gap: 14px; width: 100%; max-width: 520px; padding-block: 6px; }
.local__datos li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; background: rgba(255, 253, 250, 0.75); border: 1px solid rgba(255, 255, 255, 0.9); }
.local__datos svg { width: 24px; height: 24px; flex: none; color: var(--logo); }
.local__datos span { display: grid; gap: 2px; }
.local__datos strong { font-size: 15px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; }
.local__datos small { color: var(--apagado); font-size: 13.5px; }
.local__botones { display: flex; flex-wrap: wrap; gap: 10px; }
.local__mapa { width: 100%; max-width: 520px; aspect-ratio: 16 / 8; overflow: hidden; border: 6px solid rgba(255, 253, 250, 0.9); box-shadow: var(--sombra); background: var(--tinta-3); }
.local__mapa iframe { width: 100%; height: 100%; border: 0; }

@media (max-width: 1099px) {
  .local__fondo { display: none; }
  .local__grilla { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .local__info { justify-items: center; }
  .local__datos li { text-align: left; }
  .local__botones { justify-content: center; }
  .local__video { width: min(78vw, 340px); }
}
@media (max-width: 767px) {
  /* En celular el cartelito va arriba, así no choca con los botones del video */
  .local__chip { left: 50%; top: 18%; bottom: auto; transform: translateX(-50%); white-space: nowrap; }
  .local__titulo { font-size: 42px; }
  .local__mapa { aspect-ratio: 4 / 3; }
}
