/* Reset y tipografía base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-size: 14px;
}
body {
  font-family: 'Poppins', sans-serif;
  line-height: 1.5;
  color: #000;
  background-color: #000; /* Fondo negro en toda la página */
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Poppins', sans-serif;
}


.site-header {
  position: fixed;    
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  box-shadow: none;
  z-index: 1000;         
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 10%;
}
.header-inner .logo img {
  height: 2rem;
}

/* Padre: fondo totalmente negro */
.participar {
  position: relative;
  width: 100%;
  height: 90vh;       /* o la altura que necesites */
  background: #000;    /* negro puro */
  overflow: hidden;    /* por si acaso */
  padding: 5px;
}

/* Hijo: ocupa 50% ancho y 100% alto, con degradado diagonal */
.participar .participar-bg {
  position: absolute;
  top: 1;
  left: 0;
  width: 46%;
  height: 99%;
  background: 
    linear-gradient(
      to top right,
      #ffb71b 50%,    /* amarillo hasta la línea */
      transparent 50% /* transparente después */
    );
}

.participar-text{
  background-color: transparent;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: flex-start;
    align-items: center;
    color: #fff;
    top: 12vh;
}

.participar-text h1{
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;text-align: center;
}

.participar-text-2{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
    align-items: flex-start;
}

.textos{
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: flex-start;
}

.moto-mrx{
  display: flex;
  flex-wrap: nowrap;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.moto-mrx img{
  width: 62%;
}

.text-registrate{
  color: #fff; 
  font-size: 22px; 
  line-height: 1;
}

.text-registrate span{
  font-size: 18px;
}

.tyc-imagen{
  width: 100%;
  margin-top: -40px;
  margin-left: 20px;
}

.beneficios{
  background-color: #fff;
  position: relative;
  width:100%;
  text-align: center;
  padding: 10px;
}

.beneficios1{
  font-size: 48px;
}

.beneficios2{
  background-color: #ffb71b;
  padding: 7px; font-size: 24px;
}

.beneficios3{
  font-size: 48px;
}

.beneficios4{
  font-size: 22;
}

.beneficios5{
  background-color: #ffb71b;
  padding: 7px;
  font-size: 24px;
  margin-left: 35vw;
}

/* Navegación desktop */
.main-nav {
  display: flex;
  gap: 4rem;
  background-color: #ffffff;
  padding: 0.8rem;
  border-radius: 20px;
}
.main-nav a {
  text-decoration: none;
  color: #000;
  font-weight: 500;
  padding: 0;
  background: none;
  border-radius: 0;
}
/* Redes sociales desktop */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 0.5rem;
  width: 2rem;
  height: 2rem;
  background: #ffb71b;
  border-radius: 50%;
  color: #000;
  text-decoration: none;
  font-size: 1rem;
}

/* Burger y menú móvil */
.burger {
  display: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
}
.mobile-menu {
  display: none;
  background: #000;
  border-top: 1px solid #333;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 10%;
}
.mobile-menu nav a {
  padding: 0.75rem 0;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
}
.mobile-social {
  margin-top: 1rem;
}
.mobile-social a {
  margin-right: 0.5rem;
  display: inline-block;
  width: 2.8rem;
  height: 2.8rem;
  background: #ffb71b;
  border-radius: 50%;
  text-align: center;
  color: #000;
}

/* HERO */
.hero {
  height: 62vh;
  padding-top: 2%;
  padding-left: 13vw;
  padding-right: 12vw;
  background-color: #000;
}

.hero-img{
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 98%;
  height: 100%;
}


/* FORM SECTION */
.form-section {
  position: relative;
  margin-top: -4rem;
  padding: 0 18%;
  margin-bottom: 4rem;
}
/* Div blanco cuadrado detrás */
.bg-box {
  position: absolute;
  top: 11rem;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  aspect-ratio: 1 / 1;
  background-color: #fff;
  z-index: 1;
  height: 44.5rem;
  display: flex;
  flex-direction: row;
}

/* FORM CONTAINER */
.form-container {
  position: relative;
  z-index: 2;
  background: #ffb71b;
  padding: 3rem;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.form-container h2 {
  display: flex;
  align-items: baseline;
  font-weight: 400;
  margin-bottom: 1.5rem;
}
.form-container .small {
  font-size: 1rem;
  margin-right: 0.5rem;
}
.form-container .large {
  font-size: 2rem;
  font-weight: 700;
}

.img-form-lat{
  width: 50%;
}
.pastilla.img-form-lat img{
 height: 380px;
}

.pastilla.img-form-lat {
    display: flex;
    align-items: flex-end;
    padding-left: 5%;
}
.mordasa.img-form-lat {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    margin-top: -7%;
    padding-right: 3%;
}
.mordasa.img-form-lat img{
  height: 430px;
}
/* Campos del formulario */
.row {
  display: flex;
  gap: 1rem;
}
.field {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 2.2rem;
}
.field label {
  margin-bottom: 0.25rem;
  font-weight: 500;
  color: #000;
}
.field input[type="text"],
.field input[type="number"],
.field input[type="file"] {
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background: #fff;
  font-size: 1rem;
  height: 50px;
}
.field input::placeholder {
  color: #888;
}

/* Botón */
.btn-submit {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
}
.btn-submit .arrow {
  margin-left: 0.5rem;
  font-size: 1.2rem;
}

.frase-footer{
  width: 100%;
  padding-left: 10%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
}

.frase-footer h2{
  color: #fff;
  font-size: 62px;
  font-weight: 400;
  line-height: 1.2;
}

/* FOOTER */
.site-footer {
  position: relative;
  background: #000;
  color: #fff;
  padding: 6rem 10% 2rem;    /* suficiente espacio arriba para el logo overlay */
  overflow: visible;
}

/* Logo superpuesto */
.footer-logo-overlay {
  z-index: 2;
  margin-top: -140px;
  margin-right: 120px;
}
.footer-logo-overlay img {
  width: 250px;                   /* Triple del tamaño anterior (8rem → 24rem) */
  height: auto;
}

/* Contenido en columnas */
.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
}
.footer-column h3 {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #ffb71b;               /* títulos en amarillo */
  margin-bottom: 1rem;
}
.footer-column ul {
  list-style: none;
}
.footer-column ul li {
  margin-bottom: 0.5rem;
}
.footer-column ul li a {
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: 0.875rem;
  text-decoration: none;
}
.footer-column ul li a:hover {
  text-decoration: underline;
}

/* Línea final */
.footer-bottom {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem;
  color: #888;
  margin-top: 2rem;
}
.footer-bottom a {
  color: #fff;
  text-decoration: underline;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .site-footer {
    padding: 0%;
  }
  .footer-logo-overlay img {
    width: 200px;
  }
  .footer-logo-overlay {
    margin-top: 22px;
    margin-right: 0px;
    margin-left: 20%;
  }
  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ==== RESPONSIVE ==== */
@media (max-width: 768px) {
  /* Menú móvil */
  .site-header{
    position: absolute;
  }
  .burger {
    display: block;
  }
  .main-nav,
  .social-icons {
    display: none;
  }
  .mobile-menu.active {
    display: block;
    font-size: 14px;
    margin-right: 10%;
    margin-left: 4%;
    padding: 12px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
  .participar-text{
    top: 8vh;
  }
  .moto-mrx img{
    width: 54%;
  }
  .text-registrate{
    margin-left: 12%;
    font-size: 20px; 
}

.text-registrate span{
  font-size: 12px;
}
  .tyc-imagen{
   display: none;
  }
  .participar-text h1{
    font-size: 24px;
  }
  .participar-text-2{
    flex-direction: column;
  }
  .beneficios1{
  font-size: 28px;
}

.beneficios2{
  font-size: 14px;
}

.beneficios3{
  font-size: 26px;
}

.beneficios4{
  font-size: 12;
}

.beneficios5{
  padding: 7px;
  font-size: 14px;
  margin-left: 12vw;
  line-height: 4;
}
  /* Ajustes de hero */
  .hero {
    height: 22vh;
  }
  .hero-img{
    background-size: contain;
    width: 100%;
  }
  .hero h1 {
    font-size: 1.5rem;
  }

  /* Cajita blanca en móvil */
  .bg-box {
    width: 80%;
    top: 1.5rem;
  }

  .pastilla.img-form-lat{
    display: none;
  }

  .mordasa.img-form-lat{
    display: none
  }

  /* Formulario: un campo por línea */
  .row {
    flex-direction: column;
  }

  /* Reducir padding en secciones */
  .form-section,
  .mobile-menu nav {
    padding: 0 5%;
  }
  .frase-footer{
    flex-direction: column;
  }
  .frase-footer h2{
    font-size: 40px;
  }
}

/* Estilo para el pop-up de error */
.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 400px;
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    display: none; /* Ocultamos el pop-up por defecto */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

/* Estilo del contenido dentro del pop-up */
.popup-content {
    text-align: center;
}

/* Estilo del botón de cerrar */
.close-btn {
    background-color: #721c24;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.close-btn:hover {
    background-color: #f1b0b7;
}

/* Estilo del mensaje de error */
.error-message {
    font-size: 16px;
    margin-bottom: 10px;
}

.already-registered {
        margin-top: 16px;
        text-align: center;
      }
      .already-registered a {
        font-size: 20px;
        font-weight: bold;
        color: #000;
        text-decoration: none;
        transition: color 0.3s ease, transform 0.3s ease;
      }
      .already-registered a:hover {
        color: #0073e6;
        transform: translateY(-2px);
      }

      /* --- Overlay detrás del popup --- */
      .upload-popup-overlay {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
      }

      /* --- Popup container --- */
      .upload-popup {
        display: none;
        position: fixed;
        top: 50%; left: 50%;
        transform: translate(-50%, -50%);
        background: #fff;
        padding: 20px;
        width: 90%;
        max-width: 400px;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
      }
      .upload-popup .popup-header {
        text-align: right;
      }
      .upload-popup .close-btn {
        background: none;
        border: none;
        font-size: 24px;
        line-height: 1;
        cursor: pointer;
      }
      .upload-popup .field {
        margin-bottom: 12px;
      }
      .upload-popup .field label {
        display: block;
        margin-bottom: 4px;
      }
      .upload-popup .field input[type="text"],
      .upload-popup .field input[type="file"] {
        width: 100%;
        padding: 8px;
        box-sizing: border-box;
      }
      .upload-popup .btn-submit {
        background-color: #000;
        color: #fff;
        border: none;
        padding: 10px 16px;
        cursor: pointer;
        transition: background 0.3s ease;
      }
      .upload-popup .btn-submit:hover {
        background-color: #333;
      }
