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

/* ---------------------------------------------
  PALETA DE COLORES PRINCIPAL (Variables)
--------------------------------------------- */
:root {
  --verde-oscuro: #607c6b;
  --verde-medio: #6c8850;
  --verde-claro: #a0ba68;
  --beige-suave: #fdfcf7;
  --texto: #3a473f;
  --blanco: #ffffff;
}

/* ---------------------------------------------
  ESTILO GENERAL DE BODY Y ESTRUCTURA BASE
--------------------------------------------- */
body {
  font-family: 'Nunito', sans-serif;
  background-color: var(--beige-suave);
  color: var(--texto);
  text-align: center;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  line-height: 1.6;
}

.contenedor {
  padding: 30px 20px 60px;
  flex: 1;
}

/* ---------------------------------------------
  ANIMACIÓN DE APARICIÓN
--------------------------------------------- */
main {
  animation: aparecer 0.6s ease-out;
  animation-fill-mode: forwards;
}

@keyframes aparecer {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

header.header {
  animation: aparecerHeader 0.6s ease-out;
  animation-fill-mode: forwards;
}

footer.footer {
  animation: aparecerFooter 0.6s ease-out;
  animation-fill-mode: forwards;
}

@keyframes aparecerHeader {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes aparecerFooter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------------------------------------------
  HEADER Y LOGO
--------------------------------------------- */
.header {
  padding: 50px 0 30px;
}

.logo {
  width: 90vw;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* ---------------------------------------------
  TÍTULOS Y TEXTOS
--------------------------------------------- */
.titulo-principal,
h1 {
  font-size: 2.2rem;
  color: var(--verde-oscuro);
  margin-bottom: 15px;
  font-weight: 700;
  font-family: 'Quicksand', sans-serif;
}

h2.slogan {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--verde-oscuro);
  margin-top: 10px;
  margin-bottom: 25px;
  font-style: italic;
  font-family: 'Quicksand', sans-serif;
}

.intro {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: var(--verde-medio);
  font-weight: 500;
}

/* ---------------------------------------------
  BOTONES
--------------------------------------------- */
.botones {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.boton {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 70px;
  background: linear-gradient(to bottom right, var(--verde-medio), var(--verde-claro));
  color: var(--blanco) !important;
  border-radius: 12px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  border: none;
  box-shadow: 0 4px 8px rgba(96, 124, 107, 0.25);
  padding: 0 20px;
  text-align: center;
  line-height: 1.3;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.boton-texto {
  margin: 0;
  padding: 0;
  line-height: 1.3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
  text-align: center;
}

.boton:hover,
.boton:focus {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(96, 124, 107, 0.35);
  outline: none;
}

.boton:active {
  transform: scale(0.97);
}

/* ---------------------------------------------
  LINKS
--------------------------------------------- */
.contenedor a {
  color: var(--verde-oscuro);
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 20px;
  transition: color 0.3s ease;
}

.contenedor a:hover,
.contenedor a:focus {
  color: var(--verde-claro);
  text-decoration: underline;
  outline: none;
}

/* ---------------------------------------------
  FOOTER
--------------------------------------------- */
.footer {
  background-color: var(--verde-medio);
  color: var(--blanco);
  padding: 18px 0;
  font-size: 14px;
  margin-top: auto;
  box-shadow: 0 -2px 6px rgba(96, 124, 107, 0.2);
}

.footer-contenido {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-izquierda {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.footer-derecha {
  text-align: right;
  color: var(--blanco);
  font-size: 14px;
}

.footer-item {
  display: flex;
  align-items: center;
  color: var(--blanco);
  text-decoration: none;
  font-size: 14px;
  gap: 8px;
  transition: opacity 0.3s ease;
}

.footer-item:hover {
  opacity: 0.8;
}

.footer-label {
  font-weight: 600;
  margin-right: 6px;
}

/* ---------------------------------------------
  ÍCONOS
--------------------------------------------- */
.icono {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

/* ---------------------------------------------
  GALERÍA
--------------------------------------------- */
.galeria {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 25px;
  padding: 20px 0;
}

.galeria img {
  width: 100%;
  max-width: 420px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(96, 124, 107, 0.25);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.galeria img:hover,
.galeria img:focus {
  transform: scale(1.05);
  outline: none;
}

/* ---------------------------------------------
  SECCIÓN DE PLAYROOM
--------------------------------------------- */
.reglamento-section {
  max-width: 650px;
  margin: 0 auto;
  padding: 0 15px 30px;
  text-align: left;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--texto);
}

.reglamento-section ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 15px;
}

.reglamento-section ul li {
  margin-bottom: 12px;
}

/* ---------------------------------------------
  CLASES AGREGADAS PARA HTML LIMPIO
--------------------------------------------- */
.bloque {
  display: block;
}

.reglamento-section.instructivo {
  margin-top: 30px;
  text-align: center;
}

.reglamento-section.instructivo h2 {
  font-size: 1.8rem;
}

.reglamento-section.instructivo span {
  color: var(--verde-oscuro);
  font-weight: 600;
}

.boton-camaras {
  margin-top: 20px;
}

/* ---------------------------------------------
  MEDIA QUERIES
--------------------------------------------- */
@media (min-width: 768px) {
  .boton {
    width: 220px;
    height: 65px;
    font-size: 18px;
  }

  .boton-texto {
    white-space: normal;
  }

  .titulo-principal,
  h1 {
    font-size: 2.5rem;
  }

  .intro {
    font-size: 1.25rem;
  }
}

@media (max-width: 600px) {
  .footer-contenido {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
  }

  .footer-izquierda,
  .footer-derecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .footer-derecha {
    margin-top: 20px;
  }

  .footer-item {
    justify-content: center;
    width: 100%;
  }

  .footer {
    text-align: center;
  }
}
