@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&family=Poppins:ital,wght@0,100..900;1,100..900&display=swap"); /*
* IMPORT CUSTOM FONT
*/
@font-face {
  font-family: ChunkFive;
  src: url(../assets/fonts/Chunkfive.woff);
}

:root {
  --title-font: ChunkFive, sans-serif;
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Inter", sans-serif;
  --bg-red: #f02020;
  --darker-red: #c01817;
  --bg-darkest-red: #861212;
  --text-white: #f7f0ea;
  --text-yellow: #feb101;
  --text-black: #1b1815;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  width: 100%;
  font-size: 16px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

/*LANDING HERO*/
.firstLandingHero {
  height: 100%;
  width: 100%;
  background-color: var(--bg-red);
  font-family: var(--title-font);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.firstLandingHero h1 {
  color: var(--text-white);
  font-size: 8rem;
  letter-spacing: 10px;
  text-align: center;
}
.firstLandingHero h2 {
  color: var(--text-yellow);
  font-size: 2rem;
  letter-spacing: 3px;
  text-align: center;
}

.firstLandingHero p {
  color: var(--text-black);
  font-family: var(--font-primary);
  font-weight: 500;
  margin-top: 20px;
  text-align: center;
  animation: parpadeo 1.5s infinite ease;
}
/*ANIMACION PARPADEO PARA TEXTO DE CONTINUAR*/
@keyframes parpadeo {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}
/*MEDIA QUERIES PARA MOVIL PRIMERA PAGINA*/
@media (max-width: 800px) {
  .firstLandingHero h1 {
    font-size: 4rem;
    letter-spacing: 10px;
  }
  .firstLandingHero h2 {
    font-size: 0.95rem;
    letter-spacing: 3px;
  }
}

/*INTRODUCTION FILE*/
.introductionBody {
  width: 100%;
  max-height: 100vh;
  text-align: center;
  background: linear-gradient(
    180deg,
    var(--bg-red) 0%,
    var(--darker-red) 50%,
    var(--bg-darkest-red) 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.introductionMain {
  height: 90%;
  width: 100%;
  position: relative;
  font-family: var(--title-font);
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  overflow: hidden;
}

.introductionMain article {
  position: absolute;
  z-index: 1;
  width: 30%;
  height: 70%;
  color: var(--text-black);
  text-align: center;
  background-color: var(--text-yellow);
  border-radius: 350px 350px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 65px;
  padding: 20px;
}

.introductionMain h1 {
  font-size: 3rem;
}
.introductionMain div {
  font-family: var(--font-primary);
  font-size: 1.2rem;
}

.introductionMain div strong {
  font-weight: 800;
  color: black;
}

#introductionImage {
  z-index: 10;
  height: 550px;
  position: absolute;
  top: 20px;
  object-fit: contain;
  transform: rotate(-10deg);
}
.introductionMain button {
  display: none;
  font-size: 16px;
  padding: 14px 100px;
  color: var(--text-white);
  font-family: var(--font-primary);
  font-weight: bold;
  background-color: var(--bg-red);
  border: none;
  margin-top: 20px;
  border-radius: 20px;
  box-shadow: 4px 10px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease-in-out;
}
.introductionMain button:hover {
  cursor: pointer;
  transform: scale(1.1);
  box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.2);
}

.introductionFooter {
  width: 100%;
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20%;
}

.introductionFooter > svg {
  background-color: var(--text-yellow);
  border-radius: 50%;
  padding: 10px;
  transition: all 0.3s ease-in-out;
}
.introductionFooter > svg:hover {
  cursor: pointer;
  transform: scale(1.1);
}

/*MEDIA QUERIES PARA MOVIL SEGUNDA PAGINA*/
@media (max-width: 800px) {
  .introductionMain h1 {
    font-size: 2rem;
  }
  #introductionImage {
    z-index: 10;
    height: 400px;
    width: auto;
    position: absolute;
    top: 30px;
    transform: rotate(-10deg);
    object-fit: cover;
  }
  .introductionMain .text {
    font-size: 1rem;
  }

  .introductionMain article {
    width: 90%;
    height: 50%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    padding: 20px;
  }
  .introductionFooter {
    gap: 50%;
  }
  .introductionBody {
    width: 100%;
    height: 100dvh;
    box-sizing: border-box;
  }
}

/* --- ADICIONALES PARA RESOLUCIONES INTERMEDIAS (solo media queries) --- */
/* arreglos para ventanas redimensionadas y tablets (entre móvil y desktop) */
@media (min-width: 801px) and (max-width: 1200px) {
  .introductionMain article {
    /* aumentar ligeramente el ancho en pantallas medianas para que no quede demasiado estrecho */
    width: 48%;
    height: 68%;
    gap: 22px;
    padding-bottom: 60px;
    /* centrar el article en pantallas intermedias para que no quede pegado al lado */
    left: 50%;
    transform: translate(-50%, -50%);
    bottom: 0;
    top: 65%;
  }

  .introductionMain img {
    /* hacer la imagen proporcionalmente más pequeña para que no cubra el card */
    height: 320px;
    top: 30%;
    left: 30%;
    transform: translate(-50%, -50%);
  }
}

/* puntos de quiebre más grandes pero no ultra-ancho */
@media (min-width: 1201px) and (max-width: 1600px) {
  .introductionMain article {
    /* mantener el artículo razonablemente ancho en pantallas grandes-std */
    width: 30%;
    height: 70%;
    gap: 26px;
    padding-bottom: 72px;
    /* permitir que el article use el comportamiento por defecto del CSS base (no forzamos izquierda) */
    left: initial;
    transform: none;
  }

  .introductionMain img {
    /* imagen algo mayor pero controlada */
    height: 300px;
    left: 38%;
    transform: translate(-50%, -50%);
    top: 10%;
  }
}

/*LOGIN FILE*/

.loginBody {
  height: 100vh;
  width: 100%;
  font-family: var(--font-secondary);
  font-size: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.loginHeader {
  height: 15%;
  width: 100%;
  background: black;
  color: var(--text-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: left;
}

.loginHeader .text {
  height: 100%;
  width: 60%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 10px;
  padding-left: 50px;
}
.loginHeader h2 {
  font-size: 2rem;
}
.loginHeader p {
  font-size: 0.9rem;
}

.loginMain {
  width: 100%;
  height: 100%;
  background-color: black;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: left;
}
.loginFormText {
  width: 60%;
  height: 100%;
  border-radius: 40px 40px 0px 0px;
  background: white;
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
  gap: 10px;
}

.loginForm {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.loginForm input {
  width: 50%;
  padding: 7px;
  padding-left: 14px;
  border-radius: 10px;
  border: solid 2px black;
  outline: none;
  font-family: var(--font-primary);
  margin-bottom: 10px;
}
.loginForm input::placeholder {
  font-family: var(--font-secondary);
}
.loginForm input:focus {
  border: solid 2px var(--text-yellow);
  outline: none;
  font-family: var(--font-primary);
}
.loginError {
  color: var(--bg-red);
  font-size: .8rem;
  display: none;
}
.loginForm a {
  width: 50%;
  text-align: right;
  text-decoration: none;
  color: var(--text-black);
  font-size: 0.8rem;
}

.loginBtn {
  width: 50%;
  padding: 7px;
  font-size: 1.25rem;
  border-radius: 10px;
  border: none;
  background-color: var(--text-yellow);
  font-weight: bold;
  font-family: var(--font-secondary);
  box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}
.loginBtn:hover {
  cursor: pointer;
  box-shadow: 0px 0px 6px rgba(0, 0, 0, 0.2);
  transform: scale(1.025);
}

.loginFormText > p {
  width: 80%;
  text-align: center;
  padding-top: 5%;
}

.loginFormText > p a {
  color: var(--text-black);
  text-decoration: none;
  font-weight: bold;
}

/*MEDIA QUERIES PARA MOVIL LOGIN*/
@media (max-width: 800px) {
  .loginBody {
    height: 100dvh;
  }
  .loginFormText {
    width: 100%;
    /* use symmetric padding so the container visually sits centered */
    padding: 40px 18px;
    justify-content: flex-start;
    gap: 10px;
    align-items: center;
    /* center text inside the white card on mobile */
    text-align: left;
  }
  .loginFormText h1 {
    text-align: left;
  }
  .loginForm {
    display: flex;
    flex-direction: column;
    /* center inputs/buttons on small screens */
    align-items: flex-start;
    justify-content: center;
    padding: 15px 0px;
    gap: 10px;
    width: 100%;
  }

  .loginForm input {
    width: 100%;
    padding: 7px;
    border-radius: 10px;
    border: solid 1px black;
  }

  .loginForm a {
    width: 100%;
    /* links centered on mobile */
    text-align: right;
  }
  .loginBtn {
    width: 100%;
    margin-top: 20px;
    padding: 7px;
    font-size: 1rem;
    border-radius: 10px;
    border: none;
    background-color: var(--text-yellow);
    font-weight: bold;
    font-family: var(--font-secondary);
    box-shadow: 2px 4px 6px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
  }
  /* keep heading visually aligned to inputs on mobile */
  .loginFormText h1 {
    font-size: 1.2rem;
    align-self: flex-start;
  }
  .loginHeader .text {
    height: 100%;
    width: 100%;
    gap: 5px;
    padding: 25px;
  }
  .loginHeader h2 {
    font-size: 1.5rem;
  }
  .loginHeader p {
    font-size: 0.75rem;
  }
}


.inputs {
  display: flex;
  gap: 20px;
  justify-content: center;
  padding: 20px ;
}
.inputs input {
  width: 70px;
  height: 70px;
  border-radius: 10px;
  font-size: 2.5rem;
  text-align: center;
  outline: none;
  border: solid 3px black;
}

.inputs input:focus {
  border: solid 3px var(--text-yellow);
}

/* Quitar flechas en Chrome, Safari, Edge */
.inputs input[type=number]::-webkit-inner-spin-button,
.inputs input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Quitar flechas en Firefox */
.inputs input[type=number] {
  -moz-appearance: textfield;
  appearance: textfield;
}

.textPwd p {
  font-weight: bold;
  font-size: 1.5rem;
}

.pwdCta {
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.pwdCta a {
  text-decoration: none;
  color: var(--text-black);
  font-weight: bold;
}

.pwdCta button {
  width: 100%;
}