/* Fuente general y reinicio */
body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #121212;
  color: #f4f4f4;
  line-height: 1.6;
}

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

/* Encabezado */
header {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #e63946;
  background-image: url(img/portada.jpg);
  background-size: cover;
  background-position: center;
  text-shadow: 
  1px 1px 2px #000,
  -1px -1px 2px #000,
  2px 2px 6px rgba(0, 0, 0, 0.9);
}

header h1 {
  font-size: 5rem;
  color: #fca311;
  font-family:'Times New Roman', Times, serif;
  margin-bottom: 0;
}

header p {
  color: #e0e0e0;
  font-style: italic;
  font-size: 1.5rem;
}

.header .tagline {
  margin-top: 0;
}

/* Secciones */
section {
  padding: 3rem 2rem;
  max-width: 1200px;
  margin: auto;
}

h2 {
  font-size: 2rem;
  color: #fca311;
  margin-bottom: 1rem;
  text-align: center;
}

z {
  font-size: 1.5rem;
  color: #fcec11;
  text-align: right;
}

/* Historia */
.historia p {
  max-width: 800px;
  margin: auto;
  font-size: 1.1rem;
  color: #ccc;
  text-align: justify;
}

/* Menú */
.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.pizza-card {
  background-color: #1e1e1e;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.4);
  overflow: hidden;
  transition: transform 0.3s ease;
}

.pizza-card:hover {
  transform: scale(1.03);
}

.pizza-card img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.pizza-card h3 {
  margin: 1rem;
  color: #f4a261;
  font-size: 1.4rem;
}

.pizza-card p {
  margin: 0 1rem 1rem;
  color: #eaeaea;
  font-size: 1rem;
}

.pizza-card .precio {
  font-weight: bold;
  color: #ffba08;
  margin: 0 1rem 1rem;
}

/* Animaciones reveal */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}

.reveal.reveal-active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
footer {
  background-color: #1c1c1c;
  color: #888;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }
}

.contacto {
  text-align: center;
  padding: 40px 20px;
}

.contacto h2 {
  font-size: 2rem;
  margin-bottom: 15px;
}

.opciones-contacto {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  margin-top: 20px;
}

.opcion {
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  width: 280px;
  border: 3px solid orange;
}

.opcion h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.btn-whatsapp, .btn-pedidosya {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

.btn-whatsapp {
  background-color: #25D366;
}

.btn-whatsapp:hover {
  background-color: #1ebe5b;
}

.btn-pedidosya {
  background-color: #e60023;
}

.btn-pedidosya:hover {
  background-color: #c5001e;
}

nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 10px;
}

nav a {
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  background-color: #ff4500;
  border-radius: 5px;
  transition: background-color 0.3s ease;
  white-space: nowrap;
}

nav a:hover {
  background-color: #ff6347;
}

/* Media query para pantallas chicas */
@media (max-width: 600px) {
  nav {
    flex-direction: column;
    align-items: center;
  }

  nav a {
    width: 90%;
    text-align: center;
    margin: 5px 0;
  }
}

/* Estilos del botón flotante de WhatsApp */
.whatsapp-button {
  position: fixed;
  bottom: 2%;
  right: 2%;
  width: 15%; /* Ancho cuadrado */
  height: 15%; /* Altura cuadrada */
  background-image: url(img/whatsappboton.png); /* Ruta de tu imagen */
  background-size: cover; /* Para que la imagen se ajuste al botón */
  text-indent: -9999px; /* Oculta el texto del botón */
  cursor: pointer;
  background-position: center; /* Posición centrada de la imagen */
}

select {
  background-color: #ffe6cc; /* color de fondo del selector */
  color: #000; /* color del texto */
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
}

/* En algunos navegadores como Firefox también podés aplicar estilo a las opciones */
select option {
  background-color: #fffbe6; /* color de fondo de cada opción */
  color: #000;
}