/* Fondo y cuerpo principal */
body {
  font-family: 'Poppins', sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  margin: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), 
  url('../images/fondo_frio.png') no-repeat center center fixed;
  background-size: cover;
}

/* Header transparente */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: transparent;
  text-align: center;
  padding: 0.5em 0;
  z-index: 1000;
}

/* Logo adaptable */
.logo {
  width: 150px;  
  height: auto;
  transition: all 0.3s ease;
  margin-top: 2em;
}
/* Ajustar tamaño del logo para alturas menores */
@media (max-height: 740px) {
  .logo {
    width: 140px; /* Reduce el ancho */
    margin-top: 0.8em; /* Ajusta el margen superior */
  }
}

@media (max-height: 700px) {
  .logo {
    width: 80px; /* Reduce aún más el ancho */
    margin-top: 0.4em; /* Menor margen superior */
  }
}

@media (max-height: 600px) {
  .logo {
    width: 60px; /* Tamaño mínimo del logo */
    margin-top: 0.2em;
  }
}
@media (max-height: 550px) {
  .logo {
    width: 0px; /* Tamaño mínimo del logo */
    margin-top: 0.3em;
  }
}

/* Contenedor principal */
.container {
  background: rgba(201, 201, 201, 0.6); /* Mayor transparencia */
  border: 1px solid rgba(201, 201, 201, 0.7);
  border-radius: 8px;
  padding: 1.5em;
  width: 400px; 
  text-align: center;
  margin-top: 8em; 
  margin-bottom: 2em;
}

h1 {
  font-size: 1.4em;
  margin: 1em 0;
  color: #f7ffff;
  font-weight: bold;
}

/* Botones de opciones */
.option-group {
  display: flex;
  flex-direction: column;
  gap: 1em;
}

.option {
  padding: 0.75em 1.5em;
  font-size: 1.1em;
  font-weight: bold;
  color: white;
  background-color: #0c3273;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.option:hover {
  background-color: #0a285a;
  transform: scale(1.05);
}

/* Contenedor de seguimiento */
.tracking-container {
  background: rgba(201, 201, 201, 0.6); /* Mayor transparencia */
  border: 1px solid rgba(201, 201, 201, 0.7);
  border-radius: 8px;
  padding: 1em 1.5em;
  width: 400px; 
  text-align: center;
  margin-top: 3em;
  margin-bottom: 2em;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

  .tracking-container h2 {
    font-size: 0.8em;
    margin-bottom: 1em;
    color: #f7ffff;
  }

.tracking-form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5em;
}

.tracking-input {
  flex: 1;
  padding: 0.75em;
  font-size: 1em;
  border: 1px solid #CCCCCC;
  border-radius: 6px;
  transition: border-color 0.3s ease;
  text-transform: uppercase;
}

/* Estilo específico para el placeholder */
.tracking-input::placeholder {
  text-transform: none; /* Asegura que el placeholder mantenga su formato original */
}

.tracking-input:focus {
  outline: none;
  border-color: #0c3273;
}


.tracking-button {
  padding: 0.5em;
  font-size: 1em;
  color: white;
  background-color: #0c3273;
  border: none;
  border-radius: 6px;
  width: 40px;
  height: 40px;
  transition: background-color 0.3s ease;
}

.tracking-button::before {
  content: '\2192'; 
  font-size: 1.2em;
}

.tracking-button:hover {
  background-color: #0a285a;
}

/* Resultado del seguimiento */
.tracking-result {
  margin-top: 1em;
  padding: 1em;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  text-align: left;
  font-size: 0.9em;
  color: #333;
  word-wrap: break-word;
  display: none;
}

/* Icono de administración */
.admin-icon {
  margin-top: 2em;
  text-align: center;
}

.admin-link {
  color: white;
  text-decoration: none;
  font-size: 1.5em;
}

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background: rgba(255, 255, 255, 0.6); /* Más transparente */
  color: #333333;
  font-size: 0.7em;
  padding: 0.5em 1em;
  box-shadow: 0 -2px 4px rgba(0, 0, 0, 0.1);
}

/* Formulario */
.form-container {
  background: rgba(255, 255, 255, 0.85); /* Mayor transparencia */
  border: 1px solid rgba(224, 224, 224, 0.85);
  border-radius: 8px;
  padding: 2em 2.5em;
  width: 350px; 
  margin: 2em auto;
  text-align: left;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

form label {
  display: block;
  font-size: 1em;
  margin-bottom: 0.5em;
  color: #333333;
}

form input, form select, form textarea {
  width: 100%;
  padding: 0.75em 1em;
  margin-bottom: 1em;
  border: 1px solid #CCCCCC;
  border-radius: 6px;
  font-size: 1em;
}

form textarea {
  resize: vertical;
}

.form-buttons {
  display: flex;
  justify-content: space-between;
  gap: 1em;
}

form button {
  padding: 0.75em 1.5em;
  font-size: 1em;
  color: white;
  background-color: #0c3273;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

form button:hover {
  background-color: #0a285a;
}

/* Responsivo */
@media (max-width: 768px) {
  .logo {
    width: 120px; 
  }

  .container, .tracking-container, .form-container {
    width: 85%; 
    padding: 1.2em;
    margin-top: 2em;
  }

  h1 {
    font-size: 1.2em;
  }
  h2 {
    font-size: 0.5em;
  }
}

@media (max-width: 480px) {
  .logo {
    width: 90px;
  }

  .container, .tracking-container, .form-container {
    width: 90%;
    padding: 1em;
    margin-top: 2em;
  }

  h1 {
    font-size: 1em;
  }
  h2 {
    font-size: 0.5em;
  }
}