/* Paleta de colores */
:root {
  --color-primary:   #005ea5; /* Azul intenso */
  --color-secondary: #e63946; /* Rojo */
  --color-accent:    #ffb703; /* Amarillo/naranja para llamados */
  --color-bg:        #f8f9fa; /* Fondo claro */
  --color-text:      #343a40; /* Texto principal */
  --color-muted:     #6c757d; /* Texto secundario */
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Cuerpo */
body {
  font-family: amino, museo-sans, sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

/* Contenedor central para header, main y footer */
.container {
  max-width: 1200px;       /* ancho máximo del contenido */
  margin: 0 auto;          /* centra horizontalmente */
  padding: 0 1rem;         /* espacio interno a los lados */
}

/* Asegúrate de que header y footer no queden a pantalla completa */
.site-header,
.site-footer {
  width: 100%;
  box-sizing: border-box;
}

/* Header */
.site-header {
  background-color: #ffffff;       /* Blanco */
  color: var(--color-text);        /* Texto oscuro para contraste */
  padding: 1rem 0rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  max-height: 60px;                /* Aumenta altura si lo requieres */   
}

.header-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Navegación */
.site-navigation ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  padding: 0;
  margin: 0;
}

.site-navigation a {
  color: var(--color-text);        /* Links en oscuro */
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
}

.site-navigation a:hover {
  color: var(--color-primary);     /* Azul al pasar el cursor */
}

/* Secciones */
main {
  padding: 2rem;
}

/* Títulos de secciones */
h2 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* Botones (ejemplo de uso de secondary / accent) */
.button {
  display: inline-block;
  padding: 0.5rem 1rem;
  background-color: var(--color-secondary);
  color: white;
  text-decoration: none;
  border-radius: 4px;
}

.button:hover {
  background-color: var(--color-accent);
}

/* Links */
a {
  color: var(--color-primary);
}

a:hover {
  color: var(--color-secondary);
}

/* ===== Pre-footer ===== */
.pre-footer {
  background-color: #f1f1f1;
  padding: 2rem 0;
}

.pre-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.pre-col h3 {
  margin-bottom: 0.75rem;
  color: var(--color-primary);
  font-size: 1.1rem;
}

.pre-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pre-col ul li {
  margin-bottom: 0.5rem;
}

.pre-col ul li a {
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.95rem;
}

.pre-col ul li a:hover {
  color: var(--color-primary);
}

/* Newsletter */
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.newsletter-form input[type="email"] {
  padding: 0.5rem;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
}

.newsletter-form .button {
  align-self: start;
  padding: 0.5rem 1rem;
  background-color: var(--color-secondary);
  color: white;
}

/* Social icons */
.social-icons {
  display: flex;
  gap: 0.75rem;
}

.social-icons img {
  width: 24px;
  height: 24px;
}

/* ===== Footer principal ===== */
.site-footer {
  background-color: #ffffff !important; /* Fondo blanco */
  color: var(--color-text) !important;   /* Texto oscuro para contraste */
  padding: 2rem 0;
}

/* Ajustar color de enlaces en footer */
.site-footer a {
  color: var(--color-primary) !important;
}

.site-footer a:hover {
  color: var(--color-secondary) !important;
}

/* =====================
   Iconos de pagos
   ===================== */
.footer-payments img {
  max-height: 60px;    /* Aumenta altura para alinear con logo */
  margin-right: 0.75rem;
  vertical-align: middle;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.footer-branding,
.footer-payments,
.footer-contact {
  flex: 1 1 200px;
}

.footer-logo {
  max-height: 50px;
  margin-bottom: 0.5rem;
}

.footer-payments img {
  max-height: 30px;
  margin-right: 0.5rem;
}

.footer-contact a {
  color: white;
  text-decoration: underline;
}

.footer-contact a:hover {
  color: var(--color-accent);
}

.iframe-container { 
  aspect-ratio: 16/9;
  overflow: hidden; 
}

.iframe-container iframe { 
  border: none; 
}

/* Reducir espacio tras el iframe */
.iframe-section {
  margin-bottom: 0;    /* elimina margen inferior */
  padding-bottom: 0;   /* elimina relleno inferior */
}

/* ===== Estilo de cada tarjeta ===== */

.cities-highlight {
  margin-top: 1.5rem;  /* un poco de espacio, ajústalo a tu gusto */
}

.cities-highlight h2 {
  margin-top: 0;
  font-family: amino, museo-sans, sans-serif;
  margin-bottom: 1rem; /* controla aquí el espacio bajo el título */
}

.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin: 0 auto;
  max-width: 1200px;
  padding: 1rem 0;
}

.city-card {
  display: block;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  text-decoration: none;
  color: var(--color-text);
  transition: transform .2s, box-shadow .2s;
}
.city-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Imagen de la tarjeta */
.city-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

/* Pie de tarjeta con nombre */
.city-card h3 {
  margin: 0.75rem;
  font-size: 1.1rem;
  text-align: center;
  color: var(--color-primary);
}

/* Listado de empleos en grid de tarjetas */
.jobs-listing h1 {
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Reutilizamos .job-card y .job-card-inner de index */
.job-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: var(--color-text);
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
  display: block;
}

.job-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.job-card-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.job-card-inner h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--color-primary);
}

.job-date {
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--color-muted);
}

.job-desc {
  flex-grow: 1;
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.4;
}

.job-link {
  font-weight: bold;
  color: var(--color-secondary);
  align-self: flex-end;
  transition: color .2s;
}

.job-link:hover {
  color: var(--color-accent);
}

/* Detalle de empleo */
.job-detail {
  margin: 2rem 0;
}

.job-detail h1 {
  color: var(--color-primary);
}

.job-detail .post-date {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.job-detail .post-content {
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* ===== Contact Page ===== */
.contact-page {
  max-width: 600px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.contact-form-section h1 {
  margin-bottom: 1rem;
  color: var(--color-primary);
}

.form-errors, .form-success {
  margin-bottom: 1rem;
  padding: 0.75rem;
  border-radius: 4px;
}
.form-errors {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
}

.form-errors p {
  color: #721c24;
  padding: 0.75rem 1rem;
  margin: 0;
  font-size: 0.95rem;
}

.form-success {
  background-color: #d4edda;
  color: #155724;
}

.contact-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  font-size: 1rem;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.contact-form .button {
  margin-top: 1.5rem;
}

/* Contact details */
.contact-details {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-muted);
}

.contact-details h2 {
  margin-bottom: 0.5rem;
  color: var(--color-primary);
}

.contact-details a {
  color: var(--color-secondary);
  text-decoration: none;
}

.contact-details a:hover {
  text-decoration: underline;
}

/* Espacio para el CAPTCHA */
.g-recaptcha {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

/* ===== About Page ===== */
.about-page {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.about-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.about-hero .lead {
  font-size: 1.15rem;
  color: var(--color-text);
}

.grid-2cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.box {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.about-values ul {
  list-style: disc inside;
  margin-bottom: 2rem;
}

.about-values li {
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.about-team {
  margin-bottom: 2rem;
}

.about-team p {
  line-height: 1.6;
}

/* ===== Equipo – About Page ===== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-card {
  background: white;
  border-radius: 8px;
  text-align: center;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform .2s, box-shadow .2s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.team-card img {
  width: 100%;
  height: 0;
  padding-bottom: 100%; /* cuadrado */
  object-fit: cover;
  border-radius: 50%;
  display: block;
  margin: 0 auto 0.75rem;
}

.team-card h3 {
  margin: 0.5rem 0 0.25rem;
  font-size: 1rem;
  color: var(--color-primary);
}

.team-card .role {
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-muted);
}

/* ===== Blog – Listado ===== */
.blog-listing {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.post-card {
  background: white;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  transition: transform .2s, box-shadow .2s;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.post-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
  color: var(--color-primary);
}

.post-date {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 0.75rem;
}

.post-excerpt {
  flex-grow: 1;
  margin-bottom: 1rem;
  line-height: 1.5;
  color: var(--color-text);
}

/* ===== Blog – Detalle ===== */
.blog-post {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.blog-post .post-date {
  font-size: 0.9rem;
  color: var(--color-muted);
  margin-bottom: 1rem;
}

.blog-post .post-content {
  line-height: 1.6;
  margin-bottom: 2rem;
}

/* Estilos para la página de privacidad */
.privacy-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
  color: var(--color-text);
}

.privacy-page h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.privacy-page h2 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.privacy-page p,
.privacy-page ul {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.privacy-page ul {
  list-style: disc inside;
}

.privacy-page a {
  color: var(--color-secondary);
  text-decoration: none;
}

.privacy-page a:hover {
  text-decoration: underline;
}

/* ===== Página de Derechos del Pasajero ===== */
.passenger-rights-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.passenger-rights-page h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.passenger-rights-page h2 {
  color: var(--color-primary);
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.passenger-rights-page p,
.passenger-rights-page ul {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.passenger-rights-page ul {
  list-style: disc inside;
}

.passenger-rights-page a {
  color: var(--color-secondary);
  text-decoration: none;
}

.passenger-rights-page a:hover {
  text-decoration: underline;
}

/* ===== Página de Política de Equipaje ===== */
.baggage-policy-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.baggage-policy-page h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.baggage-section {
  margin-bottom: 1.5rem;
}

.baggage-section h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.baggage-section p,
.baggage-section ul {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.baggage-section ul {
  list-style: disc inside;
}

.baggage-section a {
  color: var(--color-secondary);
  text-decoration: none;
}

.baggage-section a:hover {
  text-decoration: underline;
}/* ===== Página de Condiciones de Viaje ===== */
.conditions-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.conditions-page h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.conditions-section {
  margin-bottom: 1.5rem;
}

.conditions-section h2 {
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.conditions-section p,
.conditions-section ul {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.conditions-section ul {
  list-style: disc inside;
}

.conditions-section a {
  color: var(--color-secondary);
  text-decoration: none;
}

.conditions-section a:hover {
  text-decoration: underline;
}

/* ===== Página de Contratación de Buses ===== */
.charter-page {
  max-width: 800px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.charter-page h1 {
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.charter-section {
  margin-bottom: 1.5rem;
}

.charter-section h2 {
  color: var(--color-primary);
  margin-bottom: 0.75rem;
}

.charter-section p,
.charter-section ol,
.charter-section ul {
  margin-bottom: 1rem;
  line-height: 1.6;
}

.charter-section ol {
  padding-left: 1.25rem;
}

.charter-section ul {
  list-style: disc inside;
}

.charter-form label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

.charter-form input,
.charter-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  border: 1px solid var(--color-muted);
  border-radius: 4px;
  font-size: 1rem;
}

.charter-form input:focus,
.charter-form textarea:focus {
  outline: none;
  border-color: var(--color-primary);
}

.charter-form .button {
  margin-top: 1.5rem;
}

/* Alternar fondo entre secciones */
.container > section:nth-of-type(odd) {
  background-color: #ffffff;  /* blanco */
}

.container > section:nth-of-type(even) {
  background-color: #f8f9fa;  /* gris muy suave */
}

/* Un poco de padding para separar visualmente */
.container > section {
  padding: 1rem 1rem;
}

/* About Page Sections */
.about-hero .lead {
  font-size: 1.15rem;
  margin-top: 0.5rem;
}

/* Historia */
.timeline {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 2rem;
}
.timeline li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
.timeline li:before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.4em;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 50%;
}

/* Flota */
.about-fleet ul {
  list-style: disc inside;
  margin-top: 0.5rem;
}

/* Servicios */
.about-services .grid-3cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 1rem 0 2rem;
}

/* Misión/Visión */
.about-mv .grid-2cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Valores */
.about-values ul {
  list-style: disc inside;
  margin-top: 0.5rem;
}

/* Alternar fondo a pantalla completa para cada sección dentro de <main> */
main > section:nth-of-type(odd) {
  background-color: #ffffff;
}

main > section:nth-of-type(even) {
  background-color: #f8f9fa;
}

/* Espaciado vertical uniforme */
main > section {
  padding: 2rem 0;
}

/* El contenedor interno se encarga de centrar y limitar ancho */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* ===== City Page ===== */
.city-hero {
  padding: 2rem 0;
}

.city-hero .container h1 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
}

.city-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.city-hero-grid img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.city-description {
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
  color: var(--color-text);
}

/* Dos columnas en pantallas medias y grandes */
@media (min-width: 768px) {
  .city-hero-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .city-description {
    text-align: left;
  }
}

/* Section de highlights */
.city-highlights {
  padding: 2rem 0;
  background-color: #f8f9fa;
}

.city-highlights .container h2 {
  text-align: center;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.highlights-list {
  max-width: 600px;
  margin: 0.5rem auto 0;
  list-style: disc inside;
  line-height: 1.6;
  color: var(--color-text);
}

.highlights-list li {
  margin-bottom: 0.75rem;
}


@media (max-width: 768px) { 
  .iframe-container { 
    height: auto; 
  } 
}

/* Fondo alternado full-width para city-about */
main > .city-about:nth-of-type(odd) {
  background-color: #ffffff;
}
main > .city-about:nth-of-type(even) {
  background-color: #f8f9fa;
}

/* Padding vertical */
.city-about {
  padding: 2rem 0;
}

/* Encabezados y textos */
.city-about .container h2 {
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 1rem;
}
.city-about .container h3 {
  color: var(--color-primary);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.city-about .container p {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  text-align: justify;
}

/* Acentuar párrafos iniciales */
.city-about .container p:first-of-type {
  font-size: 1.1rem;
}

/* Oculta el honeypot sin removerlo del DOM */
.honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}
