@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  color: inherit;
}

body {
  font-family: "Poppins", sans-serif;
  font-style: normal; 
  background: #000;
  overflow-x: hidden;
  padding-bottom: 0px;
  color: #fff;
  background-image: url('img/wallpaper.png');
  background-size: cover;       
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
} 

/* =======================
   ANIMACIÓN DE FONDO
   ======================= */

/*
body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-style: normal;
  overflow-x: hidden;
  padding-bottom: 0px;
  color: #fff;

  background: #000 url('back.png') repeat 0 0;
  background-size: auto;
  animation: animate 50s linear infinite;

} */

/* Keyframes compatibles */
@-webkit-keyframes animate {
  from {background-position:0 0;}
  to {background-position:500px 0;}
}
@-moz-keyframes animate {
  from {background-position:0 0;}
  to {background-position:500px 0;}
}
@-ms-keyframes animate {
  from {background-position:0 0;}
  to {background-position:500px 0;}
}
@-o-keyframes animate {
  from {background-position:0 0;}
  to {background-position:500px 0;}
}
@keyframes animate {
  from {background-position:0 0;}
  to {background-position:500px 0;}
}


.intro {
  background: #f45b69;
  padding: 100px 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}


.leyendas {
  font-size: 12rem;
  text-transform: uppercase;  
  color: transparent;  
  -webkit-text-stroke: 3px #ffffff;  
  text-stroke: 3px #ffffff;
  font-weight: 900;
  line-height: 1;
  paint-order: stroke; 
  font-family: "Poppins", sans-serif;
}


@media (max-width: 768px) {
 .leyendas {
    font-size: 5rem;
    -webkit-text-stroke: 2.5px #ffffff;
  }
}

@media (max-width: 480px) {
  .leyendas {
    font-size: 3.5rem;
    -webkit-text-stroke: 2px #ffffff;
  }
}

.sub {
  font-size: 6vw;
  max-font-size: 6.5rem; 
  text-transform: uppercase;
  font-weight: 900;
  line-height: 1;
  paint-order: stroke;
  font-family: "Poppins", sans-serif;
}

/* Responsivo */
@media (max-width: 768px) {
  h1 {
    font-size: 5rem;
    -webkit-text-stroke: 2.5px #ffffff;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 3.5rem;
    -webkit-text-stroke: 2px #ffffff;
  }
}

.timeline ul {
  padding: 50px 0;
}

.timeline ul li {
  list-style-type: none;
  position: relative;
  width: 6px;
  margin: 0 auto;
  padding-top: 50px;
  background: #fff;
}

.timeline ul li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: inherit;
  z-index: 1;
}

.timeline ul li div {
  position: relative;
  bottom: 0;
  width: 400px;
  padding: 15px;
  border-radius: 4px;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: none;
}

/* IMAGENES */
.timeline ul li div img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-bottom: 10px;
  object-fit: cover;
}

/* PUNTA DE FLECHA */
.timeline ul li div::before {
  content: "";
  position: absolute;
  bottom: 7px;
  width: 0;
  height: 0;
  border-style: solid;
}

.timeline ul li:nth-child(odd) div {
  left: 45px;
}

.timeline ul li:nth-child(odd) div::before {
  left: -15px;
  /*border-width: 8px 16px 8px 0; */
 /* border-color: transparent #f45b69 transparent transparent;*/
}

.timeline ul li:nth-child(even) div {
  left: -439px;
}

.timeline ul li:nth-child(even) div::before {
  right: -15px;
  border-width: 8px 0 8px 16px;
  border-color: transparent transparent transparent transparent;
}

time {
  display: block;
  font-size: clamp(4.4rem, 2.5vw, 2rem);
  font-weight: bold;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}



nombre {
  display: block;
  font-size: clamp(18px, 2.8vw + 1rem, 85px);
  font-weight: bold;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}




@media screen and (max-width: 900px) {
  .timeline ul li div {
    width: 250px;
  }
  .timeline ul li:nth-child(even) div {
    left: -289px;
  }
}

@media screen and (max-width: 600px) {
  .timeline ul li {
    margin-left: 20px;
  }
  .timeline ul li div {
    width: calc(100vw - 91px);
  }
  .timeline ul li:nth-child(even) div {
    left: 45px;
  }
  .timeline ul li:nth-child(even) div::before {
    left: -15px;
    border-width: 8px 16px 8px 0;
    border-color: transparent transparent transparent transparent;
  }
}

.timeline ul li div p {
  display: block;
  margin-top: 10px;
}



.timeline ul li div img.img-scroll {
    width: 280px !important;
    height: 420px !important;
    object-fit: contain !important;
    margin: 10px auto;
    display: block;
} 


.page-footer {
  position: fixed;
  right: 0;
  bottom: 20px;
  display: flex;
  align-items: center;
  padding: 5px;
  color: black;
  background: rgba(255, 255, 255, 0.65);
}

.page-footer a {
  display: flex;
  margin-left: 4px;
}

/* SecciÃ³n de 4 imÃ¡genes */
.header-fondo {
  position: relative;
  width: 100%;
  height: 800px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fondo-grid {
  position: absolute;
  inset: 0;
  display: flex;
  width: 100%;
  height: 100%;
}

.fondo-grid .img {
  flex: 1;
  background-size: cover;
  background-position: center;
}

.img1 { background-image: url('img/back.jpg'); }
.img2 { background-image: url('img/ronaldo.jpg'); }
.img3 { background-image: url('img/iniesta.jpg'); }
.img4 { background-image: url('img/zinedine.jpg'); }

.header-fondo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.45);
}

.header-fondo .content {
  position: relative;
  z-index: 2;
  color: #fff;
  text-align: center;
}

@media (max-width: 768px) {
  .header-fondo {
    height: 400px;
  }
}

@media (max-width: 480px) {
  .header-fondo {
    height: 500px;
  }
}

.logo {
  width: clamp(80px, 20vw, 180px);
  height: auto;
  display: block;
  margin: 0 auto 1rem auto;
}

.parrafo{
  margin: 40px 0;
  color: #ffffff;
  font-size: 15px;
  line-height: 1.6;
  font-family: "Poppins", sans-serif;
}

.parrafo p {
  margin: 0 0 15px;
}

@media (max-width: 768px) {
  .texto-dos-col .col-6 {
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 20px;
  }
}

/* FOOTER */
.custom-footer {
  width: 100%;
  background: linear-gradient(to right, #00093c, #2d0b00);
  color: #fff;
  padding: 100px 0 30px;
  border-top-left-radius: 225px;
  font-size: 13px;
  line-height: 20px;
}

.custom-footer .footer-row {
  width: 85%;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.custom-footer .footer-col {
  flex-basis: 25%;
  padding: 10px;
}

.custom-footer .footer-logo {
  width: 80px;
  margin-bottom: 30px;
}

.custom-footer h3 {
  margin-bottom: 40px;
  position: relative;
}

.custom-footer ul li {
  list-style: none;
  margin-bottom: 12px;
}

.custom-footer ul li a {
  text-decoration: none;
  color: #fff;
}

.custom-footer form {
  display: flex;
  border-bottom: 1px solid #ccc;
  margin-bottom: 50px;
  align-items: center;
  padding-bottom: 15px;
}

.custom-footer form input {
  background: transparent;
  border: none;
  outline: none;
  width: 100%;
  color: #ccc;
}

.custom-footer .social-icons .fab {
  width: 40px;
  height: 40px;
  background: #fff;
  color: #000;
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 15px;
}

.custom-footer hr {
  width: 90%;
  border: 0;
  border-bottom: 1px solid #ccc;
  margin: 20px auto;
}

.custom-footer .copyright {
  text-align: center;
}

.custom-footer .underline {
  width: 100%;
  height: 5px;
  background: #767676;
  border-radius: 23px;
  overflow: hidden;
  position: absolute;
  top: 25px;
}

.custom-footer .underline span {
  width: 15px;
  height: 100%;
  background: #fff;
  position: absolute;
  animation: moving 2s linear infinite;
}

@keyframes moving {
  0% { left: -20px; }
  100% { left: 100%; }
}

@media (max-width: 700px) {
  .custom-footer .footer-col {
    flex-basis: 100%;
  }
}


.curva-superior {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 50px; /* ajusta a gusto */
  background: white;
  border-bottom-left-radius: 100% 90%;
  border-bottom-right-radius: 100% 90%;
  z-index: 5; /* arriba del fondo pero detrÃ¡s del texto */
}

.curva-inferior {
  position: relative;
  width: 100%;
  height: 50px;
  background: white;
  border-top-left-radius: 100% 90%;
  border-top-right-radius: 100% 90%;
  margin-bottom: -1px;
  z-index: 5;
}



/* ANIMACIÓN SOLO PARA IMÁGENES */
/* .img-scroll {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
} */


.img-scroll {
  /* --- TÚ YA TENÍAS ESTO --- */
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;

  /* --- NUEVO: TAMAÑO UNIFORME --- */
  width: 180px;        /* Cambia el tamaño si quieres */
  height: 220px;
  object-fit: contain; /* No deforma la imagen */
  display: block;
  margin: 10px auto;   /* Centra la imagen */
}


.img-scroll.visible {
  opacity: 1;
  transform: scale(1);
}


/* ======== ANIMACIÓN ESTILO TÍTULO (clip-path) ======== */
.anim-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(-50px);
  clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
  animation: titleAnimation 3s ease forwards;
}

/* retrasos para cada letra */
.anim-title span:nth-child(1) { animation-delay: 0.7s; }
.anim-title span:nth-child(2) { animation-delay: 0.75s; }
.anim-title span:nth-child(3) { animation-delay: 0.8s; }
.anim-title span:nth-child(4) { animation-delay: 0.85s; }
.anim-title span:nth-child(5) { animation-delay: 0.9s; }
.anim-title span:nth-child(6) { animation-delay: 0.95s; }
.anim-title span:nth-child(7) { animation-delay: 1s; }
.anim-title span:nth-child(8) { animation-delay: 1.05s; }

@keyframes titleAnimation {
  0% {
    opacity: 0;
    transform: translateY(-50px);
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 80%);
  }
  20% {
    opacity: 1;
    transform: translateY(0);
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%);
  }
  100% {
    opacity: 1; /* se mantiene visible */
    transform: translateY(0); /* no baja */
    clip-path: polygon(100% 0, 100% 100%, 0 100%, 0 15%); /* se mantiene abierto */
  }
}

