/* ======== RESET BÁSICO ======== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ======== VARIABLES GLOBALES ======== */
:root {
  --color-principal: #D6C12A;
  --color-texto: #333;
  --color-fondo: #f5f5f5;
}

/* ======== ESTILOS GENERALES ======== */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: var(--color-fondo);
  color: var(--color-texto);
  padding: 1rem;
  padding-top: 3.5rem; /* espacio para barra de navegación fija */
}

html {
  scroll-behavior: smooth;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

section {
  width: 100%;
  margin: 1.5rem auto;
  padding: 1.5rem;
  background-color: white;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

h2 {
  color: var(--color-principal);
  margin-bottom: 1rem;
}

p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--color-texto);
}

ul {
  list-style: disc;
  margin-left: 1.5rem;
}

a {
  color: #143e73;
  text-decoration: underline;
}

img {
  border-radius: 8px;
  margin-top: 1rem;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
  max-width: 100%;
  height: auto;
}

/* ======== CABECERA ======== */
header {
  background-color: var(--color-principal);
  color: white;
  padding: 4rem 1rem;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.header-content {
  max-width: 900px;
  margin: 0 auto;
}

header h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.15);
}

header p {
  font-size: 1.2rem;
  font-weight: 400;
  margin-bottom: 0.3rem;
}

header img {
  margin-top: 1rem;
}

/* ======== BARRA DE NAVEGACIÓN ======== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #ffffffee;
  backdrop-filter: blur(8px);
  z-index: 999;
  border-bottom: 1px solid #ddd;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
}

.nav-logo {
  font-weight: bold;
  color: #143e73;
  font-size: 1.3rem;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: #143e73;
}

.nav-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.2rem; /* vertical y horizontal */
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-menu li a {
  text-decoration: none;
  color: #143e73;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-menu li a:hover {
  color: #0d2b50;
  text-decoration: underline;
}

/* ======== PIE DE PÁGINA ======== */
footer {
  text-align: center;
  font-size: 0.9rem;
  color: #666;
  margin-top: 2rem;
}

/* ======== GALERÍA DE FOTOS ======== */
.galeria-fotos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.galeria-fotos img {
  width: 100%;
}

.aclaraciones-imagenes img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

/* ======== GALERÍA DE VIDEOS ======== */
.galeria-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.galeria-videos iframe {
  width: 100%;
  height: 315px;
  border-radius: 8px;
}

/* ======== FORMULARIOS ======== */
form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
}

form input,
form textarea {
  padding: 0.6rem;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-family: inherit;
}

form button {
  width: fit-content;
  background-color: var(--color-principal);
  color: white;
  padding: 0.6rem 1.2rem;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #b99e00;
}


/* ======== RESPONSIVE ======== */
@media (max-width: 768px) {
  .nav-toggle {
    display: block;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    background-color: white;
    position: absolute;
    top: 3.5rem;
    left: 0;
    width: 100%;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .nav-menu.active {
    display: flex;
  }

  body {
    padding-top: 4.5rem;
  }
}

@media (max-width: 480px) {
  section {
    padding: 1rem;
  }

  .nav-menu {
    font-size: 0.9rem;
  }

  header h1 {
    font-size: 1.8rem;
  }

  header p {
    font-size: 1rem;
  }

  iframe {
    width: 100% !important;
  }
}
