/* ===== Despega LLC — Design System ===== */
:root {
  --navy-900: #06142b;
  --navy-800: #0a1e3c;
  --navy-700: #12294d;
  --navy-600: #1d3a66;
  --gold-500: #c9a227;
  --gold-400: #ddb93f;
  --gold-100: #faf3dc;
  --ink-900: #10192b;
  --ink-600: #46536b;
  --ink-400: #7b8798;
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --line: #e3e8ef;
  --radius: 14px;
  --shadow-sm: 0 1px 3px rgba(6, 20, 43, 0.08);
  --shadow-md: 0 8px 30px rgba(6, 20, 43, 0.12);
  --shadow-gold: 0 8px 24px rgba(201, 162, 39, 0.35);
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn:active { transform: scale(0.97); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--navy-900);
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201, 162, 39, 0.45); }

.btn-outline {
  border-color: rgba(255, 255, 255, 0.45);
  color: #fff;
  background: transparent;
}
.btn-outline:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }
.btn-sm svg { width: 15px; height: 15px; }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 0.9rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}
.navbar.scrolled {
  background: rgba(6, 20, 43, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.25);
  padding: 0.6rem 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  color: #fff;
}
.brand-mark { width: 30px; height: 30px; color: var(--gold-500); }
.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.brand-accent { color: var(--gold-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.nav-links > a:not(.btn) {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.nav-links > a:not(.btn):hover { color: var(--gold-400); }

.lang-toggle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-400);
  background: transparent;
  border: 1.5px solid rgba(201, 162, 39, 0.5);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.lang-toggle:hover {
  background: var(--gold-500);
  color: var(--navy-900);
  border-color: var(--gold-500);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: #fff;
  overflow: hidden;
  padding: 7.5rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 45% at 80% 15%, rgba(201, 162, 39, 0.16), transparent 65%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(29, 58, 102, 0.55), transparent 70%);
  pointer-events: none;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(to bottom, transparent, black 30%, transparent 95%);
}

.hero-inner { position: relative; max-width: 780px; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
  border: 1px solid rgba(201, 162, 39, 0.4);
  border-radius: 999px;
  padding: 0.4rem 1rem;
  margin-bottom: 1.5rem;
  background: rgba(201, 162, 39, 0.08);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}
.text-gold {
  background: linear-gradient(120deg, var(--gold-400), var(--gold-500) 60%, #a8851c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
  margin-bottom: 2.25rem;
}
.hero-sub strong { color: var(--gold-400); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 1.75rem;
}
.stat { display: flex; flex-direction: column; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-400);
}
.stat-label { font-size: 0.88rem; color: rgba(255, 255, 255, 0.65); }

/* ===== Secciones ===== */
.section { padding: 5.5rem 0; }
.section-dark {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}
.section-eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.75rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.section-sub { color: var(--ink-600); font-size: 1.05rem; }
.section-dark .section-sub { color: rgba(255, 255, 255, 0.7); }

/* ===== Servicios ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.5);
}

.service-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  color: var(--gold-400);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 26px; height: 26px; }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.service-card p { color: var(--ink-600); font-size: 0.95rem; flex-grow: 1; }

.service-link {
  margin-top: 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--navy-800);
  text-decoration: none;
  transition: color 0.2s ease;
}
.service-link:hover { color: var(--gold-500); }

.section-alt { background: var(--surface-alt); }

/* ===== Herramientas ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin-inline: auto;
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.5);
}
.tool-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.tool-card p { color: var(--ink-600); font-size: 0.95rem; flex-grow: 1; }
.tool-card .service-link { margin-top: 1.25rem; }

/* ===== Artículos ===== */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: rgba(201, 162, 39, 0.5);
}
.article-tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-500);
  margin-bottom: 0.6rem;
}
.article-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}
.article-card h3 a { color: var(--ink-900); text-decoration: none; }
.article-card h3 a:hover { color: var(--gold-500); }
.article-card > p { color: var(--ink-600); font-size: 0.92rem; flex-grow: 1; }
.article-card .service-link { margin-top: 1.1rem; }

/* ===== Página de artículo ===== */
.article-page {
  background: var(--navy-900);
  padding: 1rem 0;
}
.article-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  color: #fff;
  padding: 8rem 0 3.5rem;
}
.article-hero .article-tag { color: var(--gold-400); }
.article-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  max-width: 760px;
}
.article-hero .article-meta {
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
}

.article-body {
  max-width: 720px;
  margin-inline: auto;
  padding: 3.5rem 0 4.5rem;
}
.article-body h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 2.2rem 0 0.8rem;
}
.article-body p { margin-bottom: 1.1rem; color: var(--ink-600); font-size: 1.02rem; }
.article-body strong { color: var(--ink-900); }
.article-body ul, .article-body ol { margin: 0 0 1.1rem 1.4rem; color: var(--ink-600); }
.article-body li { margin-bottom: 0.5rem; }

.article-cta {
  margin-top: 2.5rem;
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700));
  color: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}
.article-cta p { color: rgba(255, 255, 255, 0.75); margin-bottom: 1.25rem; }

/* ===== Nosotros ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

.about-copy .section-eyebrow { color: var(--gold-400); }
.about-copy .section-title { margin-bottom: 1.25rem; }
.about-copy p { color: rgba(255, 255, 255, 0.78); margin-bottom: 1rem; }
.about-copy strong { color: var(--gold-400); }

.about-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: 0.7rem;
}
.about-list li {
  position: relative;
  padding-left: 1.9rem;
  color: rgba(255, 255, 255, 0.85);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(201, 162, 39, 0.18);
  border: 1.5px solid var(--gold-500);
}
.about-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.35em + 4px);
  width: 8px;
  height: 5px;
  border-left: 2px solid var(--gold-400);
  border-bottom: 2px solid var(--gold-400);
  transform: rotate(-45deg);
}

.about-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.about-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 1.6rem;
  backdrop-filter: blur(6px);
}
.about-card-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--gold-400);
  display: block;
  margin-bottom: 0.35rem;
}
.about-card p { font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); }
.about-card-wide { grid-column: 1 / -1; }
.about-quote {
  font-family: var(--font-display);
  font-size: 1.1rem !important;
  font-weight: 600;
  color: #fff !important;
  line-height: 1.5;
}

/* ===== Contacto ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 4rem;
  align-items: start;
}

.contact-info .section-title { margin-bottom: 0.75rem; }

.info-list {
  list-style: none;
  margin: 2rem 0 1.5rem;
  display: grid;
  gap: 1.4rem;
}
.info-list li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--ink-600);
}
.info-list svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--gold-500);
  margin-top: 2px;
}
.info-list a { color: var(--navy-800); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--gold-500); }

.map-link {
  font-weight: 600;
  color: var(--navy-800);
  text-decoration: none;
}
.map-link:hover { color: var(--gold-500); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  display: grid;
  gap: 1.2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.form-field { display: grid; gap: 0.4rem; }
.form-field label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-900);
}
.form-field input,
.form-field select,
.form-field textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--ink-900);
  transition: border-color 0.2s ease, background 0.2s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  background: #fff;
}
.form-field textarea { resize: vertical; }

.form-status {
  font-size: 0.9rem;
  font-weight: 500;
  min-height: 1.4em;
  text-align: center;
}
.form-status.ok { color: #1a7f4e; }
.form-status.error { color: #c0392b; }

/* ===== Footer ===== */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
  padding: 4rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}

.footer-brand p { margin-top: 1rem; font-size: 0.92rem; max-width: 320px; }
.brand-footer .brand-text { font-size: 1.15rem; }

.footer-col { display: grid; gap: 0.65rem; align-content: start; }
.footer-col h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
.footer-col a, .footer-col span { font-size: 0.92rem; }
.footer-col a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-col a:hover { color: var(--gold-400); }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.4rem 0;
  font-size: 0.85rem;
  text-align: center;
}

/* ===== Animaciones de scroll =====
   Solo se ocultan los elementos si JS está activo (html.js),
   así el contenido siempre es visible sin JavaScript. */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 2.75rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    height: 100dvh;
    width: min(300px, 80vw);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 1.5rem;
    padding: 5.5rem 2rem 2rem;
    background: var(--navy-900);
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links > a:not(.btn) { font-size: 1.1rem; }

  .hero { padding-top: 6.5rem; }
  .hero-stats { gap: 1.75rem; }
  .section { padding: 4rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .contact-form { padding: 1.6rem; }
}
