* {
  box-sizing: border-box;
}
:root {
    --white: #fff;
    --black: #333;
}

body {
    height: 100%;
    background: #f0f0f0;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    overflow-x: hidden; 
    overflow-y: auto; 
}

.centrado-menu{
    display: flex;
    height: auto;
    width: 100%;
}



.logo p {
    margin: 0;
    line-height: 0.1;
}

.logo .l1 {
    margin-top: 5px;
    font-size: 23px;
    font-weight: bold;
    color: black;
}

.logo .l2 {
    font-size: 20px;
    color:black;
    margin-bottom: 5px;
}

.menu {
    display: flex;
    width: 100%;
    background: linear-gradient(135deg, #708238, #c0c781);
    padding: 15px 30px;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}


.menu-links {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.menu-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

.menu-links li a:hover {
    color: #ffd700;
}


.menu-toggle {
    display: none;
    cursor: pointer;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1100;
}

.menu-toggle span {
    position: absolute;
    height: 3px;
    width: 100%;
    background:white;
    border-radius: 2px;
    transition: 0.3s ease;
}

.menu-toggle span:nth-child(1) {
    top: 0;
}

.menu-toggle span:nth-child(2) {
    top: 11px;
}

.menu-toggle span:nth-child(3) {
    bottom: 0;
}


.menu-toggle.open span:nth-child(1) {
    transform: rotate(45deg);
    top: 11px;
}

.menu-toggle.open span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
    transform: rotate(-45deg);
    bottom: 11px;
}




.centrado {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh; 
    padding-top: 80px; 
    box-sizing: border-box;
}

 .contenedor {
      background: #fff;
      padding: 30px;
      border: 2px solid black;
      border-radius: 12px;
      box-shadow: 0px 0px 20px black;
      width: 100%;
      max-width: 600px;
    }

    .encabezado {
      text-align: center;
      margin-bottom: 20px;
    }

    form {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 15px;
    }

    label {
      display: block;
      font-weight: bold;
      margin-bottom: 5px;
    }

    input {
      width: 100%;
      padding: 10px;
      border-radius: 8px;
      border: 1px solid #ccc;
    }

    .campo-password {
      grid-column: span 2;
      position: relative;
    }

    .campo-password input {
      width: 100%;
      padding-right: 40px;
    }

    .campo-password i {
      position: absolute;
      right: 10px;
      top: 34px;
      cursor: pointer;
      color: #555;
    }

    .capcha-container {
      grid-column: span 2;
      display: flex;
      justify-content: center;
      margin: 15px 0;
    }


form button {
  grid-column: span 2;
  padding: 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.3s ease;
}

form button:hover {
  background: #555;
}

p{
  font-weight: bold ;
}

.error {
    color: red;
    font-weight: bold;
    text-align: center;
    margin-top: 80px; 
    position: relative; 
    z-index: 2000;      
    margin-bottom:100px;
}


.error.oculto{
    opacity:0;
    visibility: hidden;
    display: none;
}


@media (max-width: 600px) {
  form {
    grid-template-columns: 1fr;
  }
  .campo-password,
  .capcha-container,
  form button {
    grid-column: span 1;
  }
}


form button:hover {
  background: #555;
}

button {
    cursor: pointer;
    background: var(--black);
    color: var(--white);
    border: none;
    padding: 12px;
    border-radius: 5px;
    font-size: 16px;
    transition: background 0.3s ease;
}

button:hover {
    background: #555;
}

.toggle-link {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    user-select: none;
}

.toggle-link span {
    color: var(--black);
    font-weight: bold;
    text-decoration: underline;
}


@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

}



@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

}


@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


@media (max-width: 768px) {

body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .centrado {
    padding-top: 140px; 
    align-items: flex-start; 
  }

  .contenedor {
    margin-left: 20px;
    margin-right: 20px;
  }
}


@media (max-width: 468px) {
  .menu-toggle {
    display: block;
  }

  .menu-links {
    flex-direction: column;
    position: absolute;
    top: 46px;
    left: 0;
    right: 0;
    width: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 1), rgba(1, 6, 53, 0.95));
    display: none;
    text-align: center;
    padding: 20px 0;
  }

  .menu-links.show {
    display: flex;
    animation: fadeIn 0.3s ease-in-out;
  }

}