/* =========================================================================
   NAYRA TRAVELS — Sistema de diseño
   Viajes: azules vivos + naranja. Mobile-first.
   ========================================================================= */

:root {
  --bg: #f7f9fc;
  --bg-soft: #eef3f9;
  --card: #ffffff;
  --ink: #10243e;
  --ink-2: #4a5f7a;
  --ink-3: #8293ab;
  --blue: #1d6fd1;
  --blue-2: #0e5caf;
  --sky: #0ea5e9;
  --orange: #f97316;
  --orange-2: #e05f05;
  --teal: #0d9488;
  --line: #dfe7f0;
  --footer: #0b1c31;
  --footer-ink: #b8c7da;
  --success: #178a63;
  --shadow-sm: 0 1px 2px rgba(16,36,62,.06), 0 4px 12px rgba(16,36,62,.06);
  --shadow-md: 0 6px 24px rgba(16,36,62,.12);
  --shadow-lg: 0 20px 50px rgba(16,36,62,.18);
  --radius: 18px;
  --radius-sm: 12px;
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 68px;
  --maxw: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); background: var(--bg); color: var(--ink); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .4em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(249,115,22,.2); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--orange); border-radius: 2px; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .98rem; line-height: 1; transition: transform .18s, box-shadow .18s, background .18s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: #fff; box-shadow: 0 8px 20px rgba(249,115,22,.32); }
.btn-primary:hover { background: var(--orange-2); transform: translateY(-1px); }
.btn-blue { background: var(--blue); color: #fff; box-shadow: 0 8px 20px rgba(29,111,209,.3); }
.btn-blue:hover { background: var(--blue-2); }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-whatsapp { background: #25d366; color: #fff; }
.btn-whatsapp:hover { background: #1fb457; }
.btn-block { width: 100%; }

/* Header */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); transition: background .3s, box-shadow .3s; }
.site-header .inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.site-header.scrolled { background: rgba(247,249,252,.92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; flex: 0 0 auto; background: linear-gradient(135deg, var(--orange), var(--blue)); display: grid; place-items: center; color: #fff; font-size: 1.2rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--font-body); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }

.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a { padding: 9px 13px; border-radius: 999px; font-size: .93rem; font-weight: 500; color: var(--ink-2); transition: color .16s, background .16s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); background: var(--bg-soft); }


/* Header transparente sobre el hero oscuro del landing: texto claro para contraste */
.site-header.on-hero .brand-name { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.site-header.on-hero .brand-sub { color: rgba(255,255,255,.72); }
.site-header.on-hero .nav-links a { color: rgba(255,255,255,.88); text-shadow: 0 1px 3px rgba(0,0,0,.45); }
.site-header.on-hero .nav-links a:hover,
.site-header.on-hero .nav-links a.active { color: #fff; background: rgba(255,255,255,.16); }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.burger { width: 44px; height: 44px; border-radius: 50%; background: var(--card); box-shadow: var(--shadow-sm); display: grid; place-items: center; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: background .2s; }
.burger span::before, .burger span::after { content: ''; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, top .2s; }
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger.open span { background: transparent; }
.burger.open span::before { top: 0; transform: rotate(45deg); }
.burger.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-menu { position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99; background: var(--bg); border-bottom: 1px solid var(--line); padding: 12px 20px 20px; transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .25s; }
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { display: block; padding: 14px 6px; font-size: 1.05rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-of-type { border-bottom: none; }
.mobile-menu .btn { margin-top: 14px; }

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,28,49,.80) 0%, rgba(11,28,49,.55) 12%, rgba(11,28,49,.15) 45%, rgba(11,28,49,.82) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px 72px; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); font-size: .82rem; font-weight: 600; margin-bottom: 20px; border: 1px solid rgba(255,255,255,.25); }
.hero h1 { font-size: clamp(2.4rem, 8vw, 4.6rem); color: #fff; max-width: 16ch; }
.hero p.lead { font-size: clamp(1.02rem, 2.4vw, 1.25rem); max-width: 48ch; color: rgba(255,255,255,.92); margin-bottom: 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-hero-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(8px); }
.btn-hero-ghost:hover { background: rgba(255,255,255,.24); }

/* Secciones */
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.6vw, 2.8rem); }
.section-head p { color: var(--ink-2); font-size: 1.06rem; }
.lead-in { color: var(--ink-2); }

/* Tarjetas de servicios */
.service-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
.service-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 14px; background: var(--bg-soft); }
.service-card h3 { font-size: 1.15rem; }
.service-card p { color: var(--ink-2); font-size: .94rem; margin: 0; }

/* Tarjetas de viaje */
.trip-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
.trip-card { background: var(--card); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .22s, box-shadow .22s; }
.trip-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.trip-media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.trip-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.trip-card:hover .trip-media img { transform: scale(1.06); }
.trip-badge { position: absolute; top: 12px; left: 12px; background: rgba(11,28,49,.78); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .74rem; font-weight: 600; }
.trip-body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.trip-body h3 { font-size: 1.25rem; }
.trip-body .dest { color: var(--blue); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.trip-body .desc { color: var(--ink-2); font-size: .92rem; flex: 1; }
.trip-meta { display: flex; gap: 16px; font-size: .84rem; color: var(--ink-2); margin-bottom: 12px; }
.trip-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.price small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; color: var(--ink-3); }
.incluye { font-size: .84rem; color: var(--ink-2); }
.incluye b { color: var(--success); }

/* Filtros */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-chip { padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1.5px solid var(--line); font-weight: 600; font-size: .9rem; color: var(--ink-2); transition: all .16s; }
.filter-chip:hover { border-color: var(--blue); color: var(--blue); }
.filter-chip.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Formularios */
.form-card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 28px 24px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 7px; color: var(--ink-2); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: #fff; color: var(--ink); transition: border-color .16s, box-shadow .16s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,111,209,.14); }
.field textarea { resize: vertical; min-height: 84px; }
.field-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
.form-note { font-size: .84rem; color: var(--ink-3); margin-top: 8px; }

/* Info cards */
.info-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); height: 100%; }
.info-card h3 { font-size: 1.15rem; }
.info-card p, .info-card li { color: var(--ink-2); font-size: .95rem; }
.info-card li::before { content: '✓ '; color: var(--success); font-weight: 700; }
.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); line-height: 0; }
.map-frame iframe { width: 100%; height: 320px; border: 0; }

/* Acordeón FAQ */
.accordion { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--card); overflow: hidden; margin-bottom: 10px; }
.accordion summary { list-style: none; cursor: pointer; padding: 16px 18px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-size: 1.4rem; color: var(--orange); transition: transform .2s; }
.accordion[open] summary::after { transform: rotate(45deg); }
.accordion .a-body { padding: 0 18px 18px; color: var(--ink-2); font-size: .96rem; }

/* CTA final */
.final-cta { background: linear-gradient(135deg, var(--blue), #0b1c31); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.8rem, 4.6vw, 2.7rem); }
.final-cta p { color: rgba(255,255,255,.82); }
.final-cta .ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* Footer */
.site-footer { background: var(--footer); color: var(--footer-ink); padding: 56px 0 0; }
.site-footer .grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; font-family: var(--font-body); font-weight: 600; }
.site-footer a { color: var(--footer-ink); display: block; padding: 4px 0; font-size: .93rem; }
.site-footer a:hover { color: #fff; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: var(--footer-ink); }
.site-footer p { font-size: .9rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; font-size: .82rem; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }

/* WhatsApp FAB */
.wa-fab { position: fixed; right: 18px; bottom: 90px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px rgba(37,211,102,.45); transition: transform .2s; }
.wa-fab:hover { transform: scale(1.08); }
.wa-fab svg { width: 26px; height: 26px; }

/* Toast */
.toast { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: all .3s; z-index: 200; white-space: nowrap; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

.view { display: none; }
.view.active { display: block; }
.page-hero { position: relative; padding: calc(var(--nav-h) + 60px) 0 56px; background: var(--bg-soft); }
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.1rem); max-width: 20ch; }
.page-hero p { color: var(--ink-2); max-width: 60ch; font-size: 1.08rem; }

.contacto-grid { display: grid; gap: 28px; }

@media (min-width: 640px) {
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .trip-grid { grid-template-columns: repeat(2, 1fr); }
  .field-row { grid-template-columns: 1fr 1fr; }
  .site-footer .grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .nav-links { display: flex; }
  .burger { display: none; }
  .service-grid { grid-template-columns: repeat(4, 1fr); }
  .trip-grid { grid-template-columns: repeat(3, 1fr); }
  .contacto-grid { grid-template-columns: 1.2fr 1fr; }
  .section { padding: 96px 0; }
  .hero { min-height: 86vh; }
}
