:root {
  --blue: #1a73e8;
  --blue-dark: #0747a6;
  --gold: #ffd23f;
  --ink: #10233d;
  --muted: #5a6b82;
  --bg: #ffffff;
  --bg-alt: #f2f6fb;
  --line: #e4eaf1;
  --primary: #1a73e8;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.6;
  background: var(--bg);
}

.container { width: min(1100px, 92%); margin: 0 auto; }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #ffffff;
  box-shadow: 0 1px 10px rgba(16,36,61,.08);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 44px; height: 44px; }
.brand-name { font-weight: 800; font-size: 1.25rem; color: var(--blue); letter-spacing: -.5px; }
.brand-name span { color: var(--gold); -webkit-text-stroke: .4px var(--blue); }
.brand-name.small { font-size: 1rem; color: #fff; }
.brand-name.small span { color: var(--gold); -webkit-text-stroke: 0; }
.nav-links { display: flex; gap: 24px; }
.nav-links a { color: var(--ink); font-weight: 600; }
.nav-links a:hover { color: var(--blue); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--blue); }

/* ===== Hero ===== */
.hero { position: relative; color: #fff; min-height: 520px; display: flex; align-items: center; }
.hero-img {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(16,36,61,.1), rgba(16,36,61,.4)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='600'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%232080f0'/%3E%3Cstop offset='1' stop-color='%23135aa6'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1600' height='600' fill='url(%23g)'/%3E%3Cpath d='M0 420 Q200 360 400 420 T800 420 T1200 420 T1600 420 L1600 600 L0 600 Z' fill='%23ffffff' opacity='0.08'/%3E%3Cpath d='M0 470 Q250 400 500 470 T1000 470 T1600 470 L1600 600 L0 600 Z' fill='%23ffffff' opacity='0.06'/%3E%3Cg fill='%23ffffff' opacity='0.15'%3E%3Ccircle cx='150' cy='120' r='3'/%3E%3Ccircle cx='500' cy='80' r='2'/%3E%3Ccircle cx='900' cy='150' r='3'/%3E%3Ccircle cx='1250' cy='90' r='2'/%3E%3Ccircle cx='1450' cy='200' r='3'/%3E%3C/g%3E%3Caeroplane fill='%23ffffff' opacity='0.25'%3E%3C/aeroplane%3E%3Cg fill='%23ffd23f'%3E%3Cpath d='M1130 250 L1170 250 l-30 -22 30 0 l22 22 z' transform='rotate(20 1140 240)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover; background-position: center;
}
.hero-overlay { position: absolute; inset: 0; background: rgba(7,32,59,.35); }
.hero-content { position: relative; z-index: 1; max-width: 640px; padding: 40px 0; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 16px; }
.hero p { font-size: 1.15rem; opacity: .95; margin-bottom: 24px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 30px; font-weight: 700; border: 0; cursor: pointer; text-align: center; }
.btn-light { background: #fff; color: var(--blue-dark); }
.btn-light:hover { background: var(--gold); color: var(--ink); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-block { width: 100%; }

/* ===== Sections ===== */
.section { padding: 64px 0; }
.section-alt { background: var(--bg); }
.section:nth-of-type(odd), .section-alt { background: var(--bg); }
#planes, #oficinas, #contacto { background: var(--bg-alt,#f2f6fb); }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--ink); margin-bottom: 8px; text-align: center; }
.section-sub { color: var(--muted); text-align: center; margin-bottom: 36px; }

/* ===== Flight search ===== */
.flight-search {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 14px;
  background: #fff; padding: 20px; border-radius: 14px;
  box-shadow: 0 8px 30px rgba(16,36,61,.08);
  margin-bottom: 30px;
}
.field label { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.field input { margin-top: 6px; width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 1rem; }
.field input:focus { outline: 2px solid var(--blue); border-color: transparent; }

.results { margin-top: 10px; }
.results-empty { text-align: center; color: var(--muted); padding: 24px; }
.result-item {
  display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 20px; margin-bottom: 12px;
}
.result-main { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.result-pill { background: var(--gold); color: #3a2c00; font-weight: 800; padding: 3px 10px; border-radius: 20px; font-size: .8rem; }
.result-route { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.result-times { color: var(--muted); font-size: .95rem; }
.result-price { font-size: 1.5rem; font-weight: 800; color: var(--blue-dark); }
.arrow { color: var(--blue); font-weight: 700; }

/* ===== Cards ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px; box-shadow: 0 6px 22px rgba(16,36,61,.05);
}
.card h3 { color: var(--blue); margin-bottom: 6px; font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .95rem; }
.claro .card-highlight { border: 2px solid var(--blue); transform: translateY(-6px); }
.card-highlight { border: 2px solid var(--blue); transform: translateY(-6px); }
.card-price { font-size: 1.4rem !important; font-weight: 800; color: var(--blue-dark) !important; margin-bottom: 8px; }
.card ul { list-style: none; }
.card li { padding: 6px 0; color: var(--ink); border-bottom: 1px dashed var(--line); font-size: .95rem; }
.card li::before { content: "✓ "; color: var(--blue); font-weight: 800; }
.card li:last-child { border-bottom: 0; }

/* ===== About ===== */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.about-text .lead { font-size: 1.25rem; font-weight: 700; color: var(--ink); margin-bottom: 12px; }
.about-text p { color: var(--muted); margin-bottom: 14px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { background: var(--blue); color: #fff; border-radius: 14px; padding: 22px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.stat:nth-child(2n) { background: var(--blue-dark); }
.stat-num { font-size: 1.9rem; font-weight: 800; color: var(--gold); }

/* ===== Offices ===== */
.offices-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.office { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.office h3 { color: var(--blue); font-size: 1.05rem; margin-bottom: 6px; }
.office p { color: var(--muted); font-size: .88rem; margin-bottom: 4px; }
.office .phone { font-weight: 700; color: var(--ink); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info p { margin-bottom: 10px; color: var(--muted); }
.contact-info strong { color: var(--ink); }
.socials { display: flex; flex-wrap: wrap; gap: 12px; align-content: flex-start; }
.social {
  background: var(--blue); color: #fff; padding: 10px 18px; border-radius: 24px;
  font-weight: 700; font-size: .95rem; transition: .2s;
}
.social:hover { background: var(--blue-dark); transform: translateY(-2px); }

/* ===== Footer ===== */
.site-footer { background: var(--blue-dark); color: #cfe0f5; padding: 32px 0; }
.footer-inner { text-align: center; }
.footer-inner p { margin-top: 8px; font-size: .9rem; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .cards { grid-template-columns: 1fr; }
  .card-highlight { transform: none; }
  .cards-4 { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .flight-search { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cards-4 { grid-template-columns: 1fr; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; padding: 12px 0; box-shadow: 0 8px 20px rgba(0,0,0,.1); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 24px; }
  .nav-toggle { display: block; }
  .result-item { grid-template-columns: 1fr; }
}