/* ===== Reset básico ===== */

body {
  font-family: 'Poppins', sans-serif;
  margin: 0; 
  padding: 0; 
  color: #333;
}

h1, h2, h3 {
  font-weight: 800;
}

p {
  font-weight: 300;
}

/* ===== Header de navegación (Estilo Agencia Boutique) ===== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  background: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0) 100%); /* Degradado sutil inicial */
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  z-index: 1000;
  transition: all 0.4s ease;
}

/* Navbar al hacer scroll (Efecto Glassmorphism / Cristal esmerilado) */
.navbar.scrolled {
  background: rgba(30, 24, 21, 0.85); /* Tono oscuro translúcido elegante */
  backdrop-filter: blur(10px);        /* Desenfoque de fondo moderno */
  -webkit-backdrop-filter: blur(10px);
  padding: 15px 40px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid rgba(196, 155, 99, 0.15);
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.logo span {
  font-size: 1.4rem;
  font-weight: 600;
  color: #ffffff; /* Blanco limpio para que resalte elegante */
  font-family: 'Poppins', sans-serif;
  letter-spacing: 0.5px;
}

/* Menú */
.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Ítems */
.nav-links li a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  font-family: 'Poppins', sans-serif;
  font-size: 0.95rem;
  transition: color 0.3s ease;
  position: relative;
}

/* Efecto de línea dorada elegante al pasar el cursor */
.navbar .nav-links li a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: #c49b63;
  transition: width 0.3s ease;
}

.nav-links li a:hover {
  color: #c49b63;
}

.nav-links li a:hover::after {
  width: 100%;
}


/* ===== Hero principal Pro (Estilo Boutique) ===== */
.hero {
  background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.55)), url('../img/hero-restaurante.jpg') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: white;
  text-shadow: none;
  padding-left: 80px;
  background-attachment: fixed;
}

.hero h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 3.5rem;
  font-weight: 600;
  text-align: left;
  margin-bottom: 10px;
  line-height: 1.2;
}

.hero p {
  font-family: 'Poppins', sans-serif;
  font-size: 1.25rem;
  font-weight: 400;
  margin-bottom: 25px;
  color: #f3f3f3;
}

.hero button {
  margin-top: 0;
  padding: 14px 28px;
  background: #c49b63;
  border: none;
  border-radius: 8px;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 155, 99, 0.4);
  align-self: flex-start;
}

.hero button:hover {
  background: #a67c52;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(196, 155, 99, 0.6);
}


/* ===== Especialidades estilo Apple TV Centradas y Grandes ===== */
.productos {
  padding: 100px 20px;
  background: #121212;
  text-align: center;
}

.productos h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 40px;
}

.grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  max-width: 1350px;
  margin: 0 auto;
  padding: 40px 20px 40px 20px; 
  justify-content: center;
}

.grid::-webkit-scrollbar {
  height: 6px;
}
.grid::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
}
.grid::-webkit-scrollbar-thumb {
  background: #c49b63;
  border-radius: 4px;
}

.card {
  flex: 0 0 300px;
  scroll-snap-align: start;
  text-align: left;
  background: #1e1e1e;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  will-change: transform; 
}

.card:hover {
  transform: scale(1.06) translateY(-8px);
  box-shadow: 0 25px 50px rgba(0,0,0,0.85);
  border-color: rgba(196, 155, 99, 0.6);
  z-index: 50;
}

.card img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
}

.card h3, .card p {
  padding: 0 18px;
}

.card h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.15rem;
  font-weight: 600;
  color: #ffffff;
  margin: 18px 0 6px;
}

.card p {
  font-size: 0.95rem;
  color: #aaaaaa;
  margin: 0 0 18px 0;
  line-height: 1.4;
}

/* ===== Sobre nosotros ===== */
.about {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/about-restaurante.jpg') no-repeat center center/cover;
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  text-align: center;
  text-shadow: 2px 2px 4px #000;
  background-attachment: fixed; /* efecto parallax */
}

.about-content {
  background: rgba(0,0,0,0.35);
  padding: 20px 40px;
  border-radius: 8px;
  max-width: 650px;
}

/* ===== Galería (carrusel auto-scroll) ===== */

.galeria-cafe h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #2c221e;
}

.galeria-cafe {
  padding: 80px 80px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

.carousel {
  display: flex;
  width: max-content;
  animation: scroll 30s linear infinite;
}

.slide {
  min-width: 250px;
  margin: 0 10px;
}

.slide img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== Sección de Horarios y Ubicación Pro (Estilo Boutique) ===== */

.horarios-ubicacion {
  padding: 80px 20px;
  background: #ffffff;
}

.horarios-ubicacion h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 40px;
  color: #2c221e;
}

.info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.horarios {
  flex: 1 1 400px;
  background: #fdfbf7;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(196, 155, 99, 0.2);
  text-align: left;
  font-size: 1.1rem;
  color: #444;
  box-sizing: border-box;
}

.horarios p {
  margin: 12px 0 24px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.horarios i {
  font-size: 1.4rem;
  color: #c49b63;
  width: 28px;
  text-align: center;
}

.map-container {
  flex: 1 1 400px;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(196, 155, 99, 0.2);
  box-sizing: border-box;
  display: flex;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 350px;
  border: 0;
  display: block;
}

/* ===== Tira de imágenes profesional full-width ===== */
.coffee-strip {
  display: flex;
  flex-wrap: nowrap;
  width: 100%;
  overflow: hidden;
  gap: 0;
}

.coffee-item {
  position: relative;
  flex: 1 1 0;
  height: 350px;
  overflow: hidden;
}

.coffee-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.coffee-item:hover .overlay {
  opacity: 1;
}

.overlay a {
  color: #fff;
  font-size: 2rem;
  transition: transform 0.3s ease;
}

.overlay a:hover {
  color: #c49b63;
  transform: scale(1.2);
}

/* ===== Sección de contacto Pro (Estilo Boutique) ===== */

.contact-section {
  padding: 80px 20px;
  background: #fdfbf7;
  color: #333;
}

.contact-section h2 {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #2c221e;
}

.contact-section > p {
  text-align: center;
  margin-bottom: 50px;
  color: #666;
  font-size: 1.1rem;
}

.contact-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form, .contact-info {
  flex: 1 1 400px;
  max-width: 500px;
  background: #ffffff;
  padding: 40px;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(196, 155, 99, 0.2);
}

.contact-form label {
  display: block;
  margin: 15px 0 8px;
  font-weight: 600;
  font-size: 0.95rem;
  color: #444;
}

.contact-form input, 
.contact-form textarea {
  width: 100%;
  padding: 14px;
  border: 1.5px solid #e1dcd6;
  border-radius: 8px;
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background: #faf9f6;
  transition: all 0.3s ease;
  outline: none;
}

.contact-form input:focus, 
.contact-form textarea:focus {
  border-color: #c49b63;
  background: #ffffff;
  box-shadow: 0 0 0 4px rgba(196, 155, 99, 0.15);
}

.contact-form button {
  width: 100%;
  margin-top: 25px;
  padding: 14px 20px;
  background: #c49b63;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.contact-form button:hover {
  background: #a67c52;
  transform: translateY(-2px);
}

.contact-info h3 {
  margin-bottom: 20px;
  color: #2c221e;
  font-size: 1.5rem;
  font-weight: 600;
}

.contact-info p {
  margin: 15px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #555;
  font-size: 1.05rem;
}

.contact-info p i {
  color: #c49b63;
  font-size: 1.2rem;
  width: 24px;
  text-align: center;
}


/* ===== Footer ===== */
footer {
  background: #333;
  color: white;
  text-align: center;
  padding: 20px;
}

.social-icons {
  margin-top: 10px;
}

.social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 1.5rem;
  text-decoration: none;
}

.social-icons a:hover {
  color: #c49b63;
}

/* ==========================================================================
   CORRECCIONES DE LAYOUT Y COMPONENTES
   ========================================================================== */

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 1.6rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.menu-toggle:hover {
  color: #c49b63;
}

/* ==========================================================================
   BREAKPOINTS RESPONSIVOS (MEDIA QUERIES)
   ========================================================================== */

/* --- Tablets y Laptops Pequeñas (<= 992px) --- */
@media screen and (max-width: 992px) {
  .navbar {
    padding: 15px 25px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(30, 24, 21, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    padding: 30px 0;
    gap: 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.4);
    border-bottom: 1px solid rgba(196, 155, 99, 0.2);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: all 0.3s ease-in-out;
  }

  .nav-links.active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .hero {
    padding-left: 40px;
    padding-right: 40px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }
}

/* --- Smartphones y Móviles (<= 768px) --- */
@media screen and (max-width: 768px) {
  .hero {
    padding-left: 20px;
    padding-right: 20px;
    align-items: center;
    text-align: center;
  }

  .hero h1 {
    font-size: 2.2rem;
    text-align: center;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero button {
    align-self: center;
  }

  .grid {
    justify-content: flex-start;
    padding: 20px 10px;
  }

  .card {
    flex: 0 0 260px;
  }

  .card img {
    height: 300px;
  }

  .about {
    height: auto;
    padding: 80px 20px;
    background-attachment: scroll;
  }

  .galeria-cafe {
    padding: 50px 15px;
  }

  .slide img {
    height: 200px;
  }

  .info {
    flex-direction: column;
  }

  .horarios, .map-container {
    flex: 1 1 100%;
    width: 100%;
  }

  .contact-container {
    flex-direction: column;
  }

  .contact-form, .contact-info {
    flex: 1 1 100%;
    max-width: 100%;
    padding: 25px;
  }

  .coffee-strip {
    flex-wrap: wrap;
  }

  .coffee-item {
    flex: 1 0 50%;
    height: 180px;
  }
}

/* --- Móviles Pequeños (<= 480px) --- */
@media screen and (max-width: 480px) {
  .coffee-item {
    flex: 1 0 100%;
    height: 220px;
  }
}
