html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
  background: #f4f8fb;
  color: #1a2a40;
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
}

header {
  background: #153a5b;
  color: #fff;
  padding: 1rem 0;
  box-shadow: 0 2px 8px rgba(21, 58, 91, 0.1);
  width: 100%;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.navbar .logo {
  font-size: 2rem;
  font-weight: bold;
  letter-spacing: 2px;
  color: #4fc3f7;
}

.navbar nav a {
  color: #fff;
  text-decoration: none;
  margin: 0 1rem;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar nav a:hover {
  color: #4fc3f7;
}

.banner {
  background: linear-gradient(90deg, #1976d2 60%, #4fc3f7 100%);
  color: #fff;
  padding: 2.5rem 0 2rem 0;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 1px;
  box-shadow: 0 2px 8px rgba(21, 58, 91, 0.08);
}

.vuelos-table-section {
  background: #fff;
  margin: 2rem auto;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(21, 58, 91, 0.1);
  padding: 2rem;
}

.vuelos-table-section h2 {
  color: #1976d2;
  margin-bottom: 1rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.vuelos-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.vuelos-table th,
.vuelos-table td {
  padding: 0.75rem 1rem;
  text-align: left;
}

.vuelos-table th {
  background: #1976d2;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #4fc3f7;
}

.vuelos-table tr:nth-child(even) {
  background: #e3f2fd;
}

.vuelos-table tr:nth-child(odd) {
  background: #f4f8fb;
}

.vuelos-table td {
  color: #1a2a40;
  font-size: 1rem;
}

.quick-access {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin: 2.5rem auto 0 auto;
  max-width: 1000px;
}

.access-card {
  background: #1976d2;
  color: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(21, 58, 91, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 100px;
  padding: 0.8rem 0.5rem 0.8rem 0.5rem;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  cursor: pointer;
  text-align: center;
}

.access-card:hover {
  background: #4fc3f7;
  color: #153a5b;
  transform: translateY(-4px) scale(1.04);
  box-shadow: 0 6px 24px rgba(21, 58, 91, 0.18);
}

.access-icon {
  font-size: 1.5rem;
  margin-bottom: 0.7rem;
  display: block;
}

.access-link {
  color: inherit;
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: color 0.2s;
}

.access-card:hover .access-link {
  color: #153a5b;
}

.novedades-section {
  max-width: 1100px;
  margin: 3rem auto 2rem auto;
}

.novedades-section h2 {
  color: #1976d2;
  margin-bottom: 1.2rem;
  font-size: 1.3rem;
  font-weight: 700;
}

.novedades-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
}

.novedad-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(21, 58, 91, 0.1);
  overflow: hidden;
  width: 300px;
  transition: transform 0.2s, box-shadow 0.2s;
}

.novedad-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 24px rgba(21, 58, 91, 0.18);
}

.novedad-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.novedad-card .novedad-content {
  padding: 1.5rem;
}

.novedad-card .novedad-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1976d2;
  margin-bottom: 0.5rem;
}

.novedad-card .novedad-text {
  color: #666;
  font-size: 0.9rem;
}

.contactos-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.contactos-section {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(21, 58, 91, 0.1);
  padding: 2rem;
  margin-bottom: 2rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.contactos-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 32px rgba(21, 58, 91, 0.15);
}

.contactos-section h2 {
  color: #1976d2;
  margin-bottom: 1.5rem;
  font-size: 1.4rem;
  font-weight: 700;
  text-align: center;
  position: relative;
}

.contactos-section h2:after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1976d2 0%, #4fc3f7 100%);
  border-radius: 2px;
}

.contacto-info {
  text-align: center;
  padding: 1.5rem;
}

.contacto-info h3 {
  color: #1976d2;
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.contacto-info .numero {
  font-size: 2rem;
  font-weight: 700;
  color: #4fc3f7;
  margin: 0;
}

@media (max-width: 900px) {
  .quick-access,
  .novedades-cards {
    gap: 1rem;
  }

  .novedad-card {
    width: 280px;
  }
}

/* Estilos responsivos adicionales */
@media (max-width: 768px) {
  .banner {
    padding: 2rem 1rem;
    font-size: 1.2rem;
  }

  .banner strong {
    font-size: 2rem !important;
  }

  .vuelos-table-section {
    margin: 1rem;
    padding: 1rem;
  }

  .quick-access {
    margin: 1.5rem 1rem 0 1rem;
  }

  .access-card {
    width: 150px;
    height: 80px;
    padding: 0.5rem;
  }

  .access-link {
    font-size: 0.9rem;
  }

  .contactos-container {
    padding: 1rem;
  }

  .contactos-section {
    padding: 1.5rem;
  }

  .contactos-grid {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
    margin: 0 1rem !important;
  }

  .novedades-section {
    margin: 2rem 1rem 1rem 1rem;
  }

  .novedad-card {
    width: 100%;
    max-width: 350px;
  }

  .clima-iframe-container,
  .eda-iframe-container {
    height: 500px !important;
  }

  /* Mejoras para las tarjetas de acceso */
  .quick-access > div {
    justify-content: center;
  }

  .access-card {
    flex: 0 0 auto;
  }

  /* Mejoras para modales */
  .modal-dialog {
    margin: 1rem;
  }

  .modal-body {
    padding: 1.5rem !important;
  }

  .modal-header {
    padding: 1rem 1.5rem !important;
  }

  .modal-title {
    font-size: 1.3rem !important;
  }
}

@media (max-width: 576px) {
  .navbar {
    padding: 0 1rem;
  }

  .banner strong {
    font-size: 1.5rem !important;
  }

  .banner div {
    font-size: 1rem !important;
  }

  .access-card {
    width: 140px;
    height: 70px;
  }

  .access-link {
    font-size: 0.8rem;
  }

  .vuelos-table th,
  .vuelos-table td {
    padding: 0.5rem 0.5rem;
    font-size: 0.9rem;
  }

  .clima-iframe-container,
  .eda-iframe-container {
    height: 400px !important;
  }

  .modal-dialog {
    margin: 0.5rem;
  }

  .modal-body {
    padding: 1rem !important;
    font-size: 1rem !important;
  }

  .modal-header {
    padding: 1rem !important;
  }

  .modal-title {
    font-size: 1.2rem !important;
  }

  .contactos-grid {
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
    margin: 0 0.5rem !important;
  }

  .contacto-info {
    padding: 1rem;
  }

  .contacto-info h3 {
    font-size: 1rem;
  }

  .contacto-info .numero {
    font-size: 1.5rem;
  }

  /* Mejoras adicionales para móviles pequeños */
  .quick-access > div {
    gap: 0.5rem;
  }

  .access-card {
    width: 130px;
    height: 65px;
  }

  .access-link {
    font-size: 0.75rem;
  }

  .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
  }

  .btn-sm {
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
  }

  /* Mejoras para tablas en móviles */
  .table-responsive {
    font-size: 0.9rem;
  }

  .table th,
  .table td {
    padding: 0.5rem 0.25rem;
  }
}

.layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

footer {
  margin-top: auto;
  background: #153a5b;
  color: #fff;
  padding: 2rem 0;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

footer h5 {
  color: #4fc3f7;
  margin-bottom: 1rem;
  font-weight: 600;
}

footer p {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

footer a {
  color: #4fc3f7;
  text-decoration: none;
  transition: color 0.2s;
}

footer a:hover {
  color: #fff;
}

footer hr {
  border-color: #4fc3f7;
  margin: 1.5rem 0;
}

.noticias-sanluis-list {
  list-style: none;
  padding: 0;
}

.noticias-sanluis-list li {
  margin-bottom: 1rem;
}

.noticias-sanluis-list a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
}

.noticias-sanluis-list a:hover {
  color: #4fc3f7;
}
