/* Avanza Canarias · estilos
   Colores de la bandera de Canarias: blanco, azul y amarillo, con azul atlántico para textos. */
[hidden] { display: none !important; }
:root {
  --ink: #0B3A66;
  --ink-2: #3C5368;
  --chip-ink: #23415E;
  --blue: #0768A9;
  --blue-dark: #055688;
  --yellow: #FFCC00;
  --sand: #FFF4CC;
  --ground: #F4F8F9;
  --surface: #FFFFFF;
  --line: #D6E2E6;
  --line-soft: #E4ECEF;
  --chip: #EEF3F6;
  --good: #1E7B46;
  --good-bg: #E3F4EA;
  --bad: #A8322D;
  --bad-bg: #FBE7E5;
  --info-bg: #E5F0FA;
  --night: #0B3A66;
  --night-2: #134B7E;
  --night-line: #2A6299;
  --night-text: #D3E3F1;
  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', 'Segoe UI', system-ui, sans-serif;
  --radius: 14px;
  --radius-lg: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--ground); }
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2rem, 4.5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; font-family: var(--font-body); letter-spacing: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.narrow { max-width: 760px; }
.muted { color: var(--ink-2); }
.small { font-size: 0.875rem; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 50; background: var(--surface); padding: 10px 14px; border-radius: 8px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font: inherit; font-weight: 600; font-size: 0.95rem; text-decoration: none; cursor: pointer; border: 1px solid transparent; white-space: nowrap; }
.btn-primary { background: var(--blue); color: #FFFFFF; }
.btn-primary:hover { background: var(--blue-dark); color: #FFFFFF; }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: #F2C200; color: var(--ink); }
.btn-dark { background: var(--ink); color: #FFFFFF; }
.btn-dark:hover { background: #082C50; color: #FFFFFF; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #C5D5DB; }
.btn-ghost:hover { background: var(--chip); color: var(--ink); }
.btn-danger { background: var(--surface); color: var(--bad); border-color: #E6B7B3; }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad); }
.btn-sm { min-height: 36px; padding: 6px 12px; font-size: 0.875rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--blue); cursor: pointer; text-decoration: underline; }
form.inline { display: inline; }

/* Cabecera */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 58px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.brand-sub { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue); }
.menu-toggle { display: none; }
.menu-body { display: flex; align-items: center; gap: 28px; }
.main-nav { display: flex; gap: 22px; font-weight: 500; font-size: 0.95rem; }
.main-nav a { color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-name { white-space: nowrap; }
.main-nav a:hover { color: var(--blue); }
.user-nav { display: flex; gap: 8px; align-items: center; }
.user-nav form { margin: 0; }
.count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--yellow); color: var(--ink); font-size: 0.75rem; font-weight: 700; }
@media (max-width: 1180px) {
  .site-header { position: relative; }
  .menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }
  .menu-toggle span:not(.visually-hidden) { display: block; height: 2px; background: var(--ink); border-radius: 2px; }
  .menu-body { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 20px 20px; flex-direction: column; align-items: stretch; gap: 16px; box-shadow: 0 12px 24px rgba(11, 58, 102, 0.12); z-index: 30; }
  .menu.open .menu-body, .no-js .menu-body { display: flex; }
  .no-js .menu-body { position: static; box-shadow: none; }
  .main-nav { flex-direction: column; gap: 4px; }
  .main-nav a { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .user-nav { flex-wrap: wrap; }
}
@media (max-width: 420px) { .brand-sub { display: none; } .brand-name { font-size: 1.1rem; } }

/* Avisos */
.flashes { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.flash-ok { background: var(--good-bg); border-color: #B9E0C8; color: #145232; }
.flash-error { background: var(--bad-bg); border-color: #EDC3BF; color: #7C2420; }
.flash-info { background: var(--info-bg); border-color: #C6DCF0; color: var(--ink); }

/* Portada */
.hero { position: relative; color: #FFFFFF; background: linear-gradient(90deg, rgba(8,44,80,0.96) 0%, rgba(8,44,80,0.86) 36%, rgba(8,44,80,0.35) 64%, rgba(8,44,80,0.08) 100%), url("../img/portada.jpg") 72% 32% / cover no-repeat, var(--night); }
.hero-inner { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; padding-top: 88px; padding-bottom: 96px; }
.hero-copy { flex: 0 1 620px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.hero-islands { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.hero h1 { font-size: clamp(2.3rem, 5vw, 3.75rem); line-height: 1.02; letter-spacing: -0.025em; }
.hero-lead { font-size: 1.2rem; max-width: 34em; }
.hero-search { display: flex; flex-wrap: wrap; gap: 10px; background: var(--surface); padding: 10px; border-radius: 16px; max-width: 640px; }
.hero-search input, .hero-search select { flex: 2 1 220px; min-width: 0; }
.hero-search select { flex: 1 1 150px; }
.hero-chips { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.875rem; font-weight: 600; }
.hero-chips span { padding: 8px 14px; border-radius: 999px; background: rgba(6, 41, 74, 0.45); border: 1px solid rgba(255, 255, 255, 0.35); }
.hero-space { flex: 1 1 300px; min-height: 340px; }
.wave { display: block; width: 100%; height: 72px; position: relative; }
@media (max-width: 760px) {
  .hero { background: linear-gradient(rgba(8,44,80,0.80), rgba(8,44,80,0.92)), url("../img/portada.jpg") 55% 30% / cover no-repeat, var(--night); }
  .hero-inner { padding-top: 48px; padding-bottom: 40px; }
  .hero-space { display: none; }
}

.section { padding-top: 56px; padding-bottom: 24px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; margin-bottom: 24px; }
.section-head p { margin-top: 6px; }
.quote-card { max-width: 760px; margin: 40px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 26px; text-align: center; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.eyebrow { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.quote-card p { font-family: var(--font-display); font-size: clamp(1.25rem, 2.4vw, 1.65rem); line-height: 1.25; font-weight: 500; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.door { display: flex; flex-direction: column; gap: 12px; }
.door svg { width: 40px; height: 40px; }
.door a { margin-top: auto; font-weight: 600; text-decoration: none; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.steps li { display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--blue); padding-top: 18px; }
.steps .step-n { font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--blue); }
.steps strong { font-size: 1.15rem; }
.band { background: var(--sand); margin-top: 32px; }
.band-inner { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; padding-top: 52px; padding-bottom: 52px; }
.band-inner > div { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* Plazas */
.plaza-card { display: flex; flex-direction: column; gap: 14px; }
.plaza-card h3 a { color: var(--ink); text-decoration: none; }
.plaza-card h3 a:hover { color: var(--blue); }
.plaza-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.plaza-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); padding-top: 14px; font-size: 0.875rem; color: var(--ink-2); margin-top: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.8rem; font-weight: 600; }
.chip { padding: 5px 10px; border-radius: 8px; background: var(--chip); color: var(--chip-ink); }
.pill { flex: 0 0 auto; font-size: 0.75rem; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.badge { display: inline-block; font-size: 0.75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-neutral { background: var(--chip); color: var(--chip-ink); }
.badge-info { background: var(--info-bg); color: var(--blue-dark); }
.badge-good { background: var(--good-bg); color: var(--good); }
.badge-bad { background: var(--bad-bg); color: var(--bad); }
.badge-warn { background: var(--sand); color: #6B4E00; }

.search-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 32px; padding-bottom: 48px; }
.filters { flex: 1 1 260px; max-width: 320px; position: sticky; top: 92px; }
.results { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .filters { position: static; max-width: none; } }

.detail { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 32px; padding-bottom: 56px; }
.detail-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.detail-side { flex: 1 1 300px; display: flex; flex-direction: column; gap: 16px; }
.prose { white-space: pre-line; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; }
.facts dt { font-weight: 600; color: var(--ink-2); }
.facts dd { margin: 0; }

/* Formularios */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 600; font-size: 0.95rem; }
.field .hint { font-size: 0.85rem; color: var(--ink-2); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=url], input[type=number], input[type=search], select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface); border: 1px solid #C5D5DB; border-radius: 10px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(7, 104, 169, 0.2); }
[aria-invalid=true] { border-color: var(--bad) !important; }
.field-error { color: var(--bad); font-size: 0.875rem; font-weight: 600; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; accent-color: var(--blue); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 0; }
legend { font-weight: 700; padding: 0 6px; }
.auth { padding-top: 48px; padding-bottom: 64px; }
.auth .card { max-width: 560px; margin: 0 auto; padding: 32px; }
.auth-wide .card { max-width: 820px; }

/* Paneles */
.panel-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-top: 28px; padding-bottom: 56px; }
.side-nav { flex: 1 1 220px; max-width: 260px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; }
.side-nav a { padding: 10px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 500; display: flex; justify-content: space-between; gap: 8px; }
.side-nav a:hover { background: var(--chip); }
.side-nav a[aria-current=page] { background: var(--info-bg); color: var(--blue-dark); font-weight: 700; }
.side-nav .side-title { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 12px 4px; }
.panel-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
@media (max-width: 800px) { .side-nav { max-width: none; flex-direction: row; flex-wrap: wrap; } .side-nav .side-title { display: none; } }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: 1.9rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--ink-2); font-size: 0.9rem; }
.notice { padding: 14px 18px; border-radius: var(--radius); background: var(--sand); border: 1px solid #F0DE95; }
.notice-info { background: var(--info-bg); border-color: #C6DCF0; }
.empty { text-align: center; padding: 36px 24px; color: var(--ink-2); display: flex; flex-direction: column; gap: 12px; align-items: center; }
.table-box { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-2); background: #F8FBFC; }
tr:last-child td { border-bottom: 0; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { padding: 14px 0; border-bottom: 1px solid var(--line-soft); display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
.list li:last-child { border-bottom: 0; }
.unread { font-weight: 700; }
.pager { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pager a, .pager span { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); }
.pager span[aria-current] { background: var(--blue); color: #FFFFFF; border-color: var(--blue); }

/* Páginas de texto */
.page { padding-top: 40px; padding-bottom: 64px; }
.page-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 28px; }
.legal h2 { font-size: 1.35rem; margin-top: 28px; margin-bottom: 8px; }
.legal p, .legal li { max-width: 68ch; }
.legal p + p { margin-top: 10px; }
.legal ul { padding-left: 20px; }

/* Pie */
.site-footer { background: var(--night); color: var(--night-text); margin-top: 32px; }
.site-footer a { color: var(--night-text); text-decoration: none; }
.site-footer a:hover { color: #FFFFFF; text-decoration: underline; }
.tricolor { height: 6px; background: linear-gradient(90deg, #FFFFFF 0 33.33%, var(--blue) 33.33% 66.66%, var(--yellow) 66.66% 100%); }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 44px; padding-bottom: 28px; }
.footer-brand { display: flex; gap: 14px; max-width: 380px; align-items: flex-start; }
.footer-brand strong { color: #FFFFFF; font-family: var(--font-display); font-size: 1.2rem; }
.footer-brand p { font-size: 0.875rem; margin-top: 4px; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.9rem; min-width: 160px; }
.footer-col strong { color: #FFFFFF; }
.footer-bottom { border-top: 1px solid var(--night-line); padding-top: 18px; padding-bottom: 24px; font-size: 0.8rem; }

.cookie-note { position: fixed; left: 16px; right: 16px; bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; max-width: 720px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; box-shadow: 0 12px 30px rgba(11, 58, 102, 0.2); }
.cookie-note p { flex: 1 1 320px; font-size: 0.9rem; }

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

/* Bolsa de empleo */
.pill-job { background: var(--blue); color: #FFFFFF; }
.chip-job { background: var(--info-bg); color: var(--blue-dark); }
.badge-job { background: var(--blue); color: #FFFFFF; }
.tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px; background: var(--chip); border-radius: 12px; align-self: flex-start; }
.tabs a { padding: 10px 16px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.tabs a[aria-current=page] { background: var(--surface); box-shadow: 0 1px 3px rgba(11, 58, 102, 0.15); color: var(--blue-dark); }
.copy-box { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy-box input { flex: 1 1 320px; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9rem; }
.centro-card { display: flex; flex-direction: column; gap: 12px; }
.centro-card ul { margin: 0; padding-left: 18px; }

/* Publicidad: carrusel de la portada (todas las tarjetas con el mismo formato) */
.ads { margin-top: 32px; }
.ads-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; margin-bottom: 12px; }
.ads-head h2 { margin: 0; }
.ads-viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 48px, #000 calc(100% - 48px), transparent 100%); }
.ads-track { display: flex; width: max-content; animation: ads-scroll var(--ads-dur, 36s) linear infinite; }
.ads-viewport:hover .ads-track, .ads-viewport:focus-within .ads-track { animation-play-state: paused; }
.ads-set { display: flex; gap: 18px; padding: 4px 9px 10px; }
@keyframes ads-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ad-card { flex: 0 0 375px; width: 375px; display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-bottom: 5px solid var(--blue); border-radius: var(--radius-lg); color: var(--ink); text-decoration: none; box-shadow: 0 4px 14px rgba(11, 58, 102, 0.06); }
a.ad-card:hover { border-left-color: var(--blue); border-right-color: var(--blue); color: var(--ink); }
.ad-top { display: flex; gap: 14px; align-items: center; }
.ad-logo { flex: 0 0 72px; width: 72px; height: 72px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.ad-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.ad-logo span { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: #FFFFFF; background: var(--blue); width: 100%; height: 100%; display: grid; place-items: center; }
.ad-sector { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue); line-height: 1.4; }
.ad-isla { color: var(--ink-2); font-weight: 600; }
.ad-name { font-family: var(--font-display); font-size: 1.25rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ad-text { font-size: 0.95rem; line-height: 1.45; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ad-cta { margin-top: auto; font-size: 0.95rem; font-weight: 600; color: var(--blue); }
@media (max-width: 480px) { .ad-card { flex-basis: 300px; width: 300px; min-height: 230px; padding: 20px; } }
@media (prefers-reduced-motion: reduce) {
  .ads-track { animation: none; }
  .ads-viewport { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .ads-set[aria-hidden="true"] { display: none; }
}

/* Fundador: tarjeta al final de la portada */
.founder-section { padding-bottom: 56px; }
.founder { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: start; background: var(--surface); border: 1px solid var(--line); border-top: 5px solid var(--yellow); border-bottom: 5px solid var(--blue); border-radius: var(--radius-lg); padding: 32px; }
.founder-photo { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.founder-photo img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); display: block; }
.founder-photo figcaption { display: flex; flex-direction: column; gap: 2px; text-align: center; }
.founder-photo figcaption strong { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.founder-photo figcaption span { color: var(--blue); font-weight: 600; }
.founder-photo .founder-meta { color: var(--ink-2); font-weight: 500; font-size: 0.92rem; }
.founder-text { display: flex; flex-direction: column; gap: 14px; }
.founder-text h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.founder-text p { color: var(--ink-2); line-height: 1.6; max-width: 68ch; }
.founder-text .founder-close { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
@media (max-width: 760px) {
  .founder { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
  .founder-photo { max-width: 260px; margin: 0 auto; }
}

/* Barra superior con el correo de contacto */
.topbar { background: var(--night); color: var(--night-text); font-size: 0.85rem; }
.topbar-row { display: flex; justify-content: flex-end; align-items: center; gap: 10px; min-height: 34px; flex-wrap: wrap; }
.topbar-mail { display: inline-flex; align-items: center; gap: 6px; color: #FFFFFF; font-weight: 600; text-decoration: none; }
.topbar-mail:hover { color: var(--yellow); text-decoration: underline; }
.topbar-copy { background: transparent; border: 1px solid var(--night-line); color: var(--night-text); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: 0.78rem; cursor: pointer; }
.topbar-copy:hover { border-color: var(--yellow); color: var(--yellow); }
@media (max-width: 560px) { .topbar-text { display: none; } .topbar-row { justify-content: center; } }

/* Cursos */
.pill-free { background: var(--good-bg); color: var(--good); }
.avisos-box { display: flex; flex-direction: column; gap: 10px; border-top: 4px solid var(--yellow); }

/* Enlaces por isla en el pie */
.footer-islas { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding-bottom: 20px; font-size: 0.85rem; }
.footer-islas strong { color: #FFFFFF; margin-right: 4px; }
.footer-islas a { color: var(--night-text); }
.footer-islas a:hover { color: var(--yellow); }
.isla-hero { display: flex; flex-direction: column; gap: 14px; }
