/* RESET GENERAL */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  font-family: 'Playfair Display', serif;
  background-color: #fdfdfd;
  color: #1d2d44;
  line-height: 1;
}

.contenedor-pagina {
  flex: 1;
}

/* ENCABEZADO PRINCIPAL */
.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1.5rem;
  background-color: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  position: relative; /* <- agregado para menú absoluto */
  z-index: 1000;      /* opcional, para que el menú quede sobre el contenido */
}

/* LOGO Y TÍTULO */
.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  width: 100px;
  height: auto;
}

.titulo h1 {
  font-size: 1.3rem;
  color: #d8b806;
  letter-spacing: 1px;
  margin-bottom: 0.3rem;
}

.titulo h2 {
  font-size: 1.8rem;
  color: #1d2d44;
  font-weight: bold;
}

/* NAVEGACIÓN */
.main-nav ul {
  list-style: none;
  display: flex;
  gap: 3rem;
}

.main-nav a {
  text-decoration: none;
  color: #1d2d44;
  font-weight: 600;
  font-size: 1.2rem;
  transition: color 0.3s ease;
}

.main-nav a:hover {
  color: #d8b806;
}

/* PIE DE PÁGINA */
.main-footer {
  background-color: #1d2d44;
  color: #ffffff;
  text-align: center;
  padding: 1.5rem 1rem;
  font-size: 0.9rem;
  position: relative; /* para posicionar WhatsApp */
}

.footer-copy {
  color: #cccccc;
  margin: 0;
}

.whatsapp-link {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #25D366; /* verde WhatsApp */
  font-weight: bold;
  text-decoration: none;
}

.whatsapp-link i {
  font-size: 1.2rem;
}

/* --- MEDIA QUERIES --- */
@media (max-width: 600px) {
  .main-footer {
    font-size: 0.8rem;
    padding: 1rem;
  }

  .whatsapp-link {
    position: static;
    transform: none;
    margin-bottom: 0.5rem;
  }

  .whatsapp-link i {
    font-size: 1rem;
  }
}

/* --- MEDIA QUERIES GLOBAL --- */

/* Tablet */
@media (max-width: 1024px) {
  .main-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .logo-container {
    justify-content: center;
    width: 100%;
  }

  .main-nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
  }

  .main-nav a {
    font-size: 1.1rem;
  }
}

/* Móvil */
@media (max-width: 600px) {
  .logo {
    width: 80px;
  }

  .titulo h1 {
    font-size: 1rem;
    text-align: center;
  }

  .titulo h2 {
    font-size: 1.4rem;
    text-align: center;
  }

  .main-nav ul {
    flex-direction: column;
    gap: 1rem;
    padding-left: 0;
    align-items: center;
  }

  .main-nav a {
    font-size: 1rem;
  }

  .main-footer {
    font-size: 0.8rem;
    padding: 1rem;
  }
}

/* === MENÚ HAMBURGUESA === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: #1d2d44;
}

/* Móvil */
@media (max-width: 768px) {
  .menu-toggle {
    display: block;
    z-index: 1001;
  }

  .main-nav {
    position: absolute;
    top: 100%; /* debajo del header */
    left: 0;
    width: 100%;
    background-color: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    z-index: 999;
  }

  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem 0;
  }

  .main-nav.show {
    max-height: 500px;
  }
}
