/* =========================
  BASE
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html, body{
  width:100%;
  max-width:100%;
}

body{
  font-family:'Poppins', sans-serif;
  line-height:1.6;
  color:#333;
  background-color:#fffaf5;
}

img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 auto;
}

/* =========================
   HEADER
========================= */
header{
  background-color:#d32f2f;
  color:white;
  text-align:center;
  padding:1.5rem;
  position:relative;
  z-index:1;
}

.logo-container{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  gap:15px;
  padding-left:2rem;
}

.logo{
  width:80px;
  height:80px;
  object-fit:contain;
}

.titulo-header{
  text-align:left;
}

.titulo-header h1{
  font-size:2rem;
  color:white;
  margin:0;
}

.titulo-header p{
  font-size:1.1rem;
  color:#ffe082;
  margin:0;
}

/* =========================
   NAV
========================= */
nav{
  background:#b71c1c;
  position: sticky;
  top: 0;
  z-index: 9999;
}

nav ul{
  list-style:none;
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:.5rem;
  padding:.6rem;
  margin:0;
}

nav ul li{ margin:0; }

nav a{
  color:#fff;
  text-decoration:none;
  font-weight:bold;
  padding:.45rem .85rem;
  border-radius:6px;
  display:block;
}

nav a:hover, nav a.activo{
  background:#d32f2f;
  color:#ffe082;
}

/* En móvil: Más compacto (sin hacerlo columna) */
@media (max-width:768px){
  nav ul{
    display:grid;
    grid-template-columns:repeat(2, 1fr);
    gap:.6rem;
    padding:.8rem 1rem;
  }

  nav a{
    text-align:center;
    border-radius:999px;
    padding:.55rem .7rem;
    background:rgba(255,255,255,.10);
  }

  nav a:hover,
  nav a.activo{
    background:#d32f2f;
    color:#ffe082;
  }
}


/* =========================
   BOTONES (global)
========================= */
.boton, .btn{
  display:inline-block;
  background-color:#d32f2f;
  color:white;
  padding:0.5rem 1rem;
  margin-top:0.5rem;
  text-decoration:none;
  border-radius:5px;
  transition:0.3s;
}

.boton:hover, .btn:hover{
  background-color:#9a0007;
}

/* =========================
   FOOTER
========================= */
footer{
  background-color:#b71c1c;
  color:white;
  text-align:center;
  padding:1rem;
  margin-top:2rem;
}

footer a{
  color:#ffe082;
  text-decoration:none;
  margin:0 4px;
}

footer a:hover{
  text-decoration:underline;
}

/* =========================
   RESPONSIVE (global)
========================= */
@media (max-width:768px){
  .logo-container{
    flex-direction:column;
    justify-content:center;
    padding-left:0;
    text-align:center;
  }

  .titulo-header{ text-align:center; }

  .logo{
    width:64px;
    height:64px;
  }
}

@media (max-width:480px){
  nav ul li{ margin:0; }
  nav a{ padding:.38rem .65rem; }
}
