/* =========================================
   Colores personalizados
========================================= */
.color1 { color: #fcfafa; }
.color2 { color: #0e0e0e; }
.color3 { color: #8882ff; }
.color4 { color: #950d08; }
.color5 { color: #ffddbc; }

/* =========================================
   Estilos generales
========================================= */
body {
  font-family: "Quantico",Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color: #181717;
}

a {
  color: #f7f4f6;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

p {
    color: white;
}
/* =========================================
   Navegación
========================================= */
.site-nav {
  text-align: center;
  background-color: #bd1923;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-nav a {
  margin: 0 15px;
  font-weight: bold;
  color: #111111;
}

/* =========================================
   Encabezado
========================================= */
.site-header {
  text-align: center;
  padding: 50px 20px;
  background: linear-gradient(135deg, #615f61, #111111);
  color: white;
}
.site-header h1 {
    font-family: "Audiowide", sans-serif;
    margin: 0;
    font-size: 2.5rem;
}
.site-header .subtitle {
  margin-top: 10px;
  font-size: 1.2rem;
  font-weight: 300;
}

/* =========================================
   Barra de carga animada
========================================= */
.loading-bar-container {
  width: 25%;
  height: 15px;
  background: rgba(255,255,255,0.3);
  margin: 20px auto 0;
  border-radius: 10px;
  overflow: hidden;
}
.loading-bar-fill {
  width: 0;
  height: 100%;
  background: #88ff82;
  animation: load 3s forwards infinite;
}
@keyframes load {
    from {width: 100%;
            background-color: green}
    to { width: 0%;
        background-color: red }
}

/* =========================================
   Contenedor principal y secciones
========================================= */
.container {
  max-width: 900px;
  margin: 40px auto;
  padding: 0 20px;
}

section {
  margin-bottom: 50px;
}

h2 {
    font-family: "Press Start 2P", system-ui;;
  color: #fcfcfc;
  margin-bottom: 15px;
}

/* =========================================
   Perfil
========================================= */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#presentacion p {
  line-height: 1.7;
  font-size: 1rem;
  margin-bottom: 1.2em;
  text-align: justify;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f6f2f2;
}

.profile-img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 20px;
}

.about-me,
.my-works {
  text-align: center;
}

/* =========================================
   Tarjetas del equipo
========================================= */
.team-cards-lm {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
}

.team-card-lm p {
    font-size: 1em;
    max-height: 45%;
}

.team-card-lm,
.team-card-lm-music {
  background-color: #bd1923;
  border-radius: 10px;
  width: 150px;
  text-align: center;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card-lm img,
.team-card-lm-music img {
  width: 100%;
  border-radius: 0%;
  object-fit: cover;
  margin-bottom: 10px;
  height: 50%;
}

.team-card-lm a,
.team-card-lm-music a {
  display: block;
  font-weight: bold;
  color: #000;
  text-decoration: none;
}

.team-card-lm a:hover,
.team-card-lm-music a:hover {
  text-decoration: underline;
}

.team-card-lm:hover,
.team-card-lm-music:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 12px rgb(251, 249, 249);
}

.team-card-lm-music {
  height: 200px;
}

/* =========================================
   Footer
========================================= */
.site-footer {
  text-align: center;
  padding: 20px;
  background-color: #bd1923;
  color: white;
}

/* =========================================
   Modal 
========================================= */
.modal {
  display: none;
  /* oculto por defecto */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  /* fondo semi-transparente */
}

.modal-content {
  background-color: #fff;
  margin: 12% auto;
  padding: 20px;
  border-radius: 15px;
  width: 80%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
  animation: aparecer 0.3s ease-in-out;
}

.cerrar {
  color: #aaa;
  float: right;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.cerrar:hover {
  color: #ff3366;
}

@keyframes aparecer {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

#ticket {
    cursor: pointer;
}

#ticket:hover {
    text-decoration: line-through;
}

/*=========================================
    Buttons
==========================================*/
.button {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s ease;
    align-items: center;
    margin: 1rem;
}

.yesButton {
    background: linear-gradient(135deg, #dc2626, #ef4444);
    color: white;
    box-shadow: 0 4px 10px rgba(220, 38, 38, 0.4);
}

.noButton {
    background: linear-gradient(135deg, #16a34a, #22c55e);
    color: white;
    box-shadow: 0 4px 10px rgba(22, 163, 74, 0.4);
}

.noButton:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(22, 163, 74, 0.5);
}

/* =========================================
   Media Queries (Responsivo)
========================================= */

/* Tablets / pantallas medianas ≤900px */
@media (max-width: 900px) {
  .container {
    padding: 0 15px;
  }

  .team-cards-lm {
    gap: 15px;
  }

  .team-card-lm p {
    font-size: 0.6em;
    max-height: 45%;
}

.team-card-lm h3 {
    font-size: 1em;
    max-height: 45%;
}

  .team-card-lm,
  .team-card-lm-music {
    width: 120px;
    padding: 10px;
  }

  .site-header h1 {
    font-size: 2rem;
  }

  .site-header .subtitle {
    font-size: 1rem;
  }
}

/* Móviles pequeños ≤400px */
@media (max-width: 400px) {
  .site-nav a {
    display: block;
    margin: 5px 0;
  }

  .team-cards-lm {
    flex-direction: column;
    gap: 10px;
  }

  .team-card-lm h3 {
    font-size: 1em;
    max-height: 45%;
}

  .team-card-lm,
  .team-card-lm-music {
    width: 100%;
  }

  .site-header h1 {
    font-size: 1.5rem;
  }

  .site-header .subtitle {
    font-size: 0.9rem;
  }

  .loading-bar-container {
    width: 80%;
  }
}