header{
    height: 60px;
    width: 100%;
    background-color: black;
    color: white;
    text-decoration: none;
    display:flex;
    align-items: center;
    position: fixed;
    top: 0;   
    z-index: 100;
  }
  
  header a{
    margin: 20px;
  }
  body,html{
    margin: 0;
    padding: 0;
    background-color: rgba(0, 0, 0, 0.629);
    overflow-x: hidden;
    width: 100%;
  }
  .containerlogo{
    width: 180px;
    max-width: 800px;
    margin-right: auto;
  }
  .containermenu{
    display: flex;
    font-family: "FF Mark W05",Arial,sans-serif;
    font-size: 14px;
  }
  .logo1{
    width: 126px;
    height: 43px;
    margin-right: 100%;
  }
  .itemmenu{
    text-decoration: none;
    color: white;
    margin-left: 25px;
    display: flex;
    flex-direction: column;
    position: relative;
  }
  .tmenu{
    text-decoration: none;
    color: white;
  }
  .tmenuretro{
    text-decoration: none;
    color: rgb(255, 255, 255);
  }
  .lovemenu{
    position: absolute;
    height: 24.6px;
    width: 65.4px;
    transform: translate(65px,-2px);
    z-index: -1;
  }
  .linearetro{
    background: rgb(255, 0, 183);
    height: 3px;
    transform: translateY(-15px);
    width: 0;
    transition: 0.3s; 
  }
  .itemmenu:hover .linearetro{
    width: 100%;
  }
  .linea{
    background: #900;
    height: 3px;
    transform: translateY(-15px);
    width: 0;
    transition: 0.3s;
  }
  
  .itemmenu:hover .linea{
    width: 100%;
  }
  .menu_responsive{
    background-color: rgba(0, 0, 0, 0.836);
    color: black;
    flex-direction: column;
    z-index: 1000;
    position: fixed;
    height: 100%;
    width: 100%;
    display: none;
    transition: all 0.5s;
    backdrop-filter: blur(5px);
  }
  .itemmenu_re{
    text-decoration: none;
    color: rgb(255, 255, 255);
    margin-left: 25px;
    font-size: 32px;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    margin-top: 30px;
  }
  .contenedor_responsive{
    display: flex;
    flex-direction: column;
    position: absolute;
    transform: translateY(25%);
  }
  
  .containermenu ul{
    padding: 0;
    display: flex;
  }
  .botonresponsive{
    position: absolute;
    height: 30px;
    width: 30px;
    right: 0;
    margin: 20px;
  }
  
  .logomenu{
    height: 35px;
  }
  
  #botonmenu{
    display: none;
  }
  
  @media (max-width: 1090px){
    #botonmenu{
        display: flex;
    }
    .containermenu ul{
        display: none;
    }
  }
  
  .botonresponsive{
    position: absolute;
    height: 30px;
    width: 30px;
    right: 0;
    margin: 20px;
  }

  .registrocontainer1{
    width: 100%;
    background-color: black;
    display: flex;
    justify-content: top;
    align-items: center;
    background-image: url(/Imagenes/registroi/registrafondo2.webp);
    background-size: cover; 
    background-position: center; 
    background-repeat: no-repeat;
    flex-direction: column;
  }
.tituloregistro{
  color: white;
  margin-top: 13px;
  margin-bottom: 60px;
  font-size: 38px;
}
  form{
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    backdrop-filter: blur(10px);
    background-color: #000000b0;
    margin-top: 80px;
    padding: 3% 55px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    text-align: center;
    width: 80%;
    height: 670px;
    margin-bottom: 20px;
  }
  .inputcontainer{
    display: flex;
    flex-direction: column;
    text-align: left;
  }
  .filaform1{
    display: flex;
    justify-content: space-between;
  }
  label{
    color: rgb(255, 255, 255);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
  }
  #email {
    margin-left: 14px;
  }
  #year {
    margin-left: 22px;
  }
  #marca {
    margin-left: 14px;
  }
  #message {
    margin-top: 15px;
  }
  
  input, textarea{
    padding: 8px 8px;
    border-radius: 5px;
    margin-bottom: 15px;
    background-color: rgba(189, 195, 197, 0.207);
    border: 2px solid rgb(213, 207, 207);
    outline: none;
    color:white;
  }
  input::placeholder, textarea::placeholder{
    color: rgb(156, 156, 156);
  }
  .form-txt a{
    color: rgb(255, 255, 255);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    padding:  7px;
  }
  .btn{
    margin-top: 18px;
    cursor: pointer;
    background-color: rgb(196, 9, 9);
    color: white;
    font-size: 16px;
    border-radius: 8px;
    border-color: rgb(196, 9, 9);
  }
  .btn:hover{
    transition: 0.5s;
    background-color: rgb(139, 0, 0);
  }
  .adjuntarimg label {
    display: block;
    margin: 20px 0 10px;
    font-weight: bold;
  }
  .adjuntarimg input[type="file"] {
    display: none;
  }
  .adjuntarimg button {
    padding: 10px 15px;
    background-color: rgb(196, 9, 9);
    color: white;
    border-radius: 8px;
    border-color: rgb(196, 9, 9);
    cursor: pointer;
  }
  .adjuntarimg button:hover {
    background-color: rgb(139, 0, 0);
  }
  .preview {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 10px;
  }
  .preview img {
    max-width: 100px;
    margin: 5px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  footer{
    background-color: rgb(0, 0, 0);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }
  .containerlogos a{
    text-decoration: none;
  }
  .containerlogos{
    position: absolute;
  }
  .logosrs{
    width: 26px;
    height: 30px;
  padding: 4px;
  text-decoration: none;
  }
  .lastcontainer{
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  .contacto{
    color: rgb(213, 213, 213);
    margin-right: 15px;
  }
  .copyright{
    color: rgb(213, 213, 213);
    margin-left: 15px;
  }

  @media(max-width: 630px){
    
    .inputcontainer{
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    .filaform1{
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
    }
    .divinput{
      width: 100%;
      display: flex;
      flex-direction: column;
    }
    form{
      height: 1470px;
      justify-content: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    #email {
      margin-left: 0px;
    }
    #year {
      margin-left: 0px;
    }
    #marca {
      margin-left: 0px;
    }
    #message {
      margin-top: 0px;
    }
    footer {
      background-color: rgb(0, 0, 0);
      display: flex;
      justify-content: normal;
      align-items: normal;
      flex-direction: column;
      height: auto;
    }
        .lastcontainer {
          display: flex;
          width: 100%;
          justify-content: space-between;
          position: relative;
          flex-direction: column;
          align-items: start;
        }
        .containerlogos{
          position: absolute;
          right: 37px;
          margin-top: 48px;
        }
        .copyright {
          color: rgb(213, 213, 213);
          margin-left: 35px;
        }
        .contacto {
          color: rgb(213, 213, 213);
          margin-right: 0;
          transform: translateY(-10%);
          margin-left: 38px;
        }
  }

/* Formulario responsive: estas reglas sustituyen las alturas y desplazamientos fijos legacy. */
*, *::before, *::after {
  box-sizing: border-box;
}

.registrocontainer1 {
  min-height: calc(100svh - 60px);
  padding: 88px 16px 32px;
  justify-content: flex-start;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.14)),
    url(/Imagenes/registroi/registrafondo2.webp);
}

.registrocontainer1 form {
  width: min(100%, 1120px);
  height: auto;
  margin: 0;
  padding: clamp(24px, 4vw, 48px);
}

.tituloregistro {
  margin: 0 0 clamp(28px, 5vw, 52px);
  font-size: clamp(25px, 4vw, 38px);
  line-height: 1.15;
}

.inputcontainer {
  width: 100%;
  gap: 18px;
}

.filaform1 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.divinput {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.divinput input,
.inputcontainer textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  margin: 0;
  font: inherit;
}

.inputcontainer textarea {
  min-height: 130px;
  resize: vertical;
}

#email, #year, #marca, #message {
  margin-left: 0;
  margin-top: 0;
}

.adjuntarimg label {
  margin-top: 4px;
}

.adjuntarimg button,
.btn {
  min-height: 46px;
  padding: 11px 20px;
  border: 1px solid rgb(196, 9, 9);
  touch-action: manipulation;
}

.preview {
  gap: 8px;
  margin: 14px 0 0;
}

.preview img {
  width: 96px !important;
  height: 96px;
  margin: 0 !important;
  object-fit: cover;
}

.form-txt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
}

.form-txt a {
  padding: 0;
  line-height: 1.5;
}

.btn {
  width: min(100%, 260px);
  align-self: center;
  margin: 4px 0 0;
}

@media (max-width: 760px) {
  .registrocontainer1 {
    min-height: 100svh;
    padding: 76px 12px 20px;
    background-position: 60% center;
  }

  .registrocontainer1 form {
    width: 100%;
    height: auto;
    padding: 24px 18px;
    border-radius: 10px;
    align-items: stretch;
  }

  .filaform1 {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .tituloregistro {
    margin-bottom: 28px;
  }

  label {
    font-size: 15px;
  }

  .divinput input,
  .inputcontainer textarea,
  .adjuntarimg button,
  .btn {
    font-size: 16px;
  }

  .adjuntarimg button,
  .btn {
    width: 100%;
  }

  .preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }

  .preview img {
    width: 100% !important;
    height: auto;
    aspect-ratio: 1;
  }

  .form-txt {
    flex-direction: column;
  }
}

@media (max-width: 380px) {
  .registrocontainer1 {
    padding-inline: 8px;
  }

  .registrocontainer1 form {
    padding-inline: 14px;
  }

  .itemmenu_re {
    margin-left: 18px;
    font-size: 25px;
  }
}
