/* ---- ESTILOS COMUNES ---- */

/* Definición de colores principales */
:root {
  --rojo: #d62828;
  --naranja: #f77f00;
  --crema: #fff8ec;
  --negro: #1a1a1a;
}

/* Estilos base para el cuerpo del documento */
body {
  font-family: Inter, system-ui, Segoe UI, Roboto, Arial, sans-serif;
  background: var(--crema);
  color: var(--negro);
  -webkit-font-smoothing: antialiased; /* Mejora el renderizado de fuentes */
  margin: 0;
}

/* Cabecera fija y con sombra */
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

/* Contenedor del logo y el nombre */
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img {
  /*width: 500px;*/
  height: 60px;
  object-fit: contain;
  border-radius: 10px;
}

.brand h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--rojo);
}
/* ---------- HEADER: PC ---------- */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 30px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  position: relative;
  z-index: 100;
}

.site-header .brand img {
  height: 56px;
  max-width: 100%;
}

.main-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.main-nav a {
  text-decoration: none;
  font-size: 18px;
  padding: 6px 8px;
  
  color: var(--negro);
  font-weight: 500;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: var(--rojo);
}

/* Botón hamburguesa oculto en desktop */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- HEADER: MÓVIL ---------- */
@media (max-width: 768px) {
  .site-header {
    padding: 10px 16px;
  }

  /* mostrar botón */
  .menu-toggle {
    display: block;
  }

  /* ocultar menú por defecto */
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    background: #fff;
    position: absolute;
    left: 0;
    top: 100%;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-top: 1px solid rgba(0,0,0,0.04);
    transform-origin: top;
    transition: transform 180ms ease, opacity 180ms ease;
    opacity: 0;
    transform: scaleY(0.95);
  }

  .main-nav a {
    display: block;
    padding: 12px 16px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
  }

  /* menú activo */
  .main-nav.active {
    display: flex;
    opacity: 1;
    transform: scaleY(1);
  }
}

/* Pie de página */
footer {
  background-color: var(--rojo);
  color: white;
  text-align: center;
  padding: 20px 10px;

}
footer a {
  color: var(--naranja); /* Se unifica el color del enlace a naranja */
  text-decoration: none;
}



