@font-face {
  font-family:'URW';
  src:url('URWGothic-Book.woff2') format('woff2'), url('URWGothic-Book.woff') format('woff'), url('URWGothic-Book.ttf') format('truetype');
  font-weight:normal;
  font-style:normal;
  font-display:swap;
}

@font-face {
  font-family:'URW';
  src:url('URWGothic-Book.woff2') format('woff2'), url('URWGothic-Book.woff') format('woff'), url('URWGothic-Book.ttf') format('truetype');
  font-weight:bold;
  font-style:normal;
  font-display:swap;
}

/* ============================================
   RESET Y BASE
   ============================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'URW', Arial, Helvetica, sans-serif;
}

html {
  scroll-behavior: smooth;
}

/* ============================================
   SCROLL MARGIN PARA ANCLAS
   ============================================ */

#inicio, #quien, #que, #cto, #res {
  scroll-margin-top: 240px;
}

@media (max-width: 768px) {
  #inicio, #quien, #que, #cto, #res {
    scroll-margin-top: 240px;
  }
}

/* ============================================
   MAIN - MÁRGENES SUPERIORES
   ============================================ */

.main-index {
  margin-top: 14em;
}

.main-carta {
  margin-top: 14em;
}

.main-bebidas {
  margin-top: 14em;
}

@media (max-width: 768px) {
  .main-index {
    margin-top: 6em;
  }
  
  .main-carta {
    margin-top: 6em;
  }
  
  .main-bebidas {
    margin-top: 6em;
  }
}

.hidden {
  display: none;
}

/* ============================================
   HEADER
   ============================================ */

.header {
  font-family: 'URW', Arial, Helvetica, sans-serif;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 100;
  transition: all 0.3s ease;
  background: #FFFFFF;
  box-sizing: border-box;
}

/* Fondo desenfocado cuando hay scroll */
.header.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Logo wrapper para centrar inicialmente */
.logo-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 30px;
  transition: all 0.3s ease;
  z-index: 1001;
}

/* Logo */
.logo {
  width: 100%;
  height: auto;
  transition: all 0.3s ease;
}

/* Navegación - inicialmente invisible */
.nav {
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: flex-end;
  width: 100%;
  font-weight: bold;
  z-index: 1002;
}

.nav a {
  display: inline-block;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background-color 0.3s;
  white-space: nowrap;
  z-index: 1002;
}

.nav a:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Estilos cuando hay scroll */
.header.scrolled .logo-wrapper {
  left: 20px;
  transform: translateX(0);
}

.header.scrolled .logo {
  transform: scale(0.3);
  transform-origin: left center;
}

.header.scrolled .nav {
  opacity: 1;
  visibility: visible;
}

/* Menú hamburguesa para móviles */
.menu-toggle {
  display: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 1002;
  font-family: URW;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .header {
    padding: 1px;
  }

  .logo {
    width: 200px;
    height: auto;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    right: 20px;
    top: 20px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right 0.3s ease;
    opacity: 1;
    visibility: visible;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav.active {
    right: 0;
  }

  .nav a {
    font-size: 18px;
    padding: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  }

  .header.scrolled .logo-wrapper {
    left: 10px;
  }

  .header.scrolled .logo {
    width: 260px;
  }
}

/* ============================================
   CONTENEDORES UNIFICADOS
   ============================================ */

/* Contenedor para index.html */
.index-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Contenedor para carta.html */
.carta-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* Contenedor para bebidas.html */
.bebidas-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  width: 100%;
}

/* ============================================
   SEPARADORES
   ============================================ */

.separador {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 2em 0 2em 0;
  width: 100%;
}

.separador-grupo {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 3em 0 3em 0;
  width: 100%;
}

.separador-carta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 10px 0;
  width: 100%;
}

.separador-linea {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, 
      transparent 0%, 
      #333 20%, 
      #333 80%, 
      transparent 100%
  );
}

.separador-linea-grupo {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, 
      transparent 0%, 
      #333 20%, 
      #333 80%, 
      transparent 100%
  );
}

.separador-texto {
  font-size: 12px;
  padding: 0 10%;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #333;
  white-space: nowrap;
  animation: respirar 3s ease-in-out infinite;
  text-align: center;
}

.separador-texto-grupo {
  font-size: 19px;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: #333;
  white-space: nowrap;
}

@keyframes respirar {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* Para móvil */
@media (max-width: 768px) {
  .separador {
    width: 180px;
    margin: 2em 0 2em 0;
    gap: 10px;
  }
  
  .separador-carta {
    margin: 5px 0;
    gap: 10px;
  }
  
  .separador-texto {
    font-size: 10px;
    letter-spacing: 3px;
  }
}

/* ============================================
   BOTÓN CARTA
   ============================================ */

.btn-carta {
  display: inline-block;
  padding: 16px 45px;
  font-family: 'URW', Arial, sans-serif;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: #ffffff;
  background-color: #333333;
  border: 2px solid #333333;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 1em 0 1em 0;
}

.btn-carta:hover {
  color: #333333;
  background-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.15);
  letter-spacing: 3px;
}

.btn-carta:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .btn-carta {
    padding: 14px 35px;
    font-size: 16px;
    letter-spacing: 2px;
  }
}

@media (max-width: 480px) {
  .btn-carta {
    padding: 12px 30px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   LINK DIRECCIÓN
   ============================================ */

.direccion-link {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s;
}

.direccion-link:hover {
  transform: translateX(5px);
}

.direccion {
  padding: 15px 20px;
  background: #f8f8f8;
  border-radius: 8px;
  border-left: 4px solid #333;
  margin: 10px 0;
  font-size: 16px;
  transition: background 0.3s;
}

.direccion-link:hover .direccion {
  background: #e8e8e8;
}

/* ============================================
   CALENDARIO
   ============================================ */

#info-horario {
  transition: all 0.3s ease;
  font-size: 14px;
}

select:disabled {
  background-color: #f5f5f5;
  cursor: not-allowed;
  opacity: 0.6;
}

option:disabled {
  color: #999;
  font-style: italic;
}

.mensaje-error, .mensaje-success {
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MAIN - ELEMENTOS COMUNES
   ============================================ */

.h2-article {
  font-size: 1.8rem;
  color: #000000;
  border-bottom: 2px solid #333333;
  padding-bottom: 0.5rem;
  width: 90%;
  margin: 0rem auto 1rem auto;
}

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

.inter {
  max-width: 800px;
  height: auto;
  display: block;
  margin: 20px auto 30px;
  box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .inter {
    max-width: 90%;
    height: auto;
    display: block;
    margin: 20px auto 30px;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.5);
  }
}

.txt-article {
  text-align: justify;
  padding: 0 20px 0 20px;
  line-height: 1.5em;
  font-size: 17px;
  margin: 1em 0 1em 0;
}

/* ============================================
   FORMULARIO RESERVAS
   ============================================ */

.formulario-reservas {
  max-width: 600px;
  margin: 40px auto;
  padding: 30px;
  background-color: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border: 1px solid #eaeaea;
}

.formulario-reservas h2 {
  font-size: 28px;
  color: #333;
  margin-bottom: 10px;
  text-align: center;
  font-weight: 600;
}

.formulario-reservas p {
  text-align: center;
  color: #666;
  margin-bottom: 30px;
  font-size: 16px;
}

.formulario {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.campo-formulario {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.campo-formulario label {
  font-size: 14px;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.5px;
}

.campo-formulario input,
.campo-formulario select {
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: all 0.3s ease;
  background-color: white;
}

.campo-formulario input:focus,
.campo-formulario select:focus {
  outline: none;
  border-color: #333;
  box-shadow: 0 0 0 3px rgba(51, 51, 51, 0.1);
}

.campo-formulario input:hover,
.campo-formulario select:hover {
  border-color: #999;
}

input[type="date"] {
  color: #333;
  cursor: pointer;
}

select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 15px;
}

.btn-reservar {
  background-color: #333;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 18px;
  font-weight: 500;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-reservar:hover {
  background-color: #000;
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.btn-reservar:active {
  transform: translateY(0);
}

@media (max-width: 768px) {
  .formulario-reservas {
    margin: 20px 0px;
    padding: 20px;
  }
  
  .formulario-reservas h2 {
    font-size: 24px;
  }
  
  .campo-formulario input,
  .campo-formulario select {
    padding: 10px 12px;
    font-size: 14px;
  }
  
  .btn-reservar {
    padding: 12px 25px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .formulario-reservas {
    padding: 15px;
  }
  
  .formulario-reservas h2 {
    font-size: 22px;
  }
  
  .campo-formulario label {
    font-size: 13px;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  font-family: URW;
  background-color: #000;
  color: #fff;
  padding: 40px 20px;
  margin-top: 60px;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.footer-texto {
  line-height: 1.8;
  font-size: 16px;
}

.footer-texto p {
  margin: 5px 0;
}

.footer-imagenes {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: wrap;
}

.footer-img {
  width: auto;
  height: 50px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.footer-img:hover {
  opacity: 0.8;
}

@media (max-width: 768px) {
  .footer {
    padding: 30px 15px;
  }
  
  .footer-texto {
    font-size: 14px;
    text-align: center;
  }
  
  .footer-imagenes {
    justify-content: center;
    gap: 15px;
  }
  
  .footer-img {
    height: 40px;
  }
}

/* ============================================
   ESTILOS PARA LA CARTA (PLATOS)
   ============================================ */

#nuestracarta {
  font-size: 1.5rem;
  font-weight: bold;
  text-shadow: 1px 1px 2px #666666;
  letter-spacing: 3px;
  padding-left: 5px;
}

.carta-header {
  text-align: center;
  margin-bottom: 3rem;
}

.carta-header h1 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 2.5rem;
  color: #b45f2b;
}

.header-icono {
  width: 48px;
  height: 48px;
}

.grupo {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

.grupo-titulo {
  font-size: 1.8rem;
  color: #b45f2b;
  border-bottom: 2px solid #333333;
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
}

.platos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.plato-card {
  background: white;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.plato-imagen {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 70%, transparent 100%);
}

.plato-contenido {
  padding: 1rem;
}

.plato-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.plato-nombre {
  font-weight: bold;
  font-size: 1.1rem;
}

.plato-precios {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  text-align: right;
}

.plato-precio {
  color: #b45f2b;
  font-weight: bold;
  font-size: 1.1rem;
  white-space: nowrap;
}

.plato-precio-media {
  color: #888;
  font-size: 0.8rem;
  white-space: nowrap;
}

@media (min-width: 769px) {
  .plato-precios {
    flex-direction: row;
    gap: 0.75rem;
    align-items: baseline;
  }
  
  .plato-precio-media {
    font-size: 0.85rem;
  }
}

.plato-descripcion {
  font-size: 0.9rem;
  color: #666;
  margin: 0.5rem 0;
}

.plato-alergenos {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.alergeno {
  display: inline-flex;
}

.alergeno-icono {
  width: 20px;
  height: 20px;
}

/* ============================================
   REDES SOCIALES
   ============================================ */

.social {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.8;
}

.social-icono {
  width: 40px;
  height: 40px;
  display: block;
}

@media (max-width: 768px) {
  .social {
    gap: 1rem;
  }
  
  .social-icono {
    width: 32px;
    height: 32px;
  }
}

/* ============================================
   ESTILOS PARA BEBIDAS
   ============================================ */

.bebidas-lista {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem auto;
  max-width: 700px;
}

.bebida-item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.75rem 1rem;
  border-bottom: 1px dotted #ddd;
}

.bebida-nombre {
  font-size: 1rem;
  color: #333;
}

.bebida-precio {
  font-size: 1rem;
  color: #b45f2b;
  font-weight: bold;
}

.grupo-bebidas {
  margin-bottom: 3rem;
  scroll-margin-top: 100px;
}

/* ============================================
   RESPONSIVE GENERAL
   ============================================ */

@media (max-width: 768px) {
  .index-container,
  .carta-container,
  .bebidas-container {
    padding: 1rem;
    margin: 0 auto;
  }
  
  .bebidas-lista {
    max-width: 100%;
    padding: 0 0.5rem;
  }
  
  .bebida-item {
    padding: 0.6rem 0;
  }
  
  .bebida-nombre {
    font-size: 0.9rem;
  }
  
  .bebida-precio {
    font-size: 0.9rem;
  }
  
  .header-icono {
    width: 36px;
    height: 36px;
  }
}
