/* ========== RESET GENERAL ========== */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #ffffff, #ffffff);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

/* ========== FORM CONTAINER ========== */
.form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  /* espacio debajo del header */
  padding: 0 20px 50px;
  width: 100%;
  box-sizing: border-box;
}

.form-container h5 {
  color: #000000;
  font-size: 28px;
  margin-bottom: 20px;
  animation: fadeInDown 0.8s ease-in-out;
  text-align: center;
}

/* ========== FORMULARIO ========== */
form {
  background: #ffffff;
  padding: 30px 35px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
  animation: fadeInUp 0.9s ease-in-out;
  transition: transform 0.3s ease;
}

form:hover {
  transform: translateY(-5px);
}

input,
select {
  width: 100%;
  padding: 12px 15px;
  margin: 10px 0 20px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
}

input:focus,
select:focus {
  border-color: #007bff;
  box-shadow: 0 0 6px rgba(0, 123, 255, 0.3);
  outline: none;
}

/* Botón */
button {
  background: linear-gradient(to right, #007bff, #0056b3);
  color: #fff;
  border: none;
  padding: 14px;
  width: 100%;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  transition: background 0.4s ease, transform 0.2s ease;
}

button:hover {
  background: linear-gradient(to right, #0056b3, #003d80);
  transform: scale(1.02);
}

/* Mensajes */
.success,
.error {
  text-align: center;
  font-weight: bold;
  padding: 12px;
  margin-bottom: 20px;
  border-radius: 8px;
  animation: fadeIn 0.6s ease-in-out;
}

.success {
  background-color: #d4edda;
  color: #155724;
}

.error {
  background-color: #f8d7da;
  color: #721c24;
}

/* ========== HEADER ========== */
header {
  background-image: url("a3.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  color: white;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: relative;
  padding: 600px 0 0;
}

header h1 {
  background-color: rgba(0, 0, 0, 0);
  padding: 5px;
  display: inline-block;
  border-radius: 100px;
  position: absolute;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  font-size: 5.5em;
  color: rgb(58, 58, 59);
  font-family: "Times New Roman", serif;
  font-weight: 700;
}

/* ========== HEADER CONTENT ========== */
.header-content img {
  max-width: 80px;
  height: auto;
  margin-left: 20px;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  color: #ffffff;
  z-index: 1;
  margin-top: -170px;
}

.header-content h1,
.header-content h2,
.header-content h3 {
  margin: 0;
  animation: fadeIn 2s ease-in-out;
}

.header-title {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.header-title h0 {
  font-size: 2rem;
  font-weight: bold;
  padding-top: 30px;
  color: blue;
}

.header-wrapper {
  position: relative;
  width: 100%;
}

/* ========== CURVAS DEL HEADER ========== */
.curves {
  position: relative;
  width: 100%;
  height: 200px;
  background: #0078d7;
  overflow: hidden;
  z-index: -3;
}

.curve,
.curve2,
.curve3 {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: -3;
}

.curve {
  height: 80px;
  background: #0056a0;
  border-top-left-radius: 90% 30px;
  border-top-right-radius: 90% 40px;
}

.curve2 {
  height: 65px;
  background: red;
  border-top-left-radius: 90% 20px;
  border-top-right-radius: 90% 30px;
}

.curve3 {
  height: 55px;
  background: white;
  border-top-left-radius: 50% 20px;
  border-top-right-radius: 50% 20px;
}

/* ========== ANIMACIONES ========== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* ========== RESPONSIVE ========== */
@media screen and (max-width: 600px) {
  form {
    padding: 25px 20px;
    margin: 20px;
  }

  .form-container h5 {
    font-size: 22px;
  }

  .header-content {
    flex-direction: column;
  }

  header h1 {
    font-size: 2.5em;
    bottom: 50px;
  }
}

footer {
  background-color: #0078d7;
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
  color: white;
  width: 100%;
  height: 90px;
}

.social-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 15px;
}

.social-item {
  text-align: center;
  margin: 0;
}

.social-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 0;
}

.social-name {
  font-size: 12px;
  margin: 2px 0;
}

.social-image img {
  width: 40px;
  height: 40px;
  margin: 0;
}

nav {
  background-color: #343a40;
  color: white;
  padding: 15px 0;
  text-align: center;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav li {
  display: inline;
  margin: 0 20px;
}

nav a {
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

nav a:hover {
  background-color: #5a6268;
}

/* ====== DISEÑO RESPONSIVO DEL NAV EN MÓVIL ====== */
/* Nav oculto en móvil inicialmente */
body.mobile nav {
  display: none;
  /* Otros estilos que ya tienes */
}

/* Cuando tenga clase 'show', se muestra */
body.mobile nav.show {
  display: block;
  /* Mantén estilos móviles que pasamos antes */
  margin-top: 50px;
  padding: 20px;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border-radius: 10px;
}

body.mobile nav ul {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

body.mobile nav li {
  display: block;
  margin: 0;
}

body.mobile nav a {
  display: block;
  background-color: #ffffff10;
  padding: 12px 18px;
  border-radius: 8px;
  color: #fff;
  font-weight: 500;
  font-size: 18px;
  transition: all 0.3s ease;
}

body.mobile nav a:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateX(5px);
}

body.mobile .form-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 110px;
  padding: 0 60px 50px;
  width: 100%;
  box-sizing: border-box;
}

body.mobile .form-container h5 {
  color: #000000;
  font-size: 68px;
  margin-bottom: 30px;
  animation: fadeInDown 0.8s ease-in-out;
  text-align: center;
}

body.mobile {
  padding-top: 1px;
}

#menuToggle {
  transition: background-color 0.3s ease;
}

#menuToggle:hover {
  background-color: #0056b3;
}


input[name="fecha"] {
  width: 100%;
  max-width: 300px;
  padding: 12px 18px;
  font-size: 1rem;
  border: 2px solid #007bff;
  /* azul vivo */
  border-radius: 12px;
  background-color: #f0f8ff;
  /* azul muy claro */
  color: #004085;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 123, 255, 0.1);
  cursor: pointer;
  font-weight: 600;
}

input[name="fecha"]:focus {
  outline: none;
  border-color: #0056b3;
  box-shadow: 0 0 10px #0056b3aa;
  background-color: #e0f0ff;
}

.flatpickr-calendar {
  border-radius: 15px;
  border: 2px solid #007bff;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  box-shadow: 0 8px 24px rgba(0, 123, 255, 0.25);
}

.flatpickr-day:hover {
  background: #007bff;
  color: white;
  border-radius: 50%;
  cursor: pointer;
}

.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
  color: #bbb;
  background: transparent;
  cursor: not-allowed;
  opacity: 0.6;
}