:root {
  --color-principal: #e63946;
  --color-secundario: #1d3557;
  --color-fondo: #f1faee;
  --color-texto: #333;
}

/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  background: var(--color-fondo);
  color: var(--color-texto);
}

/* NAVBAR */
/* NAVBAR */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 1rem 2rem;

  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);

  color: white;
  transition: background 0.3s, box-shadow 0.3s;
}

.navbar.scrolled {
  background: var(--color-secundario);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.logo {
  font-size: 1.3rem;
}

.navbar nav a {
  color: white;
  text-decoration: none;
  margin-left: 1rem;
  transition: color 0.3s;
}

.navbar nav a:hover {
  color: var(--color-principal);
}

/* ========================= */
/* HERO (PANTALLA COMPLETA) */
/* ========================= */
.hero {
  height: 100vh;
  width: 100%;

  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("./images/espacio.jpeg") center / cover no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  color: white;
  padding: 2rem;

  /* 🔥 CLAVE: anulamos el estilo de section */
  max-width: none;
  margin: 0;
}

.hero-content {
  max-width: 800px;
}

.titulo-amarillo {
  color: yellow;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero button {
  padding: 0.8rem 1.8rem;
  background: white;
  color: var(--color-principal);
  border: none;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s, background 0.3s;
}

.hero button:hover {
  background: #ffd6d6;
  transform: scale(1.05);
}

/* ========================= */
/* SECCIONES NORMALES */
/* ========================= */
section:not(.hero):not(.fullscreen) {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: auto;
}

h2 {
  color: var(--color-secundario);
  margin-bottom: 1.5rem;
}

/* CARDS */
.card {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* GALERÍA */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.galeria-grid img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s;
}

.galeria-grid img:hover {
  transform: scale(1.05);
}

/* FOOTER */
footer {
  text-align: center;
  padding: 1.5rem;
  background: var(--color-secundario);
  color: white;
}

/* ANIMACIONES */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 1s forwards;
}

.delay-1 {
  animation-delay: 0.3s;
}

.delay-2 {
  animation-delay: 0.6s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input, textarea {
  width: 100%;
  padding: 0.7rem;
  margin: 0.5rem 0 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: inherit;
}

form button {
  background: var(--color-principal);
  color: white;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
}

.fullscreen {
  height: 100vh;
  width: 100%;

  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;

  color: white;
  position: relative;

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.fullscreen::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.overlay-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.overlay-content h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  color: yellow;
}

.overlay-content p {
  font-size: 1.3rem;
}

.bg-espacio {
  background-image: url("./images/espacio.jpeg");
}

.bg-huevorelleno {
  background-image: url("./images/huevorelleno.jpeg");
}

.bg-embutidos {
  background-image: url("./images/embutidos.jpeg");
}

.bg-ensaladatempladaD {
  background-image: url("./images/ensaladatempladaD.jpeg");
}

.bg-ensaladatempladaC {
  background-image: url("./images/ensaladatempladaC.jpeg");
}

.bg-migas {
  background-image: url("./images/migas.jpeg");
}

.bg-jamon {
  background-image: url("./images/jamon.jpeg");
}

.bg-paella {
  background-image: url("./images/paella.jpeg");
}
