body, html {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f7f7f7;
  color: #333;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  flex-wrap: wrap; /* Permite que baje a otra línea en pantallas pequeñas */
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem clamp(1rem, 4vw, 1.5rem);
  height: auto; /* en móvil crecerá automáticamente */
  background: #1f2225;
  color: white;
  z-index: 1000;
  box-sizing: border-box;
}

/* Logo */
.logo img {
  height: 50px;
  max-width: 100%;
}

/* Slogan */
.slogan {
  text-align: center;
  color: #55d3f7;
  flex: 1 1 100%;
  order: 2; /* baja en pantallas pequeñas */
}
.slogan h1 {
  font-size: 18px;
  font-family: 'Orbitron', sans-serif;
  font-weight: bold;
  color: #55d3f7;
  margin: 0;
}
.slogan p {
  font-size: 14px;
  font-family: 'Orbitron', sans-serif;
  color: white;
  margin: 5px 0 0 0;
}

/* Contenedor animado */
.container1 {
  animation: fadeSlideIn 1.2s ease-out both;
  margin: 110px auto;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #e6f0ff, #f9fbff);
  padding: 30px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.1);
  max-width: 1500px; /* limita el ancho máximo */
  width: 90%; /* ocupa el 90% del ancho de la pantalla */
}

/* Animación */
@keyframes fadeSlideIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Formulario */
form {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

input,
select,
textarea {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 20px;
  display: block;
  box-sizing: border-box;
}

input[type="file"] {
  padding: 5px;
}

textarea {
  resize: vertical;
  height: 100px;
}

/* Botones */
button {
  background-color: #007BFF;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
}
button:hover {
  background-color: #0056b3;
}

/* Etiquetas */
label {
  font-size: 1rem;
  font-weight: bold;
}
label.required::after {
  content: " *";
  color: red;
  margin-left: 3px;
}

/* Secciones */
.form-section {
  border-bottom: 2px solid #ddd;
  padding-bottom: 20px;
}
.form-section:nth-of-type(2) {
  margin-top: -20px;
}

.btn-container {
  text-align: right;
}

/* Encabezados */
h1 {
  text-align: center;
  color: #4A4A4A;
}
h3 {
  margin-bottom: 10px;
  color: #3a3a3a;
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.4);
}
.modal-content {
  background-color: white;
  margin: 15% auto;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  position: relative;
}
.close {
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  position: absolute;
  top: 10px;
  right: 20px;
  cursor: pointer;
}
.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

/* Redes sociales */
.social-links {
  list-style-type: none;
  padding: 0;
}
.social-links li {
  margin: 10px 0;
}
.social-links a {
  text-decoration: none;
  color: black;
  font-size: 18px;
}
.social-links a:hover {
  text-decoration: underline;
}

/* Footer */
footer {
  background-color: #1f2225;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
}

footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer p {
  margin: 5px 0;
  font-size: 14px;
}

footer nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}


footer nav a {
  color: #ccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}



/* Responsive para el header */
@media (min-width: 769px) {
  header {
    flex-wrap: nowrap;
    height: 80px;
  }
  .slogan {
    flex: 1;
    order: 0;
  }
}

@media (max-width: 768px) {
  header {
    justify-content: center;
    text-align: center;
    padding: 10px;
  }
  .logo {
    flex: 1 1 100%;
    text-align: center;
    margin-bottom: 10px;
  }
  .slogan {
    order: 2;
    flex: 1 1 100%;
    margin-bottom: 10px;
  }
}

/* Responsive para el formulario */
@media (max-width: 768px) {
  .container1 {
    width: 80%;
    margin-top: 160px;
  }
}

@media (max-width: 480px) {
  .container1 {
    width: 80%;
    margin-top: 160px;
  }
}

/* Responsive para el footer */ 
@media (max-width: 768px) {
  .container {
    width: 100%;
  }
}

