@import url("https://fonts.googleapis.com/css2?family=Concert+One&family=Stoke:wght@300;400&display=swap");

:root {
  --color-primario: #6a0dad;
  --color-secundario: #9d4edd;
  --color-terciario: #c77dff;
  --color-fondo: #240046;
  --color-texto: #f8f9fa;
  --color-resplandor: rgba(201, 139, 255, 0.8);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.main-section {
  position: relative;
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: url("./media/PT/background.webp") center / cover no-repeat;
  filter: brightness(50%);
  z-index: -1;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(106, 13, 173, 0.2);
  filter: brightness(80%);
  z-index: -1;
}

.content {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.tessfp {
  position: absolute;
  top: 20px;
  left: 20px;
  color: var(--color-texto);
  font-size: 2rem;
  font-weight: bold;
  text-shadow: 0 0 10px var(--color-resplandor);
}

.date {
  position: absolute;
  bottom: 20px;
  right: 20px;
  color: var(--color-texto);
  font-size: 1.2rem;
  text-shadow: 0 0 5px var(--color-resplandor);
}

.images-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  position: relative;
}

.center-image {
  width: 20vw;
  max-width: 300px;
  min-width: 180px;
  height: auto;
  border-radius: 0%;
  object-fit: cover;
  margin-bottom: 30px;
  animation: pulse 2s infinite;
  filter: drop-shadow(0 0 10px var(--color-resplandor));
  z-index: 2;
}

.side-image {
  position: absolute;
  width: 40vh;
  max-width: 250px;
  min-width: 100px;
  height: auto;
 /* aspect-ratio: 1 / 1; */
  top: 50%;
  transform: translateY(-65%);
  border-radius: 10px;
  transition: all 0.3s ease;
}

.side-image.left {
  left: 50px;
}

.side-image.right {
  right: 50px;
}

.side-image:hover {
  box-shadow: 0 0 20px var(--color-resplandor);
  transform: translateY(-65%) scale(1.1);
}

.text-container {
  height: 5rem;
  margin-bottom: 20px;
  overflow: hidden;
  text-align: center;
  width: 100%;
  padding: 0 20px;
}

.matrix-text {
  font-family: "Stoke", serif;
  font-weight: 300;
  font-style: normal;
  font-size: 4rem;
  color: var(--color-texto);
  text-shadow: 0 0 10px var(--color-resplandor);
  opacity: 0; /* Will be set to 1 by JavaScript */
  transition: opacity 0.5s ease;
}

.enter-button {
  padding: 10px 30px;
  background-color: var(--color-primario);
  color: var(--color-texto);
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--color-resplandor);
}

.enter-button:hover {
  background-color: var(--color-secundario);
  transform: scale(1.05);
  box-shadow: 0 0 20px var(--color-resplandor);
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes matrixEffect {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive styles for main section */
@media (max-width: 1200px) {
.side-image {
  display: none;
}

  .side-image.left {
    left: 30px;
  }

  .side-image.right {
    right: 30px;
  }

  .matrix-text {
    font-size: 3.5rem;
  }
}

@media (max-width: 992px) {
  .side-image {
    display: none;
  }
  .side-image {
    width: 25vh;
    max-width: 200px;
  }

  .side-image.left {
    left: 20px;
  }

  .side-image.right {
    right: 20px;
  }

  .matrix-text {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .side-image {
    display: none;
  }
  .side-image {
    width: 20vh;
    max-width: 150px;
  }

  .side-image.left {
    left: 10px;
  }

  .side-image.right {
    right: 10px;
  }

  .matrix-text {
    font-size: 2.5rem;
  }

  .tessfp {
    font-size: 1.5rem;
  }

  .date {
    font-size: 1rem;
  }
}

@media (max-width: 576px) {
  .side-image {
    display: none;
  }

  .images-container {
    flex-direction: column;
    margin-bottom: 20px;
  }

  .side-image {
    position: static;
    width: 40vw;
    max-width: 120px;
    transform: none;
    margin: 10px 0;
  }

  .side-image:hover {
    transform: scale(1.1);
  }

  .center-image {
    width: 40vw;
    margin: 20px 0;
  }

  .matrix-text {
    font-size: 2rem;
  }

  .text-container {
    height: auto;
    margin-bottom: 30px;
  }

  .enter-button {
    font-size: 1rem;
    padding: 8px 20px;
  }
}

@media (max-height: 600px) {
  .side-image {
    display: none;
  }
  .images-container {
    transform: scale(0.8);
  }

  .text-container {
    height: auto;
    margin: 10px 0;
  }

  .matrix-text {
    font-size: 2rem;
  }
}

/* Tendencia section - unchanged */
.Tendencia {
  position: relative;
  min-height: 100vh;
  background-color: #ffffff;
  padding: 50px 0;
  z-index: 3;
}

#Uno {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 20px;
  margin-top: 20px;
}

#dos {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0px;
  margin-top: 0px;
}

#dos a {
  border-radius: 10px;
  background-color: var(--background);
  text-decoration: none;
  color: var(--resaltado);
  padding: 5px;
}

#dos p {
  color: var(--blanco);
  background-color: var(--azul-claro);
  padding: 5px;
  max-width: 90%;
  height: auto;
  border: 2px solid var(--resaltado);
  border-radius: 10px;
}

#Uno img {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 10px rgba(238, 157, 35, 0.842);
}

#loadingScreen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-fondo);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
}

.loader {
  border: 8px solid var(--color-primario);
  border-radius: 50%;
  border-top: 8px solid var(--color-terciario);
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
}

.light-beam {
  position: fixed;
  width: 100px;
  height: 2000px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(234, 67, 53, 0.1) 45%,
    rgba(234, 67, 53, 0.2) 50%,
    rgba(234, 67, 53, 0.1) 55%,
    transparent 100%
  );
  transform-origin: 50% 0;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes rotate {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@media (max-width: 1200px) {
  .Tendencia {
    margin-top: 25rem;
  }
}

@media (min-height: 1024px) {
  .Tendencia {
    margin-top: 0rem;
  }
}

@media (max-width: 768px) {
  .Tendencia {
    margin-top: 0;
  }
}

@media (max-height: 480px) {
  .Tendencia {
    margin-top: 5rem;
  }
}

