@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #003ba4;
  --primary-dark: #002a7a;
  --accent: #1bb0ce;
  --accent-dark: #1590aa;
  --nav-active: #e8681a;
  --heading: #0a1628;
  --text: #444444;
  --text-light: #666666;
  --white: #ffffff;
  --bg: #ffffff;
  --card-gray: #ececec;
  --footer-bg: #0a1f4d;
  --radius: 10px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: Poppins, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header {
  position: relative;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 80px;
}
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 56px; width: auto; }

.main-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 0; }
.main-nav > a,
.main-nav .nav-item > a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
  white-space: nowrap;
}
.main-nav > a:hover,
.main-nav .nav-item > a:hover { color: var(--nav-active); }
.main-nav > a.active {
  color: var(--nav-active);
}
.nav-caret {
  font-size: 0.65rem;
  opacity: 0.75;
}

/* Hero */
.hero {
  position: relative;
  margin-top: -68px;
  padding: 130px 80px 90px;
  min-height: 668px;
  display: flex;
  align-items: flex-start;
  background: url('../img/hero-bus-carretera.webp') no-repeat center bottom / cover;
  color: #fff;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(0, 24, 70, 0.78) 0%, rgba(0, 59, 164, 0.42) 42%, rgba(0, 0, 0, 0.18) 100%);
}
.hero .container,
.hero-layout {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 28px;
}
.hero-copy {
  max-width: 560px;
}
.hero-copy h1 {
  font-family: Inter, sans-serif;
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 14px;
  text-align: left;
}
.hero-copy p {
  font-family: Inter, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.72);
  max-width: 520px;
  text-align: left;
}

/* Search widget — glass card (original Elementor) */
.search-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px) saturate(130%);
  -webkit-backdrop-filter: blur(20px) saturate(130%);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 16px;
  padding: 28px 24px 24px;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}
.search-card h2 {
  font-family: Poppins, sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 22px;
  line-height: 1.25;
}
.field-label {
  display: block;
  font-family: Poppins, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}
.field-wrap {
  position: relative;
  margin-bottom: 16px;
}
.field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  color: #8a8a8a;
  pointer-events: none;
  z-index: 2;
}
.field-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  color: #8a8a8a;
  z-index: 2;
}
.field-wrap select,
.field-wrap input[type="date"] {
  width: 100%;
  height: 46px;
  border: none;
  border-radius: 12px;
  padding: 0 40px 0 42px;
  font-size: 14px;
  color: #333;
  background: #fff;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  font-family: Poppins, 'Segoe UI', sans-serif;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.2s;
}
.field-wrap select:focus,
.field-wrap input[type="date"]:focus {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.55);
}
.field-wrap select:disabled {
  color: #6b7280;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: none;
}
.field-wrap select option {
  color: #222;
  background: #fff;
}
.field-wrap input[type="date"] {
  color: #333;
}
.field-wrap input[type="date"]::-webkit-datetime-edit {
  font-family: Poppins, 'Segoe UI', sans-serif;
}
.field-wrap input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.date-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 4px;
}
.date-row > div {
  min-width: 0;
}
.date-row .field-wrap {
  margin-bottom: 0;
}
.date-row .field-label {
  margin-bottom: 8px;
}
.field-error {
  font-size: 11px;
  color: #ffc9c9;
  margin: 6px 0 0;
  display: none;
}
.btn-search {
  width: 100%;
  margin-top: 20px;
  padding: 14px 20px;
  background: #003ba4;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: Poppins, 'Segoe UI', sans-serif;
  box-shadow: 0 4px 14px rgba(0, 30, 90, 0.45);
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
}
.btn-search:hover {
  background: #002a7a;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 30, 90, 0.5);
}
.btn-search svg {
  flex-shrink: 0;
  stroke: #fff;
}

/* Section headings */
.section { padding: 72px 0; }
.section-label {
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.section-title {
  text-align: center;
  font-family: Inter, sans-serif;
  font-size: clamp(1.6rem, 3vw, 31px);
  font-weight: 800;
  color: var(--heading);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 40px;
}

/* Routes carousel */
.routes-carousel { position: relative; overflow: hidden; }
.routes-track {
  display: flex;
  gap: 0;
  transition: transform 0.5s ease;
}
.route-slide {
  flex: 0 0 25%;
  min-width: 220px;
  padding: 0 8px;
}
.route-slide figure { margin: 0; position: relative; border-radius: 12px; overflow: hidden; }
.route-slide img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.route-slide figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.75));
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
}
.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: #fff;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.carousel-btn:hover { background: var(--primary); color: #fff; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #ccc; border: none; cursor: pointer; padding: 0;
}
.carousel-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }

/* Why choose us */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}
.why-card {
  text-align: center;
  padding: 18px;
  background: var(--card-gray);
  border-radius: 20px;
  height: 100%;
}
.why-icon {
  width: auto;
  height: auto;
  margin: 0 auto 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}
.why-icon svg {
  width: 42px;
  height: 42px;
}
.why-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 8px;
}
.why-card p {
  font-size: 0.875rem;
  color: var(--text-light);
  line-height: 1.55;
}

/* About */
.about-section { background: #fff; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.about-kicker {
  font-size: 1rem;
  color: var(--text);
  font-weight: 400;
  margin-bottom: 10px;
}
.about-grid h2 {
  font-family: Inter, sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 18px;
  line-height: 1.2;
}
.about-grid p {
  color: var(--text-light);
  margin-bottom: 28px;
  line-height: 1.7;
  font-size: 0.95rem;
}
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--primary);
  border-radius: 20px;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.1s;
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}
.btn-outline {
  display: inline-block;
  padding: 12px 28px;
  border: 2px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--primary); color: #fff; }
.about-image { border-radius: 12px; overflow: hidden; }
.about-image img { width: 100%; height: auto; object-fit: cover; }

/* Help CTA */
.help-section {
  text-align: center;
  padding: 56px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, #0050d4 100%);
  color: #fff;
}
.help-section h2 { font-size: 1.75rem; margin-bottom: 12px; }
.help-section p { opacity: 0.9; margin-bottom: 24px; }
.help-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: #25d366; color: #fff;
  border-radius: 8px; font-weight: 600; font-size: 0.9rem;
}
.btn-contact {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; background: rgba(255,255,255,0.15); color: #fff;
  border: 1px solid rgba(255,255,255,0.4); border-radius: 8px;
  font-weight: 600; font-size: 0.9rem;
}

/* Footer */
.site-footer { background: var(--footer-bg); color: rgba(255,255,255,0.85); padding: 48px 0 24px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer-brand img { height: 64px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; line-height: 1.6; opacity: 0.85; }
.footer-col h5 { font-size: 0.95rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 0.875rem; opacity: 0.85; transition: opacity 0.2s; }
.footer-col a:hover { opacity: 1; color: var(--accent); }
.footer-contact p { font-size: 0.875rem; margin-bottom: 8px; opacity: 0.85; }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-links a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; transition: background 0.2s;
}
.social-links a:hover { background: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.6;
}

@media (max-width: 1024px) {
  .hero { padding: 110px 24px 70px; min-height: auto; }
  .hero-layout { align-items: center; }
  .hero-copy, .hero-copy h1, .hero-copy p { text-align: center; }
  .hero-copy p { margin: 0 auto; }
  .search-card { max-width: 420px; }
  .route-slide { flex: 0 0 33.333%; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .main-nav { display: none; }
}

@media (max-width: 640px) {
  .hero { min-height: auto; padding-top: 88px; }
  .date-row { grid-template-columns: 1fr; }
  .route-slide { flex: 0 0 80%; }
  .why-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
