/* ================================================================
   LEONORA PIZZA RÚSTICA - STYLES.CSS
   ================================================================
   Diseño: Rústico industrial cálido
   Paleta: Beige #F5E6C8, Vino #7B1F2E, Negro #1A0A05, Naranja #D47A3E
   Tipografía: Playfair Display + Plus Jakarta Sans
   ================================================================ */

/* ================================================================
   1. RESET & BASE
   ================================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--negro);
  background-color: var(--beige);
  overflow-x: hidden;
}

img,
picture,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ================================================================
   2. CSS CUSTOM PROPERTIES
   ================================================================ */

:root {
  /* Paleta */
  --beige: #F5E6C8;
  --vino: #7B1F2E;
  --negro: #1A0A05;
  --naranja: #D47A3E;
  --overlay: rgba(10, 4, 2, 0.6);
  --whatsapp: #25D366;

  /* Tipografía */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Espaciado */
  --container-max: 1100px;
  --section-padding-mobile: 48px;
  --section-padding-desktop: 80px;
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  /* Animaciones */
  --duration-fast: 0.2s;
  --duration-base: 0.4s;
  --easing: cubic-bezier(0.16, 1, 0.3, 1);

  /* Z-index */
  --z-sticky: 100;
  --z-whatsapp: 200;
}

/* ================================================================
   3. UTILIDADES
   ================================================================ */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-inline: 40px;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ================================================================
   4. TIPOGRAFÍA
   ================================================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--negro);
}

.hero-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(4rem, 12vw, 8rem);
  text-transform: lowercase;
  color: var(--beige);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  line-height: 1;
  margin-bottom: 16px;
}

.hero-subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(245, 230, 200, 0.8);
  letter-spacing: 0.15em;
  text-transform: lowercase;
  margin-bottom: 32px;
}

.section-title {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(2rem, 5vw, 3rem);
  text-transform: lowercase;
  margin-bottom: 48px;
  text-align: center;
}

.price {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--vino);
}

/* ================================================================
   5. BOTONES
   ================================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 32px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-lg);
  transition: all var(--duration-base) var(--easing);
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--vino);
  color: var(--beige);
  border: 2px solid var(--vino);
}

.btn-primary:hover {
  background-color: #5a1721;
  border-color: #5a1721;
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--beige);
  border: 2px solid var(--beige);
}

.btn-secondary:hover {
  background-color: rgba(245, 230, 200, 0.1);
  transform: translateY(-2px);
}

.btn-ghost {
  background-color: transparent;
  color: var(--beige);
  border: none;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-ghost:hover {
  color: rgba(245, 230, 200, 0.8);
}

/* ================================================================
   6. NAVBAR
   ================================================================ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: transparent;
  transition: background-color var(--duration-base) var(--easing),
              box-shadow var(--duration-base) var(--easing);
}

.navbar.scrolled {
  background-color: var(--beige);
  box-shadow: 0 2px 8px rgba(26, 10, 5, 0.1);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
}

.navbar-logo {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.navbar-logo img {
  height: 36px;
  width: auto;
}

.navbar-logo-text {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--beige);
}

.navbar-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 30px;
  height: 24px;
  cursor: pointer;
}

.navbar-toggle-line {
  width: 100%;
  height: 3px;
  background-color: var(--beige);
  transition: all var(--duration-base) var(--easing);
}

.navbar.scrolled .navbar-toggle-line {
  background-color: var(--negro);
}

.navbar-toggle.active .navbar-toggle-line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.navbar-toggle.active .navbar-toggle-line:nth-child(2) {
  opacity: 0;
}

.navbar-toggle.active .navbar-toggle-line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.navbar-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--beige);
  padding: 24px;
  box-shadow: 0 4px 12px rgba(26, 10, 5, 0.15);
}

.navbar-menu.active {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.navbar-link {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--negro);
  transition: color var(--duration-fast) var(--easing);
}

.navbar-link:hover {
  color: var(--vino);
}

.navbar-cta {
  margin-top: 12px;
}

@media (min-width: 768px) {
  .navbar-toggle {
    display: none;
  }

  .navbar-menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    position: static;
    background-color: transparent;
    padding: 0;
    box-shadow: none;
  }

  .navbar-link {
    color: var(--beige);
  }

  .navbar.scrolled .navbar-link {
    color: var(--negro);
  }

  .navbar-cta {
    margin-top: 0;
  }
}

/* ================================================================
   7. HERO
   ================================================================ */

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

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--overlay);
}

.hero-content {
  text-align: center;
  padding-top: 80px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--naranja);
  color: var(--negro);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 24px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.5);
  border: 2px solid var(--negro);
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: center;
  justify-content: center;
}

@media (min-width: 768px) {
  .hero-cta {
    flex-direction: row;
    gap: 24px;
  }
}

/* ================================================================
   8. SECCIONES BASE
   ================================================================ */

section {
  padding-block: var(--section-padding-mobile);
}

@media (min-width: 768px) {
  section {
    padding-block: var(--section-padding-desktop);
  }
}

/* ================================================================
   9. MENÚ
   ================================================================ */

.menu {
  background-color: var(--beige);
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 48px;
}

.menu-tab {
  padding: 14px 28px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  color: var(--vino);
  background-color: transparent;
  border: 2px solid var(--vino);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all var(--duration-base) var(--easing);
  white-space: nowrap;
}

.menu-tab:hover {
  background-color: rgba(123, 31, 46, 0.1);
}

.menu-tab.active {
  background-color: var(--vino);
  color: var(--beige);
}

.menu-panel {
  display: none;
}

.menu-panel.active {
  display: block;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
  }
}

.menu-item {
  border-bottom: 1px solid rgba(26, 10, 5, 0.15);
  padding-bottom: 20px;
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 8px;
}

.menu-item-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--negro);
}

.menu-item-badge {
  display: inline-block;
  background-color: var(--naranja);
  color: white;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 8px;
}

.menu-item-description {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(26, 10, 5, 0.7);
  line-height: 1.5;
}

/* ================================================================
   10. GALERÍA
   ================================================================ */

.gallery {
  background-color: var(--negro);
  padding-block: var(--section-padding-mobile);
}

@media (min-width: 768px) {
  .gallery {
    padding-block: var(--section-padding-desktop);
  }
}

.gallery .section-title {
  color: var(--beige);
}

.gallery-grid {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--vino) rgba(245, 230, 200, 0.2);
}

.gallery-grid::-webkit-scrollbar {
  height: 8px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(245, 230, 200, 0.2);
  border-radius: 4px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--vino);
  border-radius: 4px;
}

@media (min-width: 768px) {
  .gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    overflow-x: visible;
  }
}

.gallery-item {
  flex: 0 0 280px;
  scroll-snap-align: start;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform var(--duration-base) var(--easing);
}

@media (min-width: 768px) {
  .gallery-item {
    flex: 1;
  }
}

.gallery-item:hover {
  transform: scale(1.02);
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-marquee {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
}

.marquee-row {
  overflow: hidden;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 1rem;
  width: max-content;
}

.marquee-track .gallery-item {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
}

.marquee-track .gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-md);
}

.marquee-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin: 0.75rem 0 1.5rem;
}

.marquee-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--negro);
  background: var(--beige);
  color: var(--negro);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.marquee-arrow:hover {
  background: var(--naranja);
}

/* ================================================================
   11. RESEÑAS
   ================================================================ */

.reviews {
  background-color: var(--vino);
  color: var(--beige);
}

.reviews .section-title {
  color: var(--beige);
}

.reviews-counter {
  text-align: center;
  margin-bottom: 48px;
}

.reviews-number {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(3rem, 8vw, 5rem);
  color: var(--naranja);
  line-height: 1;
  margin-bottom: 8px;
}

.reviews-label {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--beige);
}

.reviews-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

@media (min-width: 768px) {
  .reviews-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
  }
}

.review-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 24px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}

.review-stars {
  color: var(--naranja);
  font-size: 1.2rem;
  margin-bottom: 12px;
}

.review-text {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--beige);
  margin-bottom: 16px;
  font-style: italic;
}

.review-author {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(245, 230, 200, 0.8);
}

.reviews-cta {
  text-align: center;
}

.reviews-cta a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--beige);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--duration-fast) var(--easing);
}

.reviews-cta a:hover {
  color: var(--naranja);
}

/* ================================================================
   12. ENCUÉNTRANOS
   ================================================================ */

.location {
  background-color: var(--beige);
}

.location-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

@media (min-width: 768px) {
  .location-content {
    grid-template-columns: 1fr 1fr;
    gap: 60px;
  }
}

.location-map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(26, 10, 5, 0.15);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.location-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.location-icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  color: var(--vino);
}

.location-text {
  font-family: var(--font-body);
}

.location-text strong {
  display: block;
  font-weight: 600;
  color: var(--vino);
  margin-bottom: 4px;
}

.location-text a {
  color: var(--vino);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--duration-fast) var(--easing);
}

.location-text a:hover {
  color: var(--naranja);
}

/* ================================================================
   13. FOOTER
   ================================================================ */

.footer {
  background-color: var(--negro);
  color: var(--beige);
  padding-block: 48px;
  text-align: center;
}

.footer-logo {
  margin-bottom: 16px;
}

.footer-logo img {
  height: 48px;
  width: auto;
  margin-inline: auto;
}

.footer-name {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--beige);
  margin-bottom: 24px;
}

.footer-social {
  margin-bottom: 24px;
}

.footer-social a {
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--beige);
  text-decoration: underline;
  text-underline-offset: 4px;
  transition: color var(--duration-fast) var(--easing);
}

.footer-social a:hover {
  color: var(--naranja);
}

.footer-credits {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(245, 230, 200, 0.6);
}

/* ================================================================
   14. WHATSAPP FLOTANTE
   ================================================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: var(--z-whatsapp);
  width: 60px;
  height: 60px;
  background-color: var(--whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all var(--duration-base) var(--easing);
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
  fill: white;
}

/* ================================================================
   15. ANIMACIONES
   ================================================================ */

.reveal {
  opacity: 0;
  filter: blur(10px);
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.blur-fade {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(4px);
  transition: opacity 0.8s ease, transform 0.8s ease, filter 0.8s ease;
}

.blur-fade.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }

/* ================================================================
   16. REDUCED MOTION
   ================================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }
}

.hero-bg { overflow: hidden; }


.navbar-logo-icon {
  height: 40px;
  width: auto;
}
