/* 
===============================================
FOTOS.CSS - Sección para subir fotos al Drive
===============================================
Estilos para la sección que invita a los usuarios
a subir sus fotos del evento al Google Drive.
*/

/* CONTENEDOR PRINCIPAL DE FOTOS */
.fotos {
  background: linear-gradient(180deg, #fefefe 0%, #f5f5f5 100%);
  position: relative;
  text-align: center;
}

.fotos::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(158, 133, 186, 0.3),
    transparent
  );
}

.fotos::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(158, 133, 186, 0.3),
    transparent
  );
}

/* TÍTULO DE LA SECCIÓN */
.fotos-title {
  color: #2c2c2c;
  margin-bottom: 2rem;
  position: relative;
}

.fotos-title::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(
    135deg,
    var(--color-lila-oscuro) 0%,
    var(--color-lila-principal) 100%
  );
  border-radius: 2px;
}

/* CONTENIDO DE LA SECCIÓN */
.fotos-content {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 20px;
  border: 1px solid rgba(158, 133, 186, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  animation: fadeInScale 1s ease-out;
  transition: all 0.3s ease;
}

.fotos-content:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-color: rgba(158, 133, 186, 0.3);
  background: rgba(255, 255, 255, 0.85);
}

/* TEXTO INTRODUCTORIO */
.fotos-intro {
  font-size: 1.2rem;
  color: #666;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  font-weight: 300;
}

/* BOTÓN DEL DRIVE */
.fotos-btn {
  font-size: 1.1rem;
  padding: 15px 40px;
  background: linear-gradient(
    135deg,
    var(--color-lila-oscuro) 0%,
    var(--color-lila-principal) 100%
  );
  color: #2c2c2c;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px var(--color-lila-principal);
  transition: all 0.3s ease;
  animation: gradientShift 3s ease infinite;
}

.fotos-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transition: left 0.5s ease;
}

.fotos-btn:hover::before {
  left: 100%;
}

.fotos-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 15px 40px var(--color-lila-principal);
  color: #fff;
}

.fotos-btn:active {
  transform: translateY(-1px) scale(1.02);
}

/* DECORACIÓN ADICIONAL */
.fotos-content::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(
    45deg,
    var(--color-lila-oscuro) 0%,
    var(--color-lila-principal) 100%
  );
  border-radius: 22px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.fotos-content:hover::before {
  opacity: 0.3;
}

/* INFORMACIÓN ADICIONAL */
.fotos-info {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: #888;
  font-style: italic;
}

/* ANIMACIONES */
@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(30px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 8px 25px var(--color-lila-principal);
  }
  50% {
    box-shadow: 0 8px 25px var(--color-lila-principal);
  }
}

/* INDICADOR VISUAL PARA INTERACCIÓN */
.fotos-btn::after {
  margin-left: 10px;
  display: inline-block;
  transition: transform 0.3s ease;
}

.fotos-btn:hover::after {
  transform: translateX(5px);
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
  .fotos-title::after {
    width: 60px;
  }

  .fotos-content {
    padding: 30px 20px;
    border-radius: 15px;
    margin: 0 auto;
  }

  .fotos-intro {
    font-size: 1.1rem;
    margin-bottom: 2rem;
  }

  .fotos-btn {
    font-size: 1rem;
    padding: 12px 30px;
  }

  .fotos-info {
    font-size: 0.85rem;
    margin-top: 1.2rem;
  }
}

@media (max-width: 480px) {
  .fotos-content {
    padding: 25px 15px;
    border-radius: 12px;
    margin: 0 15px;
  }

  .fotos-intro {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.8rem;
  }

  .fotos-btn {
    font-size: 0.9rem;
    padding: 10px 25px;
    border-radius: 25px;
  }

  .fotos-btn::after {
    margin-left: 5px;
  }

  .fotos-info {
    font-size: 0.8rem;
    margin-top: 1rem;
  }
}

/* ACCESIBILIDAD */
@media (prefers-reduced-motion: reduce) {
  .fotos-content {
    animation: none;
  }

  .fotos-btn {
    animation: none;
  }

  .fotos-content:hover,
  .fotos-btn:hover {
    transform: none;
  }
}

/* NAVEGACIÓN CON TECLADO */
.fotos-btn:focus {
  outline: 3px solid var(--color-lila-principal);
  outline-offset: 2px;
}

.fotos-btn:focus-visible {
  outline: 3px solid var(--color-lila-principal);
}

/* DISPOSITIVOS TÁCTILES */
@media (hover: none) {
  .fotos-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: rgba(158, 133, 186, 0.25);
    background: rgba(255, 255, 255, 0.8);
  }

  .fotos-content:hover::before {
    opacity: 0.2;
  }

  .fotos-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 12px 35px var(--color-lila-principal);
  }

  .fotos-btn:hover::after {
    transform: translateX(3px);
  }
}

/* ESTADO DE LOADING PARA EL BOTÓN */
.fotos-btn.loading {
  pointer-events: none;
  opacity: 0.7;
}

.fotos-btn.loading::after {
  content: "...";
  animation: none;
}
