/* VAGACION - CSS propio, mobile first. Sin frameworks ni compilación. */

:root {
    /* Paleta tomada del logotipo (v1.1) */
    --ink: #0B2A4A;        /* azul noche: texto y fondos oscuros */
    --ink-soft: #17416E;
    --navy: #06407F;       /* azul del nombre "vagacion" */
    --sky: #1565D8;        /* azul del avión */
    --sky-dark: #0E4FB0;
    --cyan: #00AEEF;       /* estela */
    --teal: #0E9F9A;       /* la V */
    --salar: #F4F8FB;
    --white: #fff;
    --sun: #FDB515;        /* sol */
    --sun-deep: #FF8A2A;
    --cta: #FFA41B;        /* botón principal: el sol, con texto azul noche */
    --cta-dark: #F28C0A;
    --coral: var(--cta);           /* alias de versiones anteriores */
    --coral-dark: var(--sky-dark);
    --lake: #0B5CC4;       /* enlaces */
    --line: #D6E2EC;
    --muted: #4A6178;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --radius: 12px;
    --radius-sm: 8px;
    --container: 1120px;
    --gutter: 1.25rem;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--salar);
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--lake); }
a:hover { color: var(--ink); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

.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; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 0; }

/* ---------- Header ---------- */
.site-header { background: var(--white); color: var(--ink); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(11,42,74,.06); }
.header-bar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; height: 36px; width: auto; }
@media (min-width: 820px) { .brand-logo { height: 42px; } }
.brand-name { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }

.nav-toggle { background: none; border: 0; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; content: ""; position: relative; }
.nav-toggle-bars::before { position: absolute; top: -7px; }
.nav-toggle-bars::after  { position: absolute; top: 7px; }

.main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--line); padding: .5rem var(--gutter) 1rem; box-shadow: 0 14px 24px rgba(11,42,74,.12); }
.main-nav.is-open { display: block; }
.main-nav ul { list-style: none; display: grid; }
.main-nav a { display: block; padding: .8rem 0; color: var(--ink); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.main-nav a:hover { color: var(--sky); }
.main-nav a[aria-current="page"] { color: var(--sky); }

@media (min-width: 820px) {
    .nav-toggle { display: none; }
    .main-nav { display: block; position: static; background: none; border: 0; padding: 0; box-shadow: none; }
    .main-nav ul { display: flex; gap: 1.6rem; }
    .main-nav a { border: 0; padding: .4rem 0; border-bottom: 3px solid transparent; }
    .main-nav a[aria-current="page"] { border-bottom-color: var(--sun); color: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; background: var(--sky) linear-gradient(180deg, #2D8BE6, #0E4FB0); color: var(--white); overflow: hidden;
    min-height: 500px; padding: 2.6rem 0 9rem; display: flex; align-items: flex-start;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 50%; max-width: none; }
/* Velo para leer el texto sobre la foto: arriba en móvil, a la izquierda en escritorio */
.hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(6,32,66,.78) 0%, rgba(6,32,66,.42) 42%, rgba(6,32,66,0) 70%);
}
.hero-inner { position: relative; z-index: 2; }
.hero h1 { font-size: clamp(2.2rem, 7vw, 4.2rem); font-weight: 800; max-width: 14ch; margin-bottom: .4em; text-shadow: 0 2px 18px rgba(6,32,66,.35); }
.hero-lead { font-size: 1.1rem; max-width: 36ch; color: #EAF4FF; margin: 0; text-shadow: 0 1px 10px rgba(6,32,66,.45); }
.hero-ridge {
    position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--salar); z-index: 2;
    clip-path: polygon(0 100%, 0 55%, 14% 30%, 27% 52%, 44% 16%, 60% 48%, 76% 24%, 90% 50%, 100% 36%, 100% 100%);
}
@media (min-width: 700px) {
    .hero { min-height: clamp(520px, 44vw, 700px); padding: 4.5rem 0 10rem; align-items: flex-start; }
    .hero::before { background: linear-gradient(90deg, rgba(6,32,66,.80) 0%, rgba(6,32,66,.50) 34%, rgba(6,32,66,0) 62%); }
    .hero-ridge { height: 70px; }
}

/* ---------- Buscador ---------- */
.search-wrap { margin-top: -5.5rem; position: relative; z-index: 5; }
.search-card { background: var(--white); border-radius: var(--radius); box-shadow: 0 10px 30px rgba(15,42,61,.18); overflow: hidden; }
.tabs { display: flex; border-bottom: 1px solid var(--line); }
.tabs button {
    flex: 1; background: none; border: 0; padding: .95rem .5rem; font: inherit; font-weight: 700; color: var(--muted);
    cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--sun); }

.search-form { display: grid; gap: .8rem; padding: 1.1rem; }
.field label { display: block; font-size: .85rem; font-weight: 600; color: var(--muted); margin-bottom: .2rem; }
.field input {
    width: 100%; font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--white); color: var(--ink); min-height: 46px;
}
.field input:focus { border-color: var(--lake); outline: 2px solid var(--lake); outline-offset: 0; }

@media (min-width: 720px) {
    .search-form { grid-template-columns: repeat(4, 1fr); align-items: end; padding: 1.4rem; }
    .search-form .btn { grid-column: 4; }
    .search-form .field-wide { grid-column: span 2; }
}
@media (min-width: 1000px) {
    #home-v-form, #vuelos-form { grid-template-columns: 1.3fr 1.3fr .9fr .9fr .6fr auto; }
    #home-v-form .btn, #vuelos-form .btn { grid-column: auto; }
}

/* ---------- Botones ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; font: inherit; font-weight: 700; text-decoration: none;
    padding: .75rem 1.4rem; min-height: 46px; border-radius: var(--radius-sm); border: 0; cursor: pointer;
}
.btn-primary { background: var(--coral); color: var(--white); }
.btn-primary:hover { background: var(--coral-dark); color: var(--white); }

/* ---------- Secciones ---------- */
.section { padding-block: 3rem; }
.section-soft { background: var(--white); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; margin-bottom: 1.2rem; }
.section-head h2 { margin: 0; }
.link-more { font-weight: 600; }

.dest-grid { list-style: none; display: grid; gap: .9rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .dest-grid { grid-template-columns: repeat(3, 1fr); gap: 1.1rem; } }
.dest-card {
    display: flex; flex-direction: column; justify-content: flex-end; min-height: 170px; padding: 1rem; border-radius: var(--radius);
    color: var(--white); text-decoration: none; position: relative; overflow: hidden;
}
.dest-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,24,36,.62), rgba(8,24,36,0) 60%); }
.dest-card > * { position: relative; z-index: 1; }
.dest-card:hover { color: var(--white); }
.dest-card:hover .dest-name { text-decoration: underline; text-underline-offset: 4px; }
.dest-country { font-size: .9rem; opacity: .92; }
.dest-name { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.02em; }
@media (min-width: 720px) { .dest-card { min-height: 220px; } }

/* Colores provisionales hasta que cada destino tenga su foto */
.tone-a { background: linear-gradient(135deg, #1565D8, #0B2A4A); }
.tone-b { background: linear-gradient(135deg, #2E9C75, #134B3B); }
.tone-c { background: linear-gradient(135deg, #F08A4B, #A8321C); }
.tone-d { background: linear-gradient(135deg, #8F6B3E, #3C2A17); }
.tone-e { background: linear-gradient(135deg, #C74B50, #5A1D2C); }
.tone-f { background: linear-gradient(135deg, #7FB5C9, #274E68); }

.steps { list-style: none; counter-reset: paso; display: grid; gap: 1.2rem; margin-top: 1.4rem; }
.steps li { counter-increment: paso; padding-left: 3.2rem; position: relative; }
.steps li::before {
    content: counter(paso); position: absolute; left: 0; top: 0; width: 2.3rem; height: 2.3rem; display: grid; place-items: center;
    background: var(--sun); color: var(--ink); font-weight: 800; border-radius: 50%;
}
.steps h3 { margin-bottom: .15em; font-size: 1.15rem; }
.steps p { margin: 0; color: var(--muted); }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; } }

/* ---------- Páginas ---------- */
.page { padding-block: 2.5rem 4rem; }
.page h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.prose { max-width: 70ch; }
.prose h2 { font-size: 1.4rem; margin-top: 1.6em; }
.debug { background: var(--ink); color: #E6EEF3; padding: 1rem; overflow: auto; border-radius: var(--radius-sm); font-size: .8rem; }

.breadcrumbs { padding-top: 1rem; font-size: .9rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFE0EA; margin-top: 3rem; padding-top: 2.5rem; }
.footer-grid { display: grid; gap: 1.8rem; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; max-width: 38ch; }
.footer-brand .brand-name { color: var(--white); font-size: 1.5rem; margin-bottom: .4rem; }
.footer-logo { display: block; height: 44px; width: auto; margin-bottom: .9rem; }
.site-footer h2 { font-size: 1rem; color: var(--white); margin-bottom: .6rem; }
.site-footer ul { list-style: none; display: grid; gap: .4rem; }
.site-footer a { color: #CFE0EA; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--ink-soft); margin-top: 2rem; padding-block: 1.2rem 2rem; font-size: .85rem; }
.footer-legal p { margin-bottom: .5rem; max-width: 80ch; }
@media (min-width: 820px) {
    .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
    .footer-brand { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}

[hidden] { display: none !important; }

/* ---------- Fase 5: buscadores, resultados, ofertas ---------- */
.opt { font-weight: 400; opacity: .8; }
.muted { color: var(--muted); }
.fineprint { font-size: .85rem; color: var(--muted); max-width: 70ch; }
.btn-small { padding: .45rem .9rem; min-height: 38px; font-size: .92rem; }
.search-card-flat { margin-top: 1.4rem; box-shadow: 0 2px 10px rgba(15,42,61,.1); }

.place { position: relative; }
.place-list {
    position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: .25rem 0; list-style: none;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 10px 24px rgba(15,42,61,.18);
    max-height: 300px; overflow-y: auto; min-width: 240px;
}
.place-list li { padding: .55rem .8rem; cursor: pointer; display: flex; flex-direction: column; line-height: 1.3; }
.place-list li small { color: var(--muted); }
.place-list li[aria-selected="true"], .place-list li:hover { background: #E8F1F5; }

.alert { border-radius: var(--radius-sm); padding: .8rem 1rem; margin-top: 1rem; }
.alert ul { list-style: none; display: grid; gap: .25rem; }
.alert-error { background: #FDECEA; border: 1px solid #F3B8B0; color: #7A1F12; }

.result-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-block: 1.4rem; }
.result-card h2 { font-size: 1.35rem; margin-bottom: .2em; }
.brand-list { list-style: none; display: flex; flex-wrap: wrap; gap: .7rem; margin-block: 1rem; }

.price-list { list-style: none; display: grid; gap: .7rem; margin-top: 1rem; }
.price-list li {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem;
    background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: .8rem 1rem;
}
.price-list li > div:first-child { display: grid; }
.price-actions { display: flex; align-items: center; gap: 1rem; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--ink); }

.offer-grid { margin-top: 1.4rem; }
.offer-card {
    display: flex; flex-direction: column; gap: .2rem; min-height: 150px; justify-content: flex-end; padding: 1rem;
    background: var(--ink); color: var(--white); border-radius: var(--radius); text-decoration: none; border-bottom: 5px solid var(--sun);
}
.offer-card:hover { background: var(--ink-soft); color: var(--white); }
.offer-card .price { color: var(--sun); font-size: 1.35rem; }
.offer-dest { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.offer-date { font-size: .9rem; color: #CFE0EA; }

.cookie-notice {
    position: fixed; z-index: 90; left: 1rem; right: 1rem; bottom: 1rem; max-width: 640px; margin-inline: auto;
    background: var(--ink); color: #E6EEF3; padding: 1rem 1.1rem; border-radius: var(--radius);
    display: flex; flex-wrap: wrap; align-items: center; gap: .7rem 1rem; box-shadow: 0 10px 30px rgba(0,0,0,.3); font-size: .9rem;
}
.cookie-notice p { margin: 0; flex: 1 1 280px; }
.cookie-notice a { color: var(--sun); }

/* ---------- Fase 2: cuentas ---------- */
.nav-user { display: flex; align-items: center; gap: 1rem; padding-top: .6rem; }
.nav-user a { color: var(--ink); font-weight: 700; text-decoration: none; }
.nav-user a:hover { color: var(--sky); }
.site-header .link-button { color: var(--muted); }
.site-header .link-button:hover { color: var(--sky); }
.inline-form { display: inline; margin: 0; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: #CFE0EA; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--sun); }
@media (min-width: 820px) {
    .nav-user { padding: 0 0 0 1.6rem; margin-left: 1.2rem; border-left: 1px solid var(--line); }
    .main-nav { display: flex; align-items: center; }
}

.flash-wrap { padding-top: 1rem; }
.alert-ok { background: #E7F5EC; border: 1px solid #A9D9B8; color: #155B2E; }
.alert-warn { background: #FFF5DB; border: 1px solid #F0D58A; color: #6B4E00; margin-bottom: 1.2rem; }
.alert-warn p { margin-bottom: .6rem; }

.auth-page { display: flex; justify-content: center; }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem; width: 100%; max-width: 440px; margin-bottom: 1.2rem; }
.form-card h1 { font-size: 1.7rem; }
.form-card h2 { font-size: 1.2rem; }
.form-card .field { margin-bottom: .9rem; }
.form-hint { display: block; color: var(--muted); font-size: .82rem; margin-top: .25rem; }
.form-links { margin: 1rem 0 0; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-danger { background: #B3261E; color: var(--white); }
.btn-danger:hover { background: #8C1D17; color: var(--white); }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: 1rem; }
.check input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.account { max-width: 940px; }
.account .form-card { max-width: none; }
.account-grid { display: grid; gap: 1.2rem; }
@media (min-width: 820px) { .account-grid { grid-template-columns: 1fr 1fr; } }
.field input[readonly] { background: var(--salar); color: var(--muted); }
.danger-zone summary { cursor: pointer; font-weight: 700; color: #8C1D17; }
.danger-zone[open] summary { margin-bottom: .8rem; }

/* ---------- Fase 3: destinos ---------- */
.btn { background: var(--white); color: var(--ink); border: 1px solid var(--line); }
.btn:hover { background: #E8F1F5; color: var(--ink); }
.btn-primary { border-color: transparent; }
.btn-ghost { background: rgba(255,255,255,.14); color: var(--white); border: 1px solid rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.28); color: var(--white); }
.btn-ghost[aria-pressed="true"] { background: var(--sun); color: var(--ink); border-color: var(--sun); }

.dest-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.sub-h { font-size: clamp(1.25rem, 3.5vw, 1.6rem); margin: 2rem 0 1rem; }
.dest-search { display: flex; gap: .6rem; max-width: 520px; margin-top: 1.2rem; }
.dest-search input { flex: 1; min-width: 0; font: inherit; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: var(--radius-sm); min-height: 46px; background: var(--white); color: var(--ink); }
.dest-search input:focus { border-color: var(--lake); outline: 2px solid var(--lake); outline-offset: 0; }
.country-list { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; }
.country-list a { display: inline-block; padding: .5rem 1rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; }
.country-list a:hover { border-color: var(--lake); }

.dest-hero { position: relative; color: var(--white); overflow: hidden; padding: 2.5rem 0 2rem; }
.dest-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,24,36,.7), rgba(8,24,36,.15)); }
.dest-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-hero-inner { position: relative; z-index: 1; }
.dest-hero h1 { font-size: clamp(2.2rem, 7vw, 4rem); font-weight: 800; margin-bottom: .2em; }
.dest-hero-country { margin: 0 0 .3rem; font-weight: 600; }
.dest-hero-country a { color: #E6EEF3; text-decoration: none; }
.dest-hero-country a:hover { text-decoration: underline; }
.dest-hero-summary { font-size: 1.12rem; max-width: 56ch; color: #F0F5F8; }
@media (min-width: 820px) { .dest-hero { padding: 4.5rem 0 3rem; } }

.dest-layout { display: grid; gap: 1.6rem; padding-block: 2rem; }
@media (min-width: 960px) { .dest-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .dest-aside { position: sticky; top: 76px; } }
.facts { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
@media (min-width: 640px) { .facts { grid-template-columns: 1fr 1fr; } }
.facts section, .tip-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.facts h2, .tip-box h2, .highlights h2 { font-size: 1.1rem; margin-bottom: .3em; }
.facts p, .tip-box p { margin: 0; color: var(--muted); }
.highlights { margin-bottom: 1.4rem; }
.highlights ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.highlights li { background: #FFF3D6; border: 1px solid #F3DDA0; border-radius: 999px; padding: .35rem .9rem; font-weight: 600; font-size: .95rem; }
.guide { max-width: none; }
.guide h2 { font-size: 1.4rem; margin-top: 1.6em; }
.guide ul { padding-left: 1.2rem; margin-bottom: 1em; }
.guide li { margin-bottom: .35em; }
.tip-box { margin-top: 1.4rem; background: #E7F5EC; border-color: #A9D9B8; }
.tip-box p { color: #155B2E; }
.dest-aside .result-card { margin-block: 0; }
.dest-aside h2 { font-size: 1.25rem; }
.dest-aside .btn-block + .btn-block, .dest-aside p + p { margin-top: .2rem; }
.mini-prices { list-style: none; display: grid; gap: .4rem; margin-bottom: .6rem; }
.mini-prices li { display: flex; justify-content: space-between; gap: 1rem; padding: .45rem .7rem; background: var(--salar); border-radius: var(--radius-sm); font-size: .95rem; }
.fav-form { display: inline; }

/* ---------- Turnstile ---------- */
.ts-wrap { margin-bottom: 1rem; min-height: 65px; }   /* reserva el alto del widget y evita saltos de diseño */
.ts-wrap .ts-msg { margin: .6rem 0 0; }

/* ---------- Fase 4: VAGACION MAG ---------- */
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.2rem 0 1.6rem; }
.chips a { padding: .4rem .95rem; background: var(--white); border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .93rem; color: var(--ink); }
.chips a:hover { border-color: var(--lake); }
.chips a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chips a[aria-current="page"] .muted { color: #CFE0EA; }

.art-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr; margin-top: 1.2rem; }
@media (min-width: 640px) { .art-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .art-grid { grid-template-columns: repeat(3, 1fr); } }
.art-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.art-media { display: block; aspect-ratio: 16 / 9; position: relative; overflow: hidden; }
.art-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.art-body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.art-cat { font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--coral-dark); text-decoration: none; }
.art-title { font-size: 1.15rem; margin: 0; line-height: 1.25; }
.art-title a { color: var(--ink); text-decoration: none; }
.art-title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.art-excerpt { color: var(--muted); margin: 0; font-size: .95rem; }
.art-meta { color: var(--muted); font-size: .85rem; margin: auto 0 0; padding-top: .4rem; }
@media (min-width: 820px) {
    .art-card-big { flex-direction: row; }
    .art-card-big .art-media { width: 55%; aspect-ratio: auto; min-height: 320px; }
    .art-card-big .art-body { padding: 1.6rem 1.8rem; justify-content: center; }
    .art-card-big .art-title { font-size: 1.8rem; }
}
.pagination { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; }
.pagination a { font-weight: 700; }

.art-head { padding-top: 1.6rem; max-width: 820px; }
.art-head h1 { font-size: clamp(1.9rem, 5vw, 3rem); }
.art-cats { margin: 0 0 .4rem; display: flex; gap: .6rem; flex-wrap: wrap; }
.art-hero { width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--radius); margin-block: 1rem; }
.art-layout { display: grid; gap: 1.6rem; padding-block: 1rem 2rem; }
@media (min-width: 960px) { .art-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .art-aside { position: sticky; top: 76px; } }
.art-content { max-width: 72ch; }
.art-content h2, .art-content h3 { scroll-margin-top: 80px; }
.art-content img { max-width: 100%; height: auto; border-radius: var(--radius-sm); display: block; margin-block: 1rem; }
.art-aside .result-card { margin-block: 0 1rem; }
.toc ol { padding-left: 1.1rem; margin: 0; } .toc li { margin-bottom: .35rem; }
.share ul { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; }
.share h2 { font-size: 1.1rem; }
.preview-bar { background: #FFF5DB; border-bottom: 1px solid #F0D58A; color: #6B4E00; padding: .6rem 1rem; text-align: center; font-size: .95rem; }

/* ---------- Identidad visual v1.1 (al final para ganar en la cascada) ---------- */
/* El botón principal es el sol del logo: naranja con texto azul noche (contraste AA). */
.btn-primary { background: var(--cta); color: var(--ink); border-color: transparent; }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--cta-dark); color: var(--ink); }
.btn-primary:active { transform: translateY(1px); }
.art-cat { color: var(--sky-dark); }
.place-list li[aria-selected="true"], .place-list li:hover { background: #E7F1FD; }
.btn:hover { background: #E7F1FD; }
.btn-primary:hover { background: var(--cta-dark); }

/* ---------- Espacios para widgets (v1.3) ---------- */
.wslot { margin: 1.5rem 0; }
.wslot-title { font-size: 1.25rem; margin-bottom: .6rem; }
.wslot-embed { max-width: 100%; overflow-x: auto; }
.wslot-embed iframe { max-width: 100%; border: 0; }
.wslot-wrap { margin-top: 1rem; margin-bottom: 1rem; }
.wslot-wrap-bottom { margin-top: 2rem; }
.dest-aside .wslot { margin-top: 1rem; }
.tips-list { padding-left: 1.2rem; display: grid; gap: .6rem; max-width: 70ch; }
