/* === Variables CSS === */
:root {
  --color-primary: #d84315;
  --color-secondary: #ffccbc;
  --color-bg: #fff8f5;
  --color-text: #333;
  --font-main: 'Segoe UI', sans-serif;
  --font-size-base: 1rem;
  --font-size-lg: 1.5rem;
}

/* === Global === */
body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  padding-top: 80px; /* espacio para header fijo */
}
h1, h2, h3 {
  color: var(--color-primary);
}
a {
  color: var(--color-primary);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 0.5em 1em;
  cursor: pointer;
  border-radius: 4px;
}
button:hover {
  background-color: #bf360c;
}

/* === Utilidades === */
.u-text-center {
  text-align: center;
}
.u-mb-2 {
  margin-bottom: 1rem;
}
.u-mt-2 {
  margin-top: 1rem;
}
.u-p-2 {
  padding: 1rem;
}

/* === Layout === */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: var(--color-primary);
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  z-index: 1000;
  text-align: center;
}
.header_logo {
  font-size: var(--font-size-lg);
  font-weight: bold;
  text-align: center;
}
.header_nav a {
  margin-left: 1rem;
  color: white;
}

.main {
  padding: 2rem;
}
.menu-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

/* === BEM: Componente de plato === */
.menu-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow: hidden;
  text-align: center;
}
.menu-card_img {
  max-width: 100%;
  width: 800px;
  max-height: 500px;
  object-fit: cover;
  
}

.menu-card_content {
  padding: 1rem;
  text-align: center;
}
.menu-card_title {
  font-size: var(--font-size-lg);
  margin-bottom: 0.5rem;
}
.menu-card_desc {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.menu-card_price {
  font-weight: bold;
  color: var(--color-primary);
}

/* === Footer === */
.footer {
  background: var(--color-secondary);
  padding: 2rem;
  text-align: center;
  font-size: 0.9rem;
}

.header_nav {
    position: sticky;
    bottom: 0;
    width: 100%;
    background: var(--color-primary);
    min-height: 40px;
    display: flex;
    padding: 10px;
    justify-content: center;
    gap: 80px; /* Crea un espacio de 10px entre los elementos */    
}

nav a {
    color: var(--color-bg)
}

.centrar {
    display: flex;
    justify-content: center;
}