/* styles.css */

:root {
  --verde: #f4dbaa;
  --marron: #f4dbaa;
  --fondo: #f4f1ee;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: var(--fondo);
  color: #333;
}

/* ====== CABECERA ====== */
header {
  display: flex;
  justify-content: space-between;
  align-items: center; /* <-- IMPORTANTE para centrar verticalmente */
  background-color: var(--marron);
  padding: 0 2rem;
  color: white;
  position: relative;
  min-height: 160px; /* puedes ajustarlo si quieres más altura */
}

.logo {
  display: flex;
  align-items: center;
  padding: 0.5rem;
}

.logo img {
  height: 150px;
  max-height: 150px;
  width: auto;
  display: block;
}

nav {
  display: flex;
  align-items: center; /* <-- si quieres asegurar que los links se centran también */
  gap: 2rem;
}

nav a {
  color: black; /* o white si mantienes fondo oscuro */
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem; /* Aumentado desde el valor por defecto (~1rem) */
  padding: 0.5rem;
}

nav a:hover {
  text-decoration: underline;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

/* ====== MAIN ====== */
main {
  min-height: 60vh;
  padding: 2rem 1rem;
}

/* ====== SLIDER ====== */
.slider {
  position: relative;
  max-width: 100%;
  height: 300px;
  overflow: hidden;
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slide {
  min-width: 100%;
  height: 300px;
  background-size: cover;
  background-position: center;
}

.slider-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0.5rem;
  cursor: pointer;
}

.prev { left: 10px; }
.next { right: 10px; }

/* ====== PIE DE PÁGINA ====== */
footer {
  background-color: var(--verde);
  color: black;
  padding: 2rem 1rem;
  text-align: center;
}

.enlace-boton {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.5rem;
  background-color: black;
  color: var(--verde);
  border: none;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.enlace-boton:hover {
  background-color: #e6e6e6;
}

/* ====== MENÚ RESPONSIVE ====== */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .menu-toggle {
    display: block;
    position: absolute;
    top: 1.2rem;
    right: 1rem;
    z-index: 1000;
  }

  nav {
    display: none;
    flex-direction: column;
    background-color: var(--marron);
    width: 100%;
    text-align: center;
    padding: 1rem 0;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 999;
  }

  nav.active {
    display: flex;
  }

  nav a {
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .logo img {
    height: 120px;
  }
}


