/* Variables CSS */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #34495e;
  --text-color: #333;
  --light-text-color: #f7f7f7;
  --bg-color: #f0f0f0;
  --card-bg-color: #fff;
}

/* Base and Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family:'Times New Roman', Times, serif;
  color: var(--text-color);
}

/* ========================= UTILITIES / BUTTONS ========================= */
.section {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  margin-bottom: 30px;
  color: var(--primary-color);
  font-size: 2em;
  border-bottom: 3px solid var(--primary-color);
  display: inline-block;
  padding-bottom: 5px;
  width: 100%;
}

.section-subtitle {
  text-align: center;
  margin-bottom: 40px;
  font-style: italic;
  color: var(--secondary-color);
}

.btn {
  display: block;
  width: fit-content;
  margin: 20px auto 0;
  padding: 10px 20px;
  background-color: var(--primary-color);
  color: var(--light-text-color);
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.btn:hover {
  background-color: var(--secondary-color);
}

/* ========================= HEADER (Hero Section) ========================= */

.hero-header {
  height: 100svh;
  background-image: url('../assets/img/victor_cesar_mongelos.jpg');
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  position: relative;
  color: var(--light-text-color);
  padding-bottom: 20px;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.hero-title {
  z-index: 10;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  letter-spacing: 1px;
}

/* ========================= BIOGRAFÍA ========================= */

.biografia-content-container {
  overflow: hidden;
  max-height: 100svh;
  transition: max-height 0.5s ease-out;
}

.biografia-content-container.expanded {
  max-height: 5000px;
  transition: max-height 1.5s ease-in-out;
}

.biografia-text {
  line-height: 1.8;
  text-align: justify;
  margin-bottom: 20px;
  padding: 0 10px;
}

/* ========================= GALERÍA DE FOTOS ========================= */

.galeria-section {
  background-color: var(--bg-color);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  padding-top: 20px;
}

.galeria-grid a {
  display: block;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.galeria-grid a::before {
  content: attr(alt-title);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 10px;
  background-color: rgba(0, 0, 0, 0.7);
  color: var(--light-text-color);
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 2;
}


.galeria-grid a:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
}

.galeria-grid a:hover::before {
  opacity: 1;
  transform: translateY(0);
}


.galeria-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* ========================= CANCIONES DESTACADAS ========================= */

.canciones-list {
  max-width: 800px;
  margin: 0 auto;
}

.cancion-item {
  background-color: var(--card-bg-color);
  padding: 15px 20px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.cancion-item-title {
  color: var(--primary-color);
  margin-bottom: 10px;
  font-size: 1.2em;
}

.cancion-item audio {
  width: 100%;
  max-width: 500px;
  display: block;
  margin-top: 10px;
}

/* ========================= OBRAS PUBLICADAS (Cards) ========================= */

/* .card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  padding: 20px 0;
}

.card {
  background-color: var(--card-bg-color);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  text-align: center;
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-title {
  color: var(--secondary-color);
  margin: 15px 10px 10px;
  font-size: 1.5em;
}

.card-description {
  padding: 0 20px;
  margin-bottom: 20px;
  line-height: 1.6;
}

.btn-card-pdf {
  display: inline-block;
  margin: 0;
  width: auto;
} */

/* ========================= ACTIVIDADES DESTACADAS ========================= */

.actividades-section {
  background-image: url('../assets/img/actividades_bg.jpg');
  background-attachment: fixed;
  background-size: cover;
  background-position: center;
  color: var(--light-text-color);
  position: relative;
  padding: 80px 20px;
  min-height: 100svh;

  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.gradient-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.1) 30%,
    rgba(0, 0, 0, 0.1) 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  z-index: 1;
}

.actividades-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.actividades-content .section-title {
  color: var(--light-text-color);
  border-color: var(--light-text-color);
}

.actividades-content p {
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

/* ========================= CANCIÓN GANADORA ========================= */

.cancion-section {
  text-align: center;
}

.cancion-title {
  color: var(--secondary-color);
  margin-bottom: 20px;
  font-size: 1.8em;
}

.cancion-letra-container {
  overflow: hidden;
  max-height: 100svh;
  transition: max-height 0.5s ease-out;
  padding: 0 10px;
}

.cancion-letra-container.expanded {
  max-height: 3000px;
  transition: max-height 1.5s ease-in-out;
}

.cancion-letra-inner {
  max-width: 700px;
  margin: 0 auto;
}

.estrofa {
  margin-bottom: 20px;
  line-height: 1.7;
  text-align: center;
  font-style: italic;
}

/* ========================= FOOTER ========================= */

.main-footer {
  background-color: var(--secondary-color);
  color: var(--light-text-color);
  text-align: center;
  padding: 20px 10px;
  font-size: 0.9em;
}