/* ============================================================
   Community Manager Traveler — Landing
   Mobile-first · Modo claro/oscuro · 100% responsive
   ============================================================ */

/* ---------- Tokens de tema ---------- */
:root {
  --brand: #0ea5e9;
  --brand-2: #06b6d4;
  --brand-grad: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #6366f1 100%);
  --accent: #f59e0b;
  --wa: #25d366;
  --wa-dark: #1da851;

  --bg: #ffffff;
  --bg-soft: #f4f8fb;
  --bg-card: #ffffff;
  --text: #0f172a;
  --text-soft: #475569;
  --border: #e2e8f0;
  --shadow: 0 10px 30px -12px rgba(2, 32, 71, 0.18);
  --shadow-lg: 0 24px 60px -18px rgba(2, 32, 71, 0.28);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1160px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Sora', var(--font);
}

[data-theme="dark"] {
  --bg: #0b1220;
  --bg-soft: #0f1a2e;
  --bg-card: #131f36;
  --text: #e9eef6;
  --text-soft: #a3b1c6;
  --border: #233149;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 24px 60px -18px rgba(0, 0, 0, 0.65);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .3s ease, color .3s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -0.02em; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- Botones ---------- */
.btn {
  --pad-y: .8rem; --pad-x: 1.4rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font); font-weight: 700; font-size: .98rem;
  border: none; border-radius: 999px; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, opacity .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { --pad-y: .55rem; --pad-x: 1.1rem; font-size: .9rem; }
.btn--lg { --pad-y: 1rem; --pad-x: 1.8rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brand-grad); color: #fff; box-shadow: 0 8px 24px -8px rgba(14, 165, 233, .6); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(14, 165, 233, .7); }
.btn--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--border); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--whatsapp { background: var(--wa); color: #fff; box-shadow: 0 8px 24px -8px rgba(37, 211, 102, .6); }
.btn--whatsapp:hover { background: var(--wa-dark); transform: translateY(-2px); }

.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  color: var(--brand); font-weight: 700; font-size: .82rem;
  padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.2rem;
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
}
.eyebrow {
  display: inline-block; font-weight: 800; font-size: .8rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand); margin-bottom: .7rem;
}
.eyebrow--light { color: #bae6fd; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__logo { color: var(--text); display: flex; align-items: center; }
.nav__logo img { height: 38px; width: auto; }

/* Swap de logo según tema (el texto del SVG en <img> no hereda el color del tema) */
.logo-dark { display: none; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: block; }

.nav__toggle {
  display: flex; flex-direction: column; gap: 5px; background: none; border: none;
  cursor: pointer; padding: 8px; z-index: 110;
}
.nav__toggle span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: .3s; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

.nav__menu {
  position: fixed; inset: 68px 0 auto 0;
  background: var(--bg); border-bottom: 1px solid var(--border);
  flex-direction: column; gap: 1.2rem; padding: 1.5rem 20px 2rem;
  transform: translateY(-130%); transition: transform .35s cubic-bezier(.4,0,.2,1);
  display: flex; box-shadow: var(--shadow);
}
.nav__menu.open { transform: translateY(0); }
.nav__links { display: flex; flex-direction: column; gap: .3rem; }
.nav__links a {
  display: block; padding: .7rem .2rem; font-weight: 600; color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}
.nav__links a:hover { color: var(--brand); }
.nav__actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
  display: inline-grid; place-items: center; width: 42px; height: 42px;
  border-radius: 50%; border: 1.5px solid var(--border); background: var(--bg-soft);
  color: var(--text); cursor: pointer; transition: .2s; flex-shrink: 0;
}
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 3rem 0 4rem; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, color-mix(in srgb, #6366f1 14%, transparent), transparent 70%);
}
.hero__inner { position: relative; z-index: 1; display: grid; gap: 2.5rem; }
.hero__title { font-size: clamp(2rem, 7vw, 3.4rem); margin-bottom: 1.1rem; }
.hero__subtitle { font-size: clamp(1rem, 2.6vw, 1.18rem); color: var(--text-soft); max-width: 40ch; margin-bottom: 1.8rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.6rem; }
.hero__bullets { display: flex; flex-wrap: wrap; gap: 1rem 1.4rem; font-size: .92rem; color: var(--text-soft); font-weight: 600; }

.hero__media { position: relative; justify-self: center; max-width: 460px; width: 100%; }
.hero__img {
  width: 100%; border-radius: 26px; object-fit: cover; aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg); border: 6px solid var(--bg-card);
}
.hero__card {
  position: absolute; display: flex; align-items: center; gap: .65rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 14px; padding: .7rem .9rem; box-shadow: var(--shadow);
}
.hero__card strong { display: block; font-size: 1.05rem; line-height: 1; font-family: var(--font-display); }
.hero__card small { color: var(--text-soft); font-size: .76rem; }
.hero__card-emoji { font-size: 1.4rem; }
.hero__card--top { top: 8%; left: -8px; }
.hero__card--bottom { bottom: 8%; right: -8px; }

/* Emblema de marca en el hero */
.hero__brand {
  display: grid; place-items: center; gap: 1.1rem; text-align: center;
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border); border-radius: 28px; padding: 2.4rem 1.6rem;
  box-shadow: var(--shadow-lg);
}
.hero__emblem { width: min(78%, 300px); height: auto; filter: drop-shadow(0 12px 28px rgba(0,0,0,.35)); }
.hero__brand-tag {
  font-weight: 700; font-size: .92rem; color: var(--text-soft); letter-spacing: .02em;
  background: color-mix(in srgb, var(--brand) 10%, transparent); padding: .45rem 1rem; border-radius: 999px;
}

/* Equipo real */
.team { display: grid; gap: .9rem; margin: 1.4rem 0 1.8rem; }
.team__member { display: flex; align-items: center; gap: .8rem; }
.team__avatar {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--brand-grad); color: #fff; font-weight: 800; font-family: var(--font-display);
  font-size: .95rem; flex-shrink: 0;
}
.team__member strong { display: block; line-height: 1.2; }
.team__member small { color: var(--text-soft); font-size: .85rem; }

/* Franja de partners */
.partners { padding: 2rem 0; border-bottom: 1px solid var(--border); }
.partners__label { text-align: center; color: var(--text-soft); font-size: .82rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 1rem; }
.partners__logos { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 1.8rem; }
.partners__logos span {
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--text-soft);
  opacity: .8; transition: opacity .2s, color .2s;
}
.partners__logos span:hover { opacity: 1; color: var(--brand); }
@media (min-width: 600px) { .partners__logos span { font-size: 1.25rem; } }

/* ---------- Stats ---------- */
.stats { background: var(--bg-soft); border-block: 1px solid var(--border); padding: 2.2rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; text-align: center; }
.stat__num { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 6vw, 2.6rem); color: var(--brand); }
.stat__label { font-size: .86rem; color: var(--text-soft); font-weight: 600; }

/* ---------- Secciones ---------- */
.section { padding: 4rem 0; }
.section--alt { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section__title { font-size: clamp(1.6rem, 5vw, 2.4rem); margin-bottom: .8rem; }
.section__lead { color: var(--text-soft); font-size: 1.05rem; }

/* ---------- Cards de servicios ---------- */
.cards { display: grid; grid-template-columns: 1fr; gap: 1.2rem; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
.card__icon {
  width: 54px; height: 54px; display: grid; place-items: center; font-size: 1.6rem;
  background: color-mix(in srgb, var(--brand) 12%, transparent); border-radius: 14px; margin-bottom: 1rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.card p { color: var(--text-soft); font-size: .96rem; }

/* ---------- Nosotros ---------- */
.about { display: grid; gap: 2rem; align-items: center; }
.about__media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 4/3; }
.about__content p { color: var(--text-soft); margin-bottom: 1.2rem; }
.checklist { display: grid; gap: .7rem; margin-bottom: 1.6rem; }
.checklist li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); font-weight: 500; }
.checklist span { color: var(--wa); font-weight: 800; flex-shrink: 0; }

/* ---------- Proceso ---------- */
.steps { display: grid; gap: 1.2rem; counter-reset: step; }
.step {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; position: relative;
}
.step__num {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: var(--brand-grad); color: #fff; font-family: var(--font-display);
  font-weight: 800; font-size: 1.2rem; margin-bottom: .9rem;
}
.step h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.step p { color: var(--text-soft); font-size: .95rem; }

/* ---------- Destinos branded ---------- */
.destgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.dest {
  position: relative; border-radius: var(--radius); padding: 1.4rem; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: .3rem;
  color: #fff; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease;
}
.dest:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.dest::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 85% 10%, rgba(255,255,255,.22), transparent 55%);
}
.dest__emoji { font-size: 2rem; position: relative; z-index: 1; }
.dest h3 { font-size: 1.2rem; position: relative; z-index: 1; }
.dest p { font-size: .88rem; opacity: .92; position: relative; z-index: 1; }
.dest--lg { grid-column: span 2; min-height: 180px; }
.dest--g1 { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.dest--g2 { background: linear-gradient(135deg, #06b6d4, #0891b2); }
.dest--g3 { background: linear-gradient(135deg, #f59e0b, #ea580c); }
.dest--g4 { background: linear-gradient(135deg, #10b981, #059669); }
.dest--g5 { background: linear-gradient(135deg, #6366f1, #7c3aed); }
.dest--g6 { background: linear-gradient(135deg, #1d2024, #0c4a6e); }

/* ---------- Panel branded de Nosotros ---------- */
.about__panel {
  position: relative; border-radius: var(--radius); padding: 2.4rem 1.8rem; text-align: center;
  background:
    radial-gradient(110% 90% at 50% 0%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; gap: 1rem; justify-items: center;
}
.about__emblem { width: 150px; height: auto; filter: drop-shadow(0 10px 24px rgba(0,0,0,.35)); }
.about__panel-tag { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.about__chips { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; }
.about__chips span {
  font-size: .82rem; font-weight: 600; color: var(--brand);
  background: color-mix(in srgb, var(--brand) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand) 25%, transparent);
  padding: .35rem .8rem; border-radius: 999px;
}
.about__coverage { margin-top: .4rem; }
.about__coverage strong { display: block; font-family: var(--font-display); font-size: 1.8rem; color: var(--brand); line-height: 1; }
.about__coverage small { color: var(--text-soft); font-weight: 600; }

/* ---------- Testimonios ---------- */
.testimonials { display: grid; gap: 1.2rem; }
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.testimonial p { font-size: 1.02rem; margin-bottom: 1rem; }
.testimonial::before { content: '“'; font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--brand); display: block; }
.testimonial footer strong { display: block; }
.testimonial footer span { color: var(--text-soft); font-size: .86rem; }

/* ---------- Contacto / CTA ---------- */
.section--cta {
  background: linear-gradient(135deg, #0c4a6e 0%, #075985 45%, #0e7490 100%);
  color: #f0f9ff;
}
[data-theme="dark"] .section--cta { background: linear-gradient(135deg, #082032 0%, #0a2a3d 50%, #0a3a44 100%); }
.contact { display: grid; gap: 2rem; }
.contact__intro h2 { color: #fff; }
.contact__intro > p { color: #cfeaf7; margin-bottom: 1.4rem; }
.contact__list { display: grid; gap: .8rem; margin-bottom: 1.4rem; }
.contact__list li { display: flex; align-items: center; gap: .7rem; color: #e0f2fe; font-weight: 600; }
.contact__list svg { color: #7dd3fc; flex-shrink: 0; }
.contact__list a:hover { text-decoration: underline; }
.contact__socials { display: flex; gap: .6rem; flex-wrap: wrap; }
.contact__socials a {
  padding: .45rem 1rem; border-radius: 999px; font-weight: 600; font-size: .9rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); transition: .2s;
}
.contact__socials a:hover { background: rgba(255,255,255,.22); }

.contact__form {
  background: var(--bg-card); color: var(--text); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-lg); display: grid; gap: 1rem;
}
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .9rem; }
.field input, .field select, .field textarea {
  font-family: var(--font); font-size: 1rem; color: var(--text);
  background: var(--bg-soft); border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  padding: .8rem .9rem; width: 100%; transition: border-color .2s, box-shadow .2s; resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent);
}
.field input.invalid, .field select.invalid { border-color: #ef4444; }
.form__note { font-size: .82rem; color: var(--text-soft); text-align: center; margin-top: -.2rem; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 3rem 0 1.5rem; }
.footer__inner { display: grid; gap: 2rem; }
.footer__brand img { height: 40px; width: auto; margin-bottom: .9rem; }
.footer__brand p { color: var(--text-soft); font-size: .92rem; max-width: 40ch; }
.footer__col h4 { font-size: 1rem; margin-bottom: .9rem; }
.footer__col ul { display: grid; gap: .5rem; }
.footer__col a { color: var(--text-soft); font-size: .94rem; }
.footer__col a:hover { color: var(--brand); }
.footer__bottom { border-top: 1px solid var(--border); margin-top: 2rem; padding-top: 1.5rem; text-align: center; color: var(--text-soft); font-size: .85rem; }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 10px 28px -6px rgba(37,211,102,.7);
  transition: transform .2s; animation: wa-pulse 2.4s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes wa-pulse {
  0% { box-shadow: 0 10px 28px -6px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 10px 28px -6px rgba(37,211,102,.7), 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 10px 28px -6px rgba(37,211,102,.7), 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Animaciones de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   RESPONSIVE — Tablet y Desktop
   ============================================================ */
@media (min-width: 600px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
  .destgrid { grid-template-columns: repeat(3, 1fr); }
  .dest--lg { grid-column: span 1; }
}

@media (min-width: 900px) {
  .container { padding: 0 32px; }
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; transform: none; flex-direction: row; align-items: center;
    gap: 2rem; padding: 0; background: none; border: none; box-shadow: none; justify-content: flex-end; flex: 1;
  }
  .nav__links { flex-direction: row; gap: 1.6rem; }
  .nav__links a { border: none; padding: .3rem 0; color: var(--text); }
  .hero { padding: 5rem 0 6rem; }
  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 3rem; }
  .hero__media { justify-self: end; max-width: 520px; }
  .hero__card-emoji { font-size: 1.7rem; }
  .hero__card strong { font-size: 1.2rem; }
  .hero__card--top { left: -28px; }
  .hero__card--bottom { right: -28px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .about { grid-template-columns: 1fr 1fr; gap: 3.5rem; }
  .contact { grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
  .section { padding: 5.5rem 0; }
  .footer__inner { grid-template-columns: 2fr 1fr 1fr; }
}

@media (min-width: 1100px) {
  .hero__title { font-size: 3.6rem; }
}
