/* =========================================================
   DETELON TRAVEL — hoja de estilos
   Colores tomados del logo: azul marino + naranja
   ========================================================= */

/* ---------- Tipografía (Montserrat, alojada en el propio servidor) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/montserrat-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/montserrat-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 500; font-display: swap; src: url("../fonts/montserrat-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: italic; font-weight: 700; font-display: swap; src: url("../fonts/montserrat-latin-700-italic.woff2") format("woff2"); }

:root {
  --navy-950: #061430;
  --navy-900: #0a1d42;
  --navy-800: #102a5c;
  --navy-700: #173a7a;
  --blue-500: #2f6fd6;
  --orange-500: #f26a12;
  --orange-600: #d9580a;
  --orange-100: #fff1e6;
  --ink: #142038;
  --muted: #55607a;
  --line: #e4e8f0;
  --paper: #ffffff;
  --paper-2: #f6f8fc;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px -12px rgba(10, 29, 66, .22);
  --wrap: 1160px;
  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--navy-700); }
a:hover { color: var(--orange-600); }
h1, h2, h3 { line-height: 1.2; color: var(--navy-900); margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy-900); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }

/* Marca para datos pendientes de completar (búscalos por "pendiente") */
.pendiente { background: #fff3b0; color: #6b4e00; padding: 0 .3em; border-radius: 4px; font-weight: 600; }

/* ---------- Wordmark (como en la firma de email) ---------- */
.wordmark { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.wordmark b { font-weight: 800; font-size: 1.32rem; color: var(--navy-900); letter-spacing: .02em; }
.wordmark span { font-weight: 600; font-size: .72rem; color: var(--orange-500); letter-spacing: .55em; margin-top: 4px; }
.wordmark--light b { color: #fff; }

/* ---------- Logo horizontal (cabecera y pie) ---------- */
.brand { display: inline-flex; align-items: center; line-height: 0; }
.logo-h { height: 46px; width: auto; }
.logo-h .lg-d { fill: #102c4c; }
.logo-h .lg-halo { stroke: #fff; }
.brand--light .logo-h { height: 52px; }
.brand--light .logo-h .lg-d { fill: #fff; }
.brand--light .logo-h .lg-halo { stroke: var(--navy-950); }
@media (max-width: 400px) { .logo-h { height: 40px; } }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font: 700 .98rem/1 var(--font); text-decoration: none; letter-spacing: .01em;
  padding: 15px 24px; border-radius: 999px; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn--primary { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(242, 106, 18, .7); }
.btn--primary:hover { background: var(--orange-600); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn--ghost:hover { background: var(--navy-900); color: #fff; }
.btn--wa { background: #1fa855; color: #fff; }
.btn--wa:hover { background: #178c46; color: #fff; transform: translateY(-1px); }
.btn--sm { padding: 11px 18px; font-size: .9rem; }

/* ---------- Cabecera ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 20px -16px rgba(10, 29, 66, .4); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { color: var(--navy-900); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--orange-500); transform: scaleX(0); transition: transform .2s; }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--navy-900); }
.nav-toggle svg { width: 28px; height: 28px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute; top: 74px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 8px 16px 18px; box-shadow: 0 18px 30px -20px rgba(10, 29, 66, .35);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { margin-top: 14px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; padding: 28px 0 72px; text-align: center; overflow: hidden; }
.hero::before {
  /* ruta de vuelo decorativa, discreta, detrás del contenido */
  content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%;
  background: radial-gradient(60% 60% at 50% 100%, rgba(47, 111, 214, .08), transparent 70%);
  pointer-events: none;
}
.hero__logo { width: min(100%, 780px); height: auto; margin: 0 auto 10px; mix-blend-mode: multiply; }
.hero__lede { max-width: 640px; margin: 0 auto 30px; font-size: 1.12rem; color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.hero__chips { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: var(--navy-800); font-weight: 600; font-size: .92rem; }
.hero__chips li { display: inline-flex; align-items: center; gap: 8px; }
.hero__chips svg { width: 18px; height: 18px; color: var(--orange-500); }

/* ---------- Secciones ---------- */
.section { padding: 92px 0; }
.section--alt { background: var(--paper-2); }
.section--navy {
  background:
    radial-gradient(900px 400px at 85% -10%, rgba(242, 106, 18, .18), transparent 60%),
    radial-gradient(700px 400px at -10% 110%, rgba(47, 111, 214, .28), transparent 60%),
    var(--navy-900);
  color: #dbe4f5;
}
.section--navy h2, .section--navy h3 { color: #fff; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; margin: 0; }
.section--navy .section-head p { color: #b8c6e3; }
.eyebrow { display: inline-block; font-weight: 700; font-size: .8rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange-500); margin-bottom: 12px; }
.tagline { font-style: italic; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.tagline b { font-weight: 700; color: var(--orange-500); }

/* ---------- Servicios ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.card p { color: var(--muted); margin: 0; font-size: .97rem; }
.icon {
  width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 18px;
  background: linear-gradient(140deg, var(--navy-800), var(--navy-950)); color: #fff;
  box-shadow: inset 0 -3px 0 var(--orange-500);
}
.icon svg { width: 26px; height: 26px; }

/* ---------- Enlace "más" de las tarjetas ---------- */
.card .more { display: inline-block; margin-top: 14px; font-weight: 700; font-size: .92rem; color: var(--orange-600); text-decoration: none; }
.card .more:hover { text-decoration: underline; }
.btn--ig { background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af); color: #fff; }
.btn--ig:hover { color: #fff; transform: translateY(-1px); filter: brightness(1.05); }
.btn--tg { background: #26a5e4; color: #fff; }
.btn--tg:hover { background: #1b8fca; color: #fff; transform: translateY(-1px); }

/* ---------- Pasos ---------- */
.steps { counter-reset: paso; }
.step { position: relative; padding: 30px 24px 26px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.step::before {
  counter-increment: paso; content: counter(paso, decimal-leading-zero);
  display: block; font-weight: 800; font-size: 2.2rem; line-height: 1; color: var(--orange-500); margin-bottom: 14px;
}
.step p { margin: 0; color: #b8c6e3; font-size: .97rem; }

/* ---------- Por qué ---------- */
.why { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; gap: 36px; } }
.why__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 18px; }
.why__list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }
.why__list svg { width: 34px; height: 34px; color: var(--orange-500); }
.why__list strong { display: block; color: var(--navy-900); }
.why__list span { color: var(--muted); font-size: .97rem; }
.quote {
  position: relative; border-radius: var(--radius-lg); padding: 44px 38px; color: #fff;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-950));
  box-shadow: var(--shadow); overflow: hidden;
}
.quote::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 150px; height: 150px; border-radius: 50%;
  border: 10px solid var(--orange-500); opacity: .9;
}
.quote p { position: relative; font-size: clamp(1.4rem, 2.6vw, 1.85rem); line-height: 1.3; margin: 0 0 18px; z-index: 1; }
.quote small { position: relative; color: #b8c6e3; font-size: .95rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
.contact__info { display: grid; gap: 16px; margin: 26px 0 30px; }
.contact__item { display: flex; gap: 14px; align-items: center; text-decoration: none; color: var(--ink); font-weight: 600; }
.contact__item svg { width: 22px; height: 22px; color: var(--orange-500); flex: none; }
.contact__item small { display: block; color: var(--muted); font-weight: 500; font-size: .85rem; }
a.contact__item:hover { color: var(--orange-600); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } .form { padding: 24px 20px; } }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 600; font-size: .88rem; color: var(--navy-900); }
.field input, .field textarea, .field select {
  font: inherit; font-size: 1rem; color: var(--ink); width: 100%;
  padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fbfcfe;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(23, 58, 122, .12); background: #fff; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 6px 0 20px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange-500); flex: none; }
.form__note { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form .btn { width: 100%; }

/* ---------- Redes ---------- */
.social { display: flex; flex-wrap: wrap; gap: 12px; }
.social a { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; text-decoration: none; transition: transform .15s, filter .15s; }
.social a:hover { transform: translateY(-2px); filter: brightness(1.08); color: #fff; }
.social svg { width: 22px; height: 22px; }
.social .ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social .fb { background: #1877f2; }
.social .tt { background: #000; }
.social .yt { background: #ff0000; }
.social .wa { background: #25d366; }
.social .tg { background: #fff; color: #26a5e4; border-radius: 50%; }
.social .tg svg { width: 44px; height: 44px; }
.social .mail { background: var(--orange-500); }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-950); color: #a9b7d4; padding: 64px 0 28px; font-size: .93rem; }
.site-footer a { color: #dbe4f5; text-decoration: none; }
.site-footer a:hover { color: var(--orange-500); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h3 { color: #fff; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-legal { padding-top: 24px; display: grid; gap: 10px; font-size: .84rem; line-height: 1.6; }
.footer-legal p { margin: 0; }
.footer-tag { margin: 16px 0 22px; color: #dbe4f5; }

/* ---------- Accesos de admin (solo con sesión de admin) ---------- */
.admin-barra {
  position: fixed; left: 16px; bottom: 18px; z-index: 90; max-width: calc(100% - 104px);
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 5px;
  border-radius: 16px; border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(17, 20, 24, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  font-size: .84rem; line-height: 1.2;
}
.admin-barra__aviso { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #e8edf2; }
.admin-barra__punto { width: 8px; height: 8px; border-radius: 50%; background: #ffcf4d; box-shadow: 0 0 0 3px rgba(255, 207, 77, .25); flex: none; }
.admin-barra__btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 11px;
  font-weight: 700; text-decoration: none; color: #fff !important; transition: background-color .15s;
}
.admin-barra__btn svg { width: 17px; height: 17px; flex: none; }
.admin-barra__btn:hover { background: rgba(255, 255, 255, .12); }
.admin-barra__btn--principal { background: var(--orange-500); }
.admin-barra__btn--principal:hover { background: var(--orange-600); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Páginas legales ---------- */
.legal { padding: 56px 0 90px; }
.legal .wrap { max-width: 820px; }
.legal h1 { margin-bottom: .3em; }
.legal .updated { color: var(--muted); font-size: .92rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.3rem; margin-top: 2.2em; }
.legal h3 { margin-top: 1.4em; }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: .4em; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 1.2em; font-size: .95rem; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { width: 38%; color: var(--navy-900); font-weight: 700; background: var(--paper-2); }
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; text-decoration: none; margin-bottom: 26px; }

/* Revelado suave al hacer scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
