:root {
  --navy: #142B4D;
  --navy-2: #1d3a63;
  --gold: #A9904E;
  --gold-soft: #e9e0c8;
  --wa: #16845B;
  --wa-dark: #0f6b49;
  --ink: #1b2433;
  --muted: #56627a;
  --line: #e2e6ee;
  --white: #ffffff;
  --ivory: #fbf9f3;
  --mist: #f3f6fa;
  --cream: #f8f3e7;
  --lina: #1c3d2e;
  --lina-soft: #e6eee8;
  --radius: 18px;
  color-scheme: light;
  --shadow: 0 10px 30px rgba(20, 43, 77, .08);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 600; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 16px; } }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Topbar */
.topbar { background: var(--navy); color: #fff; font-size: .82rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.topbar__label { color: var(--gold-soft); letter-spacing: .02em; }
.topbar__links { display: flex; gap: 20px; flex-wrap: wrap; }
.topbar__links a { text-decoration: none; opacity: .92; }
.topbar__links a:hover { opacity: 1; text-decoration: underline; }
.topbar__links strong { color: var(--gold-soft); font-weight: 600; margin-right: 4px; }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.brands { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.logo--jy { width: 56px; height: 56px; object-fit: contain; }
.logo--lina { width: 112px; height: 56px; object-fit: contain; }
.brands__divider { width: 1px; align-self: stretch; min-height: 40px; background: var(--gold); opacity: .6; }
.nav__links { list-style: none; display: flex; gap: 6px; margin: 0 0 0 auto; padding: 0; }
.nav__links a { display: inline-block; padding: 10px 12px; text-decoration: none; font-weight: 500; font-size: .93rem; color: var(--navy); border-radius: 10px; }
.nav__links a:hover { background: var(--mist); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font: 600 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background .2s, transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: .9rem; }
.btn--wa { background: var(--wa); color: #fff; box-shadow: 0 6px 16px rgba(22,132,91,.25); }
.btn--wa:hover { background: var(--wa-dark); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-2); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--outline:hover { background: var(--mist); }
.btn--ghost { background: var(--white); color: var(--navy); border-color: var(--line); border-radius: 12px; }
.btn--ghost:hover { border-color: var(--navy); }

/* Labels */
.eyebrow, .label {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 .78rem/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before, .label::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.section-intro { color: var(--muted); max-width: 44em; font-size: 1.05rem; }

/* Hero */
.hero { background: var(--ivory); padding: 72px 0 80px; border-bottom: 1px solid var(--line); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.brand-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.brand-card__logos { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 24px; }
.brand-card__logos img:first-child { width: 140px; height: 140px; object-fit: contain; }
.brand-card__logos img:last-child { width: 200px; height: 100px; object-fit: contain; }
.brand-card p { color: var(--muted); }
.brand-card__note { display: flex; gap: 12px; background: var(--cream); border-radius: 12px; padding: 14px 16px; margin: 0; font-size: .93rem; color: var(--ink) !important; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-top: .55em; flex: none; }

/* Explorer */
.explorer { padding: 80px 0 40px; }
.explorer__panel { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.explorer__q { font-size: 1.35rem; }
.search__label { display: block; font-weight: 600; font-size: .9rem; color: var(--navy); margin-bottom: 8px; }
.search__row { display: flex; gap: 10px; }
.search input {
  flex: 1; min-width: 0; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1.5px solid var(--line); font: 400 1rem var(--sans); color: var(--ink); background: var(--white);
}
.search input:focus { border-color: var(--navy); outline: none; box-shadow: 0 0 0 3px rgba(169,144,78,.35); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.chip {
  min-height: 42px; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--white); color: var(--navy); font: 500 .92rem var(--sans); cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.quick__card {
  display: flex; gap: 14px; align-items: flex-start; text-align: left; padding: 18px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--mist); color: var(--navy); font: 600 1rem/1.4 var(--sans); cursor: pointer;
  transition: border-color .2s, background .2s;
}
.quick__card:hover { border-color: var(--gold); background: var(--white); }
.quick__card.is-active { border-color: var(--gold); background: var(--cream); }
.quick__num { font-family: var(--serif); color: var(--gold); font-size: 1.3rem; line-height: 1.1; }
.status { margin: 18px 0 0; font-size: .92rem; color: var(--muted); }

/* Sections */
.section { padding: 80px 0; }
.section--white { background: var(--white); }
.section--mist { background: var(--mist); }
.section--cream { background: var(--cream); }

.tax-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 32px; }
.tax-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; border-top: 3px solid var(--gold); }
.tax-card p { color: var(--muted); flex: 1; }
.wa-link { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; color: var(--wa); font-weight: 600; text-decoration: none; font-size: .95rem; padding: 6px 0; }
.wa-link span { color: var(--muted); font-weight: 500; font-size: .85rem; width: 100%; }
.wa-link:hover { text-decoration: underline; }

.groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 32px; }
.group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.group:first-child { grid-column: 1 / -1; }
.group__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.group__head h3 { margin: 0; }
.svc-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.group:first-child .svc-list { columns: 3; }
.svc-list li { position: relative; padding: 6px 0 6px 20px; break-inside: avoid; }
.svc-list li::before { content: ""; position: absolute; left: 2px; top: 1.05em; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--gold); }
.svc-list--one { columns: 1; }

.legal { margin-top: 32px; background: var(--white); border: 1px solid var(--gold-soft); border-left: 4px solid var(--gold); border-radius: 14px; padding: 22px 26px; }
.legal p:last-child { margin: 0; color: var(--ink); }

.lina { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lina__card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); }
.lina__card img { width: 180px; height: 90px; object-fit: contain; margin-bottom: 12px; }

.empty { max-width: 1180px; margin: 0 auto; padding: 40px 24px; text-align: center; color: var(--muted); font-size: 1.05rem; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: var(--navy); text-decoration: underline; font-weight: 600; cursor: pointer; }

.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 28px; }
.contact-card { border: 1px solid var(--line); border-radius: 24px; padding: 30px; box-shadow: var(--shadow); background: var(--white); }
.contact-card img { height: 72px; width: auto; object-fit: contain; margin-bottom: 14px; }
.contact-card p { color: var(--muted); }
.contact-card .phone { font-family: var(--serif); font-size: 1.4rem; color: var(--navy); }
.contact-card__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.footer { background: var(--navy); color: #dfe5ef; padding: 48px 0 40px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.footer__logos { display: flex; align-items: center; gap: 18px; background: #fff; padding: 12px 20px; border-radius: 16px; }
.footer__logos img:first-child { width: 64px; height: 64px; object-fit: contain; }
.footer__logos img:last-child { width: 128px; height: 64px; object-fit: contain; }
.footer__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer__legal { width: 100%; font-size: .85rem; opacity: .8; margin: 8px 0 0; border-top: 1px solid rgba(255,255,255,.15); padding-top: 20px; }

/* --- Visual refinements --- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  /* Ruta dorada: eco del trazo del avión en el logo de J&Y */
  content: ""; position: absolute; right: -180px; top: -220px; width: 760px; height: 760px;
  border-radius: 50%; border: 1px solid rgba(169,144,78,.28); pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; right: -60px; top: -120px; width: 560px; height: 560px;
  border-radius: 50%; border: 1px dashed rgba(169,144,78,.22); pointer-events: none;
}
.hero__grid { position: relative; z-index: 1; }
.pillars { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; padding: 22px 0 0; margin: 28px 0 0; border-top: 1px solid var(--line); }
.pillars li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--navy); font-weight: 500; }
.pillars li::before { content: ""; width: 6px; height: 6px; transform: rotate(45deg); background: var(--gold); }
.brand-card { position: relative; }
.brand-card::before { content: ""; position: absolute; inset: 10px; border: 1px solid var(--gold-soft); border-radius: 16px; pointer-events: none; }
.brand-card > * { position: relative; }

.tax-card { border-top: 1px solid var(--line); gap: 4px; transition: transform .25s, box-shadow .25s; }
.tax-card:hover { transform: translateY(-3px); box-shadow: 0 16px 36px rgba(20,43,77,.12); }
.tax-card__icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--cream); color: var(--gold); margin-bottom: 14px; }
.tax-card__icon svg { width: 24px; height: 24px; }

.group__head h3 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.count { font: 600 .75rem/1 var(--sans); letter-spacing: .04em; color: var(--gold); background: var(--cream); padding: 5px 9px; border-radius: 999px; font-variant-numeric: tabular-nums; }

.section--cream { background: linear-gradient(180deg, var(--cream), var(--ivory)); }
#lina .label { color: var(--lina); }
#lina .label::before { background: var(--lina); }
#lina h2 { color: var(--lina); }
.lina__card { border-color: rgba(28,61,46,.18); }
.lina__card h3 { color: var(--lina); }
.lina__card .svc-list li::before { border-color: var(--lina); background: var(--lina-soft); }
.btn--lina { background: var(--lina); color: #fff; }
.btn--lina:hover { background: #142e22; }

.legal { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; }
.legal__icon { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--gold); }
.legal__icon svg { width: 22px; height: 22px; }
.legal .label { margin-bottom: 0; }

.contact-card { display: flex; flex-direction: column; align-items: flex-start; }
.contact-card--lina { border-color: rgba(28,61,46,.2); }
.contact-card--lina h3, .contact-card--lina .phone { color: var(--lina); }

@media (prefers-reduced-motion: reduce) {
  .btn, .tax-card { transition: none; }
  .btn:hover, .tax-card:hover { transform: none; }
}

/* Filtering */
[hidden] { display: none !important; }

/* Mobile bar */
.mobile-bar { display: none; }

/* Responsive */
@media (max-width: 1080px) {
  .nav { gap: 14px; }
  .nav__links a { padding: 8px 8px; font-size: .88rem; }
  .tax-grid { grid-template-columns: repeat(2, 1fr); }
  .group:first-child .svc-list { columns: 2; }
}
@media (max-width: 900px) {
  .nav { flex-wrap: wrap; padding-top: 10px; padding-bottom: 6px; }
  .nav nav { order: 3; width: 100%; }
  .nav__links { margin: 0; overflow-x: auto; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a { white-space: nowrap; }
  .nav__cta { margin-left: auto; }
  .hero__grid, .lina { grid-template-columns: 1fr; gap: 36px; }
  .hero { padding: 48px 0 56px; }
  .quick { grid-template-columns: 1fr; }
  .groups { grid-template-columns: 1fr; }
  html { scroll-padding-top: 130px; }
}
@media (max-width: 640px) {
  .section { padding: 56px 0; }
  .explorer { padding: 56px 0 24px; }
  .explorer__panel, .brand-card, .group, .lina__card, .contact-card { padding: 20px; border-radius: 18px; }
  .tax-grid, .contact-grid { grid-template-columns: 1fr; }
  .svc-list, .group:first-child .svc-list { columns: 1; }
  .hero__actions .btn { width: 100%; }
  .contact-card .btn { width: 100%; }
  .brand-card__logos img:first-child { width: 100px; height: 100px; }
  .brand-card__logos img:last-child { width: 150px; height: 75px; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 2px 20px 8px; scrollbar-width: thin; }
  .nav__cta { display: none; }
  .logo--jy { width: 46px; height: 46px; }
  .logo--lina { width: 92px; height: 46px; }
  .topbar__label { display: none; }
  .topbar__inner { justify-content: center; }
  .search__row { flex-direction: column; }
  .search__row .btn { width: 100%; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20,43,77,.08);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px;
    border-radius: 999px; background: var(--wa); color: #fff; font-weight: 600; text-decoration: none;
  }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
}

/* Dirección */
.topbar__label a { color: inherit; text-decoration: none; }
.topbar__label a:hover { text-decoration: underline; }
.address { display: inline-flex; align-items: flex-start; gap: 8px; color: var(--navy); text-decoration: none; line-height: 1.5; margin: -4px 0 18px; font-weight: 500; }
.address .ico { margin-top: .2em; color: var(--gold); }
.address:hover span { text-decoration: underline; }
.footer__address { display: inline-flex; align-items: center; gap: 8px; color: #dfe5ef; text-decoration: none; width: 100%; font-size: .95rem; }
.footer__address .ico { color: var(--gold); }
.footer__address:hover { text-decoration: underline; }

/* Agendar cita: azul del logo J&Y, brillo y flecha al pasar el mouse */
.btn--book {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(135deg, #1f56c2 0%, #0d3a8f 100%);
  color: #fff; border-color: rgba(255,255,255,.12);
  box-shadow: 0 8px 20px rgba(13,58,143,.32), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .25s ease, box-shadow .25s ease, background-position .25s;
}
.btn--book::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s ease;
}
.btn--book .ico { transition: transform .35s cubic-bezier(.34,1.56,.64,1); }
.btn__arrow { display: inline-block; width: 0; opacity: 0; margin-left: -10px; transform: translateX(-6px); transition: width .25s, opacity .25s, margin .25s, transform .25s; }
.btn--book:hover, .btn--book:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(13,58,143,.4), inset 0 1px 0 rgba(255,255,255,.22);
}
.btn--book:hover::before, .btn--book:focus-visible::before { transform: translateX(120%); }
.btn--book:hover .ico, .btn--book:focus-visible .ico { transform: rotate(-8deg) scale(1.15); }
.btn--book:hover .btn__arrow, .btn--book:focus-visible .btn__arrow { width: 1em; opacity: 1; margin-left: 0; transform: translateX(0); }
.btn--book:active { transform: translateY(0) scale(.98); box-shadow: 0 4px 12px rgba(13,58,143,.3); }
.btn--book:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
/* Pulso suave una sola vez al cargar para llamar la atención */
.hero .btn--book { animation: book-pulse 2.4s ease-out .8s 2; }
@keyframes book-pulse {
  0% { box-shadow: 0 8px 20px rgba(13,58,143,.32), 0 0 0 0 rgba(31,86,194,.45); }
  70% { box-shadow: 0 8px 20px rgba(13,58,143,.32), 0 0 0 14px rgba(31,86,194,0); }
  100% { box-shadow: 0 8px 20px rgba(13,58,143,.32), 0 0 0 0 rgba(31,86,194,0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn--book, .btn--book::before, .btn--book .ico, .btn__arrow { transition: none; }
  .hero .btn--book { animation: none; }
  .btn--book:hover { transform: none; }
}
