:root {
  --bg: #f7ebdf;
  --accent: #ff3366;
  --accent2: #ff6b35;
  --cream: #4d3225;
  --white: #fff;
  --muted: #888;
  --light-brown: #d5c6b9;
  --dark-brown: #4d3225;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg);
  color: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.font-display {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.02em;
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  /* removed gradient per request */
  background: transparent;
  transition: background 0.3s;
}

.logo {
  display: inline-block;
  /* keep some space for the image if text fallback is needed */
}

.logo img {
  display: block;
  height: 5rem;
  /* increased size as requested */
  width: auto;
}

.nav-toggle {
  background: rgba(247, 235, 223, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(247, 235, 223, 0.1);
  width: 45px;
  height: 45px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}

/* transform hamburger into X when menu is open */
.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  padding: 5.5rem 1.5rem 2rem;
  /* pad space equal to header height so items sit below it */
  /* move the nav completely offscreen by including the extra top padding in the translation */
  transform: translateY(calc(-100% - 5rem));
  transition: transform 0.3s ease;
  z-index: 99;
  overflow-y: auto;
  /* allow scroll inside menu */
  -webkit-overflow-scrolling: touch;
}

nav.open {
  transform: translateY(0);
}

nav a {
  display: block;
  /* each on its own line */
  width: fit-content;
  /* shrink to content width */
  margin: 0.25rem auto;
  /* center and space vertically */
  color: #4d3225;
  text-decoration: none;
  padding: 0.5rem 1rem;
  /* small padding around text */
  font-weight: 600;
  font-size: 1.25rem;
  transition: color 0.2s;
  text-transform: uppercase;
  /* make entries uppercase */
}



nav.has-selected a:not(.selected) {
  color: #d5c6b9;
}

/* Hero & CTA */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 5rem 1.25rem 2rem;
  text-align: center;
}

.hero .tag {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.hero h1 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 12vw, 4.5rem);
  line-height: 0.95;
  margin-bottom: 0.25rem;
  color: var(--white);
}

.hero h1 .highlight {
  color: var(--accent);
  display: block;
}

.hero .sub {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
}

.cta {
  background-color: #1a1a1a;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #faebde;
  border: none;
  padding: 1rem 1.25rem;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 2.25rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  line-height: 1;
  border-radius: 15px;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  text-transform: uppercase;
  text-align: left;
  overflow: hidden;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 1), 0 0 15px rgba(0, 0, 0, 0.5);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.1s;
}

.cta:active {
  transform: scale(0.98);
  filter: brightness(0.9);
}

.cta+.cta {
  margin-top: 20px;
}

/* Imágenes específicas para cada botón */
.cta--desayunos {
  background-image: url('media/desayunos-movil.webp');
}

.cta--churros {
  background-image: url('media/churros-movil.webp');
}

.cta--bocapizzas {
  background-image: url('media/bocapizzas-movil.webp');
}

.cta--croissants {
  background-image: url('media/croissants-movil.webp');
}

.cta--cafes {
  background-image: url('media/cafes-movil.webp');
}

.cta--infusiones {
  background-image: url('media/tes-movil.webp');
}

.cta--chocolates {
  background-image: url('media/chocolate-movil.webp');
}

.cta--bebidas {
  background-image: url('media/bebidas.webp');
}

.cta--smoothies {
  background-image: url('media/smoothies.webp');
}

.cta--cereales {
  background-image: url('media/cereales-movil.webp');
}

.cta--bolleria {
  background-image: url('media/bolleria.webp');
  /* Usando bollería artesana */
}

.cta--gofres {
  background-image: url('media/creps.webp');
}

.cta--helados {
  background-image: url('media/helados-movil.webp');
}

/* Sections */
section {
  padding: 3.5rem 1.25rem;
  max-width: 480px;
  margin: 0 auto;
}

section h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--white);
}

section p {
  color: var(--muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Quote Section */
.quote {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 7rem 1.25rem 2rem;
  text-align: center;
}

.welcome-header {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-bg-section {
  width: 100vw;
  margin-left: -1.25rem;
  margin-right: -1.25rem;
  background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url('media/portada.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin-bottom: 3rem;
  position: relative;
  /* Para posicionar la flecha */
}

.scroll-down {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  color: #faebde;
  animation: bounce 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  z-index: 10;
  text-decoration: none;
}

.scroll-down svg {
  width: 24px;
  height: 24px;
}

.melting-sep {
  line-height: 0;
  display: block;
}

.color-block {
  height: 350px;
  /* Más alto para que quepa el texto */
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-content {
  text-align: center;
  color: #faebde;
}

.hero-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 15vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.2rem;
  font-weight: 500;
  color: #faebde;
  opacity: 1;
}

.melting-sep img {
  width: 100%;
  display: block;
}

.welcome-top {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem;
  /* Un poco más grande */
  text-transform: uppercase;
  color: #523123;
  margin-bottom: -0.25rem;
  /* Más solapamiento */
  position: relative;
  z-index: 1;
  letter-spacing: 0.05em;
}

.welcome-title {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(3rem, 14vw, 5.5rem);
  line-height: 1;
  color: #523123;
  background-color: #E3A458;
  padding: 0.2rem 0.5rem;
  transform: rotate(-2deg);
  text-transform: uppercase;
  position: relative;
  z-index: 2;
  box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.1);
  margin-top: 0;
}

.quote blockquote {
  font-size: 1.1rem;
  font-style: italic;
  color: rgba(77, 50, 37, 0.7);
  max-width: 600px;
  line-height: 1.5;
  margin-bottom: 3rem;
}

/* Overlay */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 98;
}

.liquid-button {
  z-index: 3;
  background-color: var(--dark-brown);
  color: var(--light-brown);
  letter-spacing: -0.01vw;
  text-transform: uppercase;
  border-radius: 100vw;
  flex-flow: column;
  justify-content: center;
  align-items: center;
  width: 15vw;
  /* increased width a bit for bigger text */
  height: 4.5vw;
  padding-bottom: 0.2vw;
  font-family: 'Outfit', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 110%;
  text-decoration: none;
  display: flex;
  position: relative;
  border: none;
  cursor: pointer;
}

@media screen and (max-width: 991px) {
  .liquid-button {
    width: 200px;
    /* adjusted for bigger text */
    height: 56px;
    font-size: 1.25rem;
  }
}

/* Modal Styles */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
  /* more padding for screen edges */
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: #fff;
  /* White as in the new reference */
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  /* reduced height to show more background */
  border-radius: 30px;
  /* rounded as requested */
  padding: 3rem 1.5rem 2rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow-y: auto;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */
}

.modal::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.modal-overlay.open .modal {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #4d3225;
  cursor: pointer;
  line-height: 1;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.modal-close:hover {
  opacity: 1;
}

.modal-title {
  font-family: 'Outfit', sans-serif;
  font-size: 2rem;
  color: #4d3225;
  margin-bottom: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  text-align: center;
}

.modal-content {
  color: #4d3225;
}

.menu-section {
  margin-bottom: 2.5rem;
}

.menu-section-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.1rem;
  letter-spacing: 0.1em;
  margin-bottom: 1.2rem;
  color: #4d3225;
}

.modal-title-main {
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  color: #4d3225;
  letter-spacing: 0.1em;
}

.menu-section-title::before,
.menu-section-title::after {
  content: '';
  height: 1px;
  flex-grow: 1;
  background: #eee;
}

.menu-description {
  text-align: center;
  font-size: 0.95rem;
  margin-bottom: 2rem;
  color: #777;
}

.menu-list {
  list-style: none;
  padding: 0;
}

.menu-item-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  margin-bottom: 1.25rem;
  align-items: start;
  /* changed from end to support descriptions */
}

.menu-item-row.single-price {
  grid-template-columns: 1fr auto;
}

.menu-item-info {
  display: flex;
  flex-direction: column;
}

.menu-item-name {
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.2;
}

.menu-item-description {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
}

.price-box {
  text-align: center;
}

.price-label {
  display: block;
  font-size: 0.7rem;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.price-value {
  font-weight: 700;
  font-size: 1rem;
}

.extra-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.extra-name {
  font-weight: 400;
}

.extra-price {
  font-weight: 700;
}

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: row;
  /* Single line */
  align-items: center;
  gap: 8px;
  /* Space between text and arrow */
  opacity: 0.9;
  pointer-events: none;
  animation: bounce 2s infinite;
  transition: opacity 0.3s;
  background: rgba(82, 49, 35, 0.9);
  /* #523123 with transparency */
  padding: 0.5rem 1.25rem;
  border-radius: 100px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(250, 235, 222, 0.1);
}

.scroll-hint.hidden {
  opacity: 0;
}

.scroll-hint span {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #faebde;
}

.scroll-hint::after {
  content: '↓';
  font-size: 1.1rem;
  color: #faebde;
  margin-top: -2px;
}

@keyframes bounce {

  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  40% {
    transform: translateX(-50%) translateY(-5px);
  }

  60% {
    transform: translateX(-50%) translateY(-3px);
  }
}

/* Footer Socials */
.footer-socials {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 4rem 0 6rem;
  background-color: #222123;
  width: 100%;
}

.footer-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 3rem;
  color: #f7ebdf;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.social-btns-row {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
}

.footer-info {
  margin-top: 2rem;
  text-align: center;
  color: rgba(247, 235, 223, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
  font-family: 'Outfit', sans-serif;
}

.footer-info .made-with {
  display: block;
  color: #f7ebdf;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(247, 235, 223, 0.2);
  color: #f7ebdf;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-btn:hover {
  background-color: rgba(247, 235, 223, 0.1);
  border-color: rgba(247, 235, 223, 0.8);
  transform: translateY(-4px);
}

.social-btn svg {
  width: 22px;
  height: 22px;
}