:root {
  --bg: #17110f;
  --bg-soft: #f3ece5;
  --text: #ff0000;
  --light: #fff;
  --accent: #ff0000;
  --muted: #746a63;
  --container: 1120px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.6;
  scroll-snap-type: y mandatory;
  overflow-y: auto;
}

h1,
h2 {
  font-family: "Cormorant Garamond", serif;
  line-height: 1.1;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.2rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
}

p {
  margin-top: 0;
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  min-height: 100svh;
  padding: 6rem 0 4rem;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-light {
  background: var(--bg-soft);
}

.section-dark {
  background: var(--bg);
  color: var(--light);
}

.kicker {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
  height: 100vh;
  height: 100dvh;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgb(10 7 6 / 20%) 12%, rgb(10 7 6 / 10%) 48%, rgb(10 7 6 / 0%) 100%),
    linear-gradient(to right, rgb(18 13 11 / 10%) 0%, rgb(18 13 11 / 0%) 65%);
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: inherit;
  display: grid;
  place-items: center;
}

.historia-section {
  display: flex;
  align-items: center;
  background: #16100e;
}

.historia-shell {
  width: 100%;
}

.historia-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.historia-copy {
  min-height: clamp(380px, 50vh, 640px);
  padding: clamp(1.2rem, 2.4vw, 2rem);
  background: rgb(255 255 255 / 4%);
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.historia-copy .kicker {
  color: #ff0000;
}

.historia-copy blockquote {
  border-left: 3px solid #ffffff66;
  color: #f6e8dd;
}

.historia-media {
  position: relative;
  min-height: clamp(380px, 50vh, 640px);
  border-radius: 0;
  box-shadow: none;
  overflow: hidden;
}

.historia-media-video {
  min-height: auto;
  aspect-ratio: 16 / 9;
}

.historia-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.historia-carousel {
  overflow: hidden;
  touch-action: pan-y;
  user-select: none;
  cursor: grab;
}

.historia-carousel.is-dragging {
  cursor: grabbing;
}

.historia-carousel-track {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 650ms ease;
}

.historia-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.historia-slide-1 {
  background:
    linear-gradient(120deg, rgb(19 14 12 / 20%), rgb(19 14 12 / 42%)),
    url("./espinaler.jpeg") center/cover;
}

.historia-slide-2 {
  background:
    linear-gradient(120deg, rgb(19 14 12 / 20%), rgb(19 14 12 / 42%)),
    url("./hamburguesa.jpeg") center/cover;
}

.historia-slide-3 {
  background: transparent;
}

.historia-media-2 {
  background:
    linear-gradient(120deg, rgb(19 14 12 / 20%), rgb(19 14 12 / 42%)),
    url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.historia-media-3 {
  background:
    linear-gradient(120deg, rgb(19 14 12 / 20%), rgb(19 14 12 / 42%)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.historia-media-4 {
  background:
    linear-gradient(120deg, rgb(19 14 12 / 14%), rgb(19 14 12 / 28%)),
    url("https://images.unsplash.com/photo-1470337458703-46ad1756a187?auto=format&fit=crop&w=1400&q=80") center/cover;
  filter: grayscale(100%);
}

.historia-combo {
  min-height: clamp(380px, 50vh, 640px);
  background: rgb(255 255 255 / 4%);
  border-radius: 0;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.historia-combo-top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  padding: 0;
}

.historia-combo-image {
  min-height: clamp(220px, 24vh, 300px);
}

.historia-combo-image-1 {
  background:
    linear-gradient(120deg, rgb(19 14 12 / 12%), rgb(19 14 12 / 24%)),
    url("./familia.jpeg") center/cover;
}

.historia-combo-image-2 {
  background:
    linear-gradient(120deg, rgb(19 14 12 / 12%), rgb(19 14 12 / 24%)),
    url("./iñaki.jpeg") center/cover;
}

.historia-combo-copy {
  padding: clamp(1rem, 2vw, 1.5rem);
}

.historia-combo-copy h2 {
  margin: 0;
}

.hero-content {
  color: #fff;
  width: 100%;
  max-width: 980px;
  background: transparent;
  backdrop-filter: none;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.1rem;
}

.hero-logo {
  margin: 0;
}

.hero-logo-image {
  display: block;
  width: min(92vw, 980px);
  height: auto;
}

.hero .kicker {
  color: #ff0000;
}

.hero .btn-ghost {
  color: #fff;
  border-color: #ffffff80;
}

.cta-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12rem;
}

.hero .btn-primary {
  padding: 0.9rem 1.6rem;
  font-size: 1rem;
}

.btn {
  text-decoration: none;
  padding: 0.8rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-ghost {
  color: var(--accent);
  border: 1px solid #bf9d89;
}

.two-col,
.story-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.mock-card,
.story-image,
.map-mock,
.gallery-item {
  border-radius: 16px;
  min-height: 280px;
  background: linear-gradient(135deg, #c8ab97, #8c6349);
  position: relative;
}

.mock-card::after,
.story-image::after,
.map-mock::after,
.gallery-item::after {
  content: "MOCKUP";
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  color: #ffffffbf;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.feature-list {
  padding-left: 1rem;
}

.carta-section {
  display: flex;
  align-items: stretch;
  min-height: 100svh;
  padding: 5%;
}

.carta-layout {
  width: 100%;
  display: flex;
}

.carta-media {
  position: relative;
  width: 100%;
  min-height: 100%;
  border-radius: 0;
  background:
    linear-gradient(130deg, rgb(19 14 12 / 22%), rgb(19 14 12 / 54%)),
    url("./barra.jpeg") center/cover;
  box-shadow: 0 22px 60px #00000026;
  display: grid;
  place-items: center;
}

.carta-button {
  border-radius: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  padding: 0.85rem 1.9rem;
}

.text-link {
  color: var(--accent);
  font-weight: 700;
}

blockquote {
  border-left: 3px solid #ffffff55;
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  color: #f7ece4;
}

.gallery-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  min-height: 220px;
}

.galeria-section {
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #f7f2ed 0%, #efe6de 100%);
}

.galeria-layout {
  display: grid;
  gap: 1.25rem;
}

.galeria-head {
  max-width: 720px;
}

.galeria-mosaic {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.9rem;
  min-height: min(62vh, 700px);
}

.galeria-mosaic .gallery-item {
  min-height: 220px;
  border-radius: 16px;
  box-shadow: 0 16px 34px #0000001a;
}

.galeria-mosaic .gallery-item::after {
  content: "";
}

.gallery-a {
  grid-column: span 7;
  grid-row: span 2;
  background:
    linear-gradient(120deg, rgb(19 14 12 / 24%), rgb(19 14 12 / 52%)),
    url("https://images.unsplash.com/photo-1514933651103-005eec06c04b?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.gallery-b {
  grid-column: span 5;
  background:
    linear-gradient(120deg, rgb(19 14 12 / 18%), rgb(19 14 12 / 48%)),
    url("https://images.unsplash.com/photo-1544148103-0773bf10d330?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.gallery-c {
  grid-column: span 5;
  background:
    linear-gradient(120deg, rgb(19 14 12 / 18%), rgb(19 14 12 / 48%)),
    url("https://images.unsplash.com/photo-1514362545857-3bc16c4c7d1b?auto=format&fit=crop&w=1200&q=80") center/cover;
}

.gallery-d {
  grid-column: span 7;
  background:
    linear-gradient(120deg, rgb(19 14 12 / 22%), rgb(19 14 12 / 50%)),
    url("https://images.unsplash.com/photo-1552566626-52f8b828add9?auto=format&fit=crop&w=1400&q=80") center/cover;
}

.socials {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.socials a {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.contacto-section {
  display: flex;
  align-items: center;
  background: #eeebe5;
}

.contacto-section .container {
  width: calc(100% - 2rem);
  max-width: 100%;
}

.contacto-shell {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: clamp(1rem, 2vw, 1.5rem);
  align-items: stretch;
}

.contacto-brand,
.contacto-panel,
.map-card {
  width: 100%;
  min-height: min(62svh, 640px);
}

.contacto-brand {
  display: grid;
  place-items: center;
  gap: 1rem;
  text-align: center;
}

.contacto-logo {
  width: min(100%, 520px);
  height: auto;
  object-fit: contain;
}

.contacto-logo-secondary {
  width: min(100%, 320px);
  height: auto;
  object-fit: contain;
}

.contacto-brand-copy {
  margin: 0;
  color: #ff0000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contacto-panel {
  display: grid;
  align-content: center;
  gap: 1.1rem;
  color: #ff0000;
}

.contacto-panel .kicker {
  color: #ff0000;
  margin-bottom: 0;
}

.contact-block h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1;
  color: #ff0000;
}

.contact-block p {
  margin: 0.5rem 0 0;
  font-size: clamp(1rem, 1.2vw, 1.2rem);
  line-height: 1.35;
  font-weight: 700;
  color: #ff0000;
}

.contact-block a {
  color: #ff0000;
  text-decoration: none;
}

.horario-img {
  width: 100%;
  max-width: 400px;
  height: auto;
  mix-blend-mode: multiply;
  margin-top: -0.5rem;
}

.map-card {
  display: block;
}

.map-link {
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.9rem;
}

.map-card .map-mock {
  position: relative;
  min-height: min(56svh, 620px);
  border: 3px solid #ff0000;
  background-color: #eeebe5;
  background:
    repeating-linear-gradient(48deg, transparent 0 34px, #ff0000 35px 38px, transparent 39px 90px),
    repeating-linear-gradient(-38deg, transparent 0 40px, #ff0000 41px 44px, transparent 45px 110px),
    #eeebe5;
}

.map-card .map-mock::before {
  content: "P";
  position: absolute;
  left: 50%;
  top: 52%;
  transform: translate(-50%, -50%);
  width: 74px;
  height: 74px;
  border-radius: 999px;
  background: #ff0000;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 2.2rem;
  font-weight: 700;
}

.map-card .map-mock::after {
  content: "";
}

.map-link-label {
  color: #ff0000;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.contacto-section .socials a {
  color: #ff0000;
  border-bottom: 1px solid #ff000066;
}

.site-footer {
  background: #140f0d;
  color: #ddd1c8;
  min-height: auto;
  padding: 3rem 0 1.8rem;
  display: flex;
  align-items: center;
  scroll-snap-align: start;
  scroll-snap-stop: normal;
}

.footer-screen {
  display: grid;
  align-content: center;
  gap: 1rem;
}

.site-footer h2 {
  color: #fff;
  max-width: 720px;
  margin-bottom: 0;
}

.footer-copy {
  max-width: 680px;
  color: #d7c8bc;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: #f0d6c6;
  text-decoration: none;
  border-bottom: 1px solid #ffffff4f;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-footer a {
  color: #f0d6c6;
  text-decoration: none;
}

@media (max-width: 900px) {
  body {
    scroll-snap-type: y proximity;
  }

  .section {
    min-height: auto;
    padding: 4rem 0;
  }

  .site-footer {
    min-height: auto;
    padding: 4rem 0 2rem;
  }

  .two-col,
  .story-grid,
  .contact-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .galeria-mosaic {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .gallery-a,
  .gallery-b,
  .gallery-c,
  .gallery-d {
    grid-column: auto;
    grid-row: auto;
    min-height: 32vh;
  }

  .carta-layout {
    width: 100%;
  }

  .historia-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .historia-grid> :nth-child(1) {
    order: 2;
  }

  .historia-grid> :nth-child(2) {
    order: 1;
  }

  .historia-grid> :nth-child(3) {
    order: 3;
  }

  .historia-grid> :nth-child(4) {
    order: 4;
  }

  .historia-grid> :nth-child(5) {
    order: 6;
  }

  .historia-grid> :nth-child(6) {
    order: 5;
  }

  .historia-grid> :nth-child(7) {
    order: 7;
  }

  .historia-grid> :nth-child(8) {
    order: 8;
  }

  .historia-copy,
  .historia-media,
  .historia-combo {
    border-radius: 0;
    box-shadow: none;
  }

  .historia-copy {
    min-height: auto;
    background: transparent;
    padding: 2rem 1.5rem;
  }

  .historia-media {
    min-height: 34vh;
  }

  .historia-media-video {
    min-height: auto;
    width: 100%;
    height: auto;
  }

  .historia-combo {
    min-height: auto;
    background: transparent;
    overflow: visible;
  }

  .historia-combo-top {
    gap: 0;
    padding: 0;
  }

  .historia-combo-image {
    min-height: 26vh;
  }

  .historia-combo-copy {
    padding: 2rem 1.5rem;
  }

  .contacto-shell {
    grid-template-columns: 1fr;
  }

  .contacto-brand,
  .contacto-panel,
  .map-card {
    min-height: auto;
  }

  .contacto-panel {
    order: 2;
    text-align: center;
    justify-items: center;
    padding: 1rem 0;
  }

  .contacto-panel .socials {
    justify-content: center;
  }

  .map-card {
    order: 3;
  }

  .map-card .map-mock {
    min-height: 42svh;
  }

  .carta-section {
    min-height: 70svh;
    padding: 5%;
  }

  .carta-media {
    min-height: 60svh;
  }

  .hero-content {
    max-width: 100%;
    gap: 0.9rem;
  }

  .hero {
    min-height: 100vh;
    min-height: 100svh;
    min-height: 100dvh;
    height: 100vh;
    height: 100dvh;
  }

  .hero-logo-image {
    width: min(88vw, 560px);
  }

  .hero .btn-primary {
    padding: 0.82rem 1.35rem;
    font-size: 0.95rem;
  }
}

/* WhatsApp Floating Button */
.whatsapp-float-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whatsapp-tooltip {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: float-pulse 2s infinite;
}

.whatsapp-tooltip::after {
  content: "";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px 0 6px 6px;
  border-style: solid;
  border-color: transparent transparent transparent var(--accent);
}

.whatsapp-float {
  background-color: #25d366;
  color: #FFF;
  border-radius: 50%;
  width: 64px;
  height: 64px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.05);
  background-color: #1ebe57;
}

@keyframes float-pulse {
  0% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
  100% { transform: translateY(0); }
}

@media (max-width: 900px) {
  .whatsapp-float-container {
    bottom: 20px;
    right: 20px;
    gap: 8px;
  }
  .whatsapp-float {
    width: 54px;
    height: 54px;
  }
  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }
  .whatsapp-tooltip {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}