:root {
    --gold: #c5a059;
    --dark: #121212;
    --light: #f8f8f8;
}

* { margin:0; padding:0; box-sizing: border-box; }
body { font-family: 'Montserrat', sans-serif; color: #333; line-height: 1.6; }

/* Navegación */
.navbar { display: flex; justify-content: space-between; align-items: center; padding: 20px 5%; background: white; position: sticky; top:0; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.logo { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--gold); font-weight: bold; }
.nav-links { display: flex; list-style: none; }
.nav-links li a { text-decoration: none; color: #333; margin-left: 20px; font-weight: 600; font-size: 0.9rem; }

/* Hero */
.hero { height: 60vh; background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('fondo-fina.jpg'); background-size: cover; background-position: center; display: flex; align-items: center; justify-content: center; color: white; text-align: center; }
.hero h1 { font-family: 'Playfair Display', serif; font-size: 3.5rem; margin-bottom: 10px; }

/* Secciones */
.section { padding: 80px 5%; max-width: 1200px; margin: auto; }
.bg-light { background: var(--light); width: 100%; max-width: 100%; }
.bg-dark { background: var(--dark); color: white; width: 100%; max-width: 100%; }
h2 { text-align: center; font-family: 'Playfair Display', serif; font-size: 2.5rem; margin-bottom: 40px; color: var(--gold); }
.text-center { text-align: center; max-width: 800px; margin: auto; }

/* Galería */
/* Estilo de la cuadrícula */
.galeria {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  padding: 20px;
}

.galeria img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 8px;
  transition: 0.3s;
}

.galeria img:hover {
  opacity: 0.7;
}

/* Estilo del Modal (Fondo oscuro) */
.modal {
    z-index: 9999 !important; /* Esto lo pone por encima de TODO */
    background-color: rgba(0,0,0,0.8);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none;
    align-items: center;
    justify-content: center;
}

/* La imagen dentro del modal */
.modal-contenido {
  max-width: 80%;
  max-height: 80%;
  border-radius: 5px;
  box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

/* Botón de cerrar */
.cerrar {
  position: absolute;
  top: 20px;
  right: 35px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
/* Carta Alineada */
.order-container { display: grid; grid-template-columns: 2fr 1fr; gap: 40px; }
.menu-category h3 { background: var(--dark); color: var(--gold); padding: 10px 15px; margin: 30px 0 15px; border-radius: 4px; font-size: 1.1rem; }
.product { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #eee; }
.product span { flex: 1; font-weight: 500; }
.product b { margin: 0 20px; color: #666; width: 80px; text-align: right; }
.add-btn { background: var(--gold); color: white; border: none; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-weight: bold; }

/* Carrito Flotante */
input[type="time"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: inherit;
    background-color: #fff;
}

label {
    font-weight: 600;
    margin-top: 5px;
}
.cart-sidebar { position: sticky; top: 100px; height: fit-content; }
.cart-box { background: white; padding: 25px; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); }
#cart-items { list-style: none; margin-bottom: 15px; max-height: 250px; overflow-y: auto; }
.cart-total { font-size: 1.4rem; font-weight: bold; margin: 15px 0; border-top: 2px solid var(--gold); padding-top: 10px; }
input, textarea { width: 100%; padding: 12px; margin-bottom: 10px; border: 1px solid #ddd; border-radius: 5px; font-family: inherit; }
.btn-submit { background: var(--dark); color: white; width: 100%; padding: 15px; border: none; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-submit:hover { background: var(--gold); }

/* Reservas y Contacto */
.form-reserva { max-width: 600px; margin: auto; display: flex; flex-direction: column; gap: 10px; }
.form-row { display: flex; gap: 10px; }
.btn { display: inline-block; background: var(--gold); color: white; padding: 12px 30px; border: none; border-radius: 5px; cursor: pointer; text-decoration: none; font-weight: bold; margin-top: 20px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contenedor-whatsapp {
    display: flex;
    gap: 15px;
    justify-content: center;
    padding: 20px;
    font-family: Arial, sans-serif;
}

.btn-whatsapp {
    text-decoration: none;
    color: white;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: bold;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
}

.btn-whatsapp:hover {
    transform: scale(1.05);
}

/* Color verde oficial de WhatsApp */
.reserva {
    background-color: #25D366;
}

/* Color azul o naranja para diferenciar el de recogida */
.recogida {
    background-color: #128C7E; /* Un tono más oscuro o elige el que prefieras */
}

.btn-whatsapp i {
    margin-right: 10px;
    font-size: 1.2rem;
}
footer { text-align: center; padding: 40px; background: #eee; font-size: 0.9rem; }

@media (max-width: 850px) {
    .order-container, .contact-grid { grid-template-columns: 1fr; }
    .nav-links { display: none; }
    .hero h1 { font-size: 2.2rem; }
}#btnBackToTop {
    display: none; 
    position: fixed !important;
    bottom: 40px !important;
    right: 40px !important;
    z-index: 9999 !important; /* Valor muy alto para que esté encima de todo */
    background: none !important;
    border: none !important;
    color: #000000 !important; 
    font-size: 50px !important; 
    cursor: pointer !important;
    transition: 0.3s;
}

#btnBackToTop:hover {
    color: #d35400 !important;
    transform: scale(1.2);
}
/* Estilos específicos para la encuesta */
.seccion-encuesta {
    padding: 40px 20px;
    display: flex;
    justify-content: center;
}

.encuesta-card {
    background-color: #1a1a1a;
    color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #d4af37;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

.encuesta-titulo {
    color: #d4af37;
    font-family: 'Georgia', serif;
    margin-bottom: 25px;
}

.encuesta-opciones {
    text-align: left;
    margin-bottom: 20px;
}

.opcion-radio {
    display: block;
    position: relative;
    padding: 12px 12px 12px 40px;
    margin-bottom: 10px;
    cursor: pointer;
    background: #252525;
    border-radius: 6px;
    transition: 0.3s;
}

.opcion-radio:hover {
    background: #333;
}

.opcion-radio input {
    position: absolute;
    opacity: 0;
}

.custom-check {
    position: absolute;
    top: 12px;
    left: 12px;
    height: 18px;
    width: 18px;
    background-color: #444;
    border-radius: 50%;
    border: 1px solid #d4af37;
}

.opcion-radio input:checked ~ .custom-check {
    background-color: #d4af37;
}

.btn-enviar {
    background-color: #d4af37;
    color: #1a1a1a;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    width: 100%;
    text-transform: uppercase;
}

.btn-enviar:hover {
    background-color: #f2c94c;
}