@font-face {
  font-family: 'Electroharmonix';
  src: url('../fonts/Electroharmonix.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Lato';
  src: url('../fonts/Lato-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --yale-blue: #254265;
  --light-blue: #aed1cd;
  --olive-bark: #6f581e;
  --pearl-beige: #e5d9b4;
  --porcelain: #fbfbf8;
  --pitch-black: #0d0d07;

  --font-main: 'Lato', sans-serif;
  --font-logo: 'Electroharmonix', cursive;

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 4rem;
  --spacing-xl: 6rem;

  --border-radius: 8px;
  --transition: all 0.3s ease;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  background-color: var(--porcelain);
  color: var(--pitch-black);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2 {
  font-weight: 900;
  line-height: 1.3;
  color: var(--yale-blue);
  margin-bottom: var(--spacing-sm);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3, h4 {
  font-weight: 700;
  line-height: 1.4;
  color: var(--yale-blue);
  margin-bottom: var(--spacing-xs);
}

h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: var(--spacing-sm);
}

a {
  text-decoration: none;
  color: var(--yale-blue);
  transition: var(--transition);
}

a:hover {
  color: var(--olive-bark);
}

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

/* --- LAYOUT --- */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  padding: var(--spacing-lg) 0;
}

/* --- BUTTONS --- */
.btn-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: var(--spacing-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  text-align: center;
}

.btn img {
  height: 24px;
}

.btn-primary {
  background-color: var(--yale-blue);
  color: var(--porcelain);
  box-shadow: 0 4px 15px rgba(37, 66, 101, 0.3);
}

.btn-primary:hover {
  background-color: var(--pitch-black);
  color: var(--porcelain);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 66, 101, 0.4);
}

.btn-secondary {
  background-color: var(--pearl-beige);
  color: var(--yale-blue);
}

.btn-secondary:hover {
  background-color: var(--olive-bark);
  color: var(--porcelain);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--yale-blue);
  color: var(--yale-blue);
}

.btn-outline:hover {
  background-color: var(--yale-blue);
  color: var(--porcelain);
}

/* --- HEADER --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(251, 251, 248, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  padding: 1rem 0;
  transition: var(--transition);
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-container svg {
  width: 100%;
  max-width: 194px;
  max-height: 40px;
  height: auto;
  display: block;
}

header .logo-container svg .cls-1 {
  fill: var(--light-blue);
}

header .logo-container svg .cls-2 {
  fill: var(--yale-blue);
}

.logo-icon {
  height: 40px;
}

.logo-header {
  width: 100%;
  max-width: 194px;
  max-height: 40px;
  height: auto;
  display: block;
}

.logo-text {
  font-family: var(--font-logo);
  font-size: 2rem;
  color: var(--yale-blue);
  line-height: 1;
  padding-top: 5px;
}

.logo-footer {
  font-family: var(--font-logo);
  line-height: 1;
  padding-top: 5px;
}

nav ul {
  display: none;
  list-style: none;
  gap: 2rem;
}

nav a {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.hamburger {
  display: block;
  cursor: pointer;
  background: none;
  border: none;
}

.hamburger div {
  width: 25px;
  height: 3px;
  background-color: var(--yale-blue);
  margin: 5px;
  transition: all 0.3s ease;
}

.mobile-menu {
  position: fixed;
  top: 70px;
  left: -100%;
  width: 100%;
  height: calc(100vh - 70px);
  background-color: var(--yale-blue);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: 0.4s ease;
  z-index: 999;
}

.mobile-menu.active {
  left: 0;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu li {
  margin: 1.5rem 0;
}

.mobile-menu a {
  color: var(--porcelain);
  font-size: 1.5rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* --- HERO --- */
#hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex;
  align-items: center;
  background-color: var(--pearl-beige);
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-logo-big {
  width: 100%;
  max-width: 300px;
  margin: 0 auto 2rem;
}

.hero-logo-big svg {
  width: 100%;
  height: auto;
  display: block;
}

.hero-logo-big svg .cls-2 {
  fill: #ffffff;
  filter: drop-shadow(0 0 15px #ffffff)
          drop-shadow(0 0 50px #7a22ff)
          drop-shadow(0 0 50px #6c0df2);
}

.hero-title {
  font-family: var(--font-logo);
  font-size: 3rem;
  color: var(--yale-blue);
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--olive-bark);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.15;
  z-index: 1;
}

#hero.has-bg {
  background-image: linear-gradient(rgba(13, 13, 7, 0.7), rgba(13, 13, 7, 0.7)), url('../images/home/local-sofa.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* #hero.has-bg .hero-logo-big {
  filter: brightness(0) invert(1);
} */

#hero.has-bg .hero-subtitle {
  color: var(--pearl-beige);
}

#hero.has-bg .btn-outline {
  border-color: var(--porcelain);
  color: var(--porcelain);
}

#hero.has-bg .btn-outline:hover {
  background-color: var(--porcelain);
  color: var(--yale-blue);
}

/* --- SECTION DECORATION --- */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-md);
}

.section-header h2 {
  display: inline-block;
  position: relative;
}

.section-header h2::after {
  content: '';
  position: absolute;
  width: 50%;
  height: 4px;
  background-color: var(--light-blue);
  bottom: -10px;
  left: 25%;
  border-radius: 2px;
}

/* --- ABOUT & PROCESS --- */
.text-content-box {
  background-color: white;
  padding: var(--spacing-md);
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(37, 66, 101, 0.05);
}

.image-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: var(--spacing-md);
}

.image-grid img {
  border-radius: var(--border-radius);
  object-fit: cover;
  height: 250px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.partners-logos {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: var(--spacing-md);
  flex-wrap: wrap;
  align-items: center;
  transition-delay: 0.2s;
}

.partners-logos img {
  height: 140px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.05));
}

/* --- MENU --- */
#carta {
  background-color: var(--yale-blue);
  color: var(--porcelain);
}

#carta h2, #carta h3 {
  color: var(--porcelain);
}

#carta .section-header h2::after {
  background-color: var(--olive-bark);
}

.menu-category {
  margin-bottom: var(--spacing-lg);
}

.menu-category-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: var(--spacing-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 0.5rem;
}

.category-icon {
  width: 150px;
  height: 150px;
  object-fit: contain;
}

.flip-horizontal{
  transform: scaleX(-1);
}

.menu-items {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.menu-item {
  background: rgba(255,255,255,0.05);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.02);
}

.menu-item:hover {
  transform: translateY(-5px);
  background: rgba(255,255,255,0.08);
  border-color: var(--light-blue);
}

.menu-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.menu-item-title {
  font-size: 1.1rem;
  color: var(--light-blue);
}

.menu-item-price {
  font-weight: 900;
  color: var(--pearl-beige);
  white-space: nowrap;
}

.menu-item-desc {
  font-size: 0.9rem;
  color: rgba(251, 251, 248, 0.8);
}

.menu-note {
  background-color: rgba(111, 88, 30, 0.2);
  padding: 1rem;
  border-left: 4px solid var(--pearl-beige);
  border-radius: 0 8px 8px 0;
  font-style: italic;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* --- REVIEWS --- */
.reviews-container {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.reviews-container::-webkit-scrollbar {
  display: none;
}

.review-card {
  min-width: 300px;
  max-width: 350px;
  scroll-snap-align: center;
  background: white;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(37, 66, 101, 0.08);
  display: flex;
  flex-direction: column;
}

.review-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.reviewer-img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  background-color: var(--pearl-beige);
}

.reviewer-name {
  font-weight: 700;
  color: var(--yale-blue);
}

.review-stars {
  color: #FFD700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.review-text {
  font-size: 0.95rem;
  font-style: italic;
  flex-grow: 1;
}

/* --- FOOTER --- */
footer {
  background-color: var(--pitch-black);
  color: var(--porcelain);
  padding: var(--spacing-lg) 0 var(--spacing-md);
}

/* footer .logo-container svg {
  width: 100%;
  max-width: 194px;
  max-height: 40px;
  height: auto;
  display: block;
} */

/* El !important es necesario aquí para machacar el estilo inline de tu etiqueta <style> interna */
footer .logo-container svg .cls-2 {
  fill: var(--light-blue);
}

footer h3 {
  color: var(--light-blue);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: var(--spacing-md);
}

.footer-col a {
  color: var(--pearl-beige);
}

.footer-col a:hover {
  color: var(--porcelain);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-sm);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* --- ANIMATIONS (JS triggered) --- */
.fade-in {
  opacity: 0;
  transition: opacity 0.8s ease-out;
}
.fade-in.appear {
  opacity: 1;
}

.slide-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.slide-up.appear {
  opacity: 1;
  transform: translateY(0);
}

/* --- RESPONSIVE / MEDIA QUERIES --- */
@media (min-width: 768px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 2.5rem; }

  .btn-group {
    flex-direction: row;
    justify-content: center;
  }

  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-items {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  header {
    padding: 1.5rem 0;
  }

  .hamburger {
    display: none;
  }

  nav ul {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .image-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .reviews-container {
    justify-content: center;
  }
}

/* --- GALLERY --- */
.gallery-container {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  padding: 1rem 0;
  scroll-snap-type: x mandatory;
  -ms-overflow-style: none;
  scrollbar-width: none;
  cursor: grab; /* For desktop drag-to-scroll */
}

.gallery-container:active {
  cursor: grabbing;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  scroll-snap-align: center;
  flex: 0 0 auto;
  width: 250px;
  display: flex;
  flex-direction: column;
}

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

.gallery-img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.gallery-item:hover .gallery-img {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.gallery-item figcaption {
  display: none;
}

/* --- LIGHTBOX --- */
.lightbox {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(13, 13, 7, 0.95);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  touch-action: none; /* Prevent default scrolling on mobile when swiping */
}

.lightbox.active {
  display: flex;
  opacity: 1;
}

.lightbox-wrapper {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-content {
  max-width: 100%;
  max-height: 80vh; /* Leave room for caption */
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox.active .lightbox-content {
  transform: scale(1);
}

.lightbox-caption {
  margin-top: 1rem;
  color: var(--porcelain);
  text-align: center;
  font-size: 1rem;
  font-weight: 400;
  max-width: 800px;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--porcelain);
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  z-index: 2001;
}

.lightbox-close:hover {
  color: var(--light-blue);
}

.lightbox-prev,
.lightbox-next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: auto;
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 30px;
  transition: 0.3s;
  user-select: none;
  background: rgba(0,0,0,0.3);
  border: none;
  border-radius: 4px;
  z-index: 2001;
}

.lightbox-prev {
  left: 20px;
}

.lightbox-next {
  right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background-color: rgba(0,0,0,0.8);
  color: var(--light-blue);
}
