:root {
    /* Design System Tokens — alhaurinaldia.es (Paleta cálida terrosa) */
    --bg: #fbf9f5;
    --paper: #ffffff;
    --paper-soft: #f5f2ec;
    --ink: #1c1f1b;
    --muted: #6b6f68;
    --line: #e4e0d5;
    --accent: #455c36;
    --accent-dark: #354829;
    --accent-soft: #eef3ea;
    --red-soft: #fef2f2;

    /* Sombras Mínimas cálidas */
    --shadow: 0 1px 3px rgba(30, 25, 15, 0.06);
    --shadow-soft: 0 1px 2px rgba(30, 25, 15, 0.04);
    --shadow-card: 0 1px 2px rgba(30, 25, 15, 0.04);
    --shadow-float: 0 4px 12px rgba(30, 25, 15, 0.09);

    /* Radios Rectangulares Limpios */
    --radius: 6px;
    --radius-lg: 8px;
    --radius-md: 6px;
    --radius-sm: 4px;
    --radius-pill: 6px;
    --max: 1160px;

    /* Tipografía */
    --font-display: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
    --text-label: 700 12px/1.2 var(--font-body);
    --text-headline-home: 600 clamp(24px, 3.5vw, 36px)/1.2 var(--font-display);
    --text-headline-list: 600 clamp(18px, 2.5vw, 22px)/1.3 var(--font-display);
    --text-body: 400 15px/1.6 var(--font-body);
    --text-caption: 500 13px/1.4 var(--font-body);

    /* Alias heredados de compatibilidad */
    --brand: var(--ink);
    --brand-soft: var(--accent-soft);
    --gold: var(--accent);
    --green: #455c36;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font: var(--text-body);
    color: var(--ink);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(var(--max), calc(100% - 32px));
    margin: 0 auto;
}

/* TOPBAR */

.topbar {
    background: var(--paper-soft);
    color: var(--muted);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.topbar-link {
    color: var(--ink);
    font-weight: 600;
    font-size: 12px;
    text-decoration: none;
    transition: opacity 0.18s ease;
}

.topbar-link:hover {
    opacity: 0.7;
}

.topbar-link.highlight {
    color: var(--accent);
}

/* HEADER */

header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: #ffffff;
    border-bottom: 1px solid var(--line);
}

nav {
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: max-content;
}

.logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    background: var(--ink);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 800;
}

.logo strong {
    display: block;
    font-size: 17px;
    letter-spacing: -.02em;
    color: var(--ink);
}

.logo span:last-child {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 1px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #475467;
    font-size: 14px;
    font-weight: 600;
}

.nav-links a {
    white-space: nowrap;
    transition: color .18s ease;
    position: relative;
    padding-bottom: 4px;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    transform: scaleX(1);
}

.nav-links .nav-cta {
    padding-bottom: 8px;
}

.nav-links .nav-cta::after {
    content: none;
}

.nav-cta {
    border: 1px solid var(--brand);
    color: #fff;
    background: var(--brand);
    padding: 8px 14px;
    border-radius: 6px;
}

/* COMPACT PAGE HEADER (patrón Tiempo/Seguimiento) */

.page-compact-header {
    padding: 20px 0 8px;
}

.page-header-shell {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.page-header-shell h1 {
    font-size: clamp(22px, 3.5vw, 30px);
    margin: 4px 0 0;
}

.page-header-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: var(--muted);
    max-width: 600px;
}

.breadcrumb-mini {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.breadcrumb-mini a {
    color: var(--ink);
}

/* HERO (legacy — pages migrating to compact header) */

.hero {
    padding: 24px 0 16px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.12fr .88fr;
    gap: 24px;
    align-items: stretch;
}

.hero-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
    position: relative;
}

.eyebrow,
.section-kicker,
.mini-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
}

.eyebrow {
    margin-bottom: 16px;
}

.section-kicker {
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-size: 11px;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-family: var(--font-display);
    color: var(--brand);
    font-size: clamp(24px, 3.5vw, 36px);
    line-height: 1.25;
    letter-spacing: -.02em;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.lead {
    margin: 16px 0 0;
    max-width: 650px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.6;
    position: relative;
    z-index: 1;
}

.actions {
    margin-top: 24px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    border: 1px solid transparent;
    transition: background .18s ease;
}

.btn:hover {
    transform: none;
}

.btn-primary {
    background: var(--brand);
    color: white;
}

.btn-secondary {
    background: white;
    color: var(--brand);
    border-color: var(--line);
}
    padding: clamp(30px, 5vw, 56px);
    box-shadow: var(--shadow);
    overflow: hidden;
    position: relative;
}

.hero-card::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -100px;
    top: -120px;
    border-radius: 50%;
    background: rgba(69, 92, 54, .13);
}

.eyebrow,
.section-kicker,
.mini-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--brand);
    background: var(--brand-soft);
    border: 1px solid #d7ddc7;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 13px;
    font-weight: 900;
}

.eyebrow {
    margin-bottom: 22px;
}

.section-kicker {
    margin-bottom: 12px;
    color: var(--gold);
    background: var(--accent-soft);
    border-color: #d7ddc7;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
}

h1 {
    margin: 0;
    max-width: 760px;
    font-family: var(--font-display);
    color: var(--brand);
    font-size: clamp(42px, 7vw, 76px);
    line-height: .95;
    letter-spacing: -.055em;
    position: relative;
    z-index: 1;
}

.lead {
    margin: 24px 0 0;
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.75;
    position: relative;
    z-index: 1;
}

.actions {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 999px;
    font-weight: 900;
    border: 1px solid transparent;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--brand);
    color: white;
    box-shadow: 0 16px 34px rgba(28, 31, 27, .20);
}

.btn-secondary {
    background: white;
    color: var(--brand);
    border-color: var(--line);
}

/* CARDS GENERALES */

.side-panel {
    display: grid;
    gap: 16px;
}

.info-card,
.ad-slot,
.content-card,
.business-card,
.notice-card,
.guide-card,
.plan-card,
.guide-hero-card,
.guide-index,
.edicto-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.content-card:hover,
.guide-card:hover,
.business-card:hover {
    box-shadow: var(--shadow-float);
    border-color: var(--accent);
}

/* Stretched Link: Clickabilidad total de tarjetas */
.content-card.news-card,
.featured-news-card,
.guide-card {
    position: relative;
    cursor: pointer;
}

.content-card.news-card .read-more::after,
.featured-news-card .read-more::after,
.guide-card .read-more::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.content-card.news-card a:not(.read-more),
.featured-news-card a:not(.read-more),
.guide-card a:not(.read-more) {
    position: relative;
    z-index: 2;
}

.info-card {
    padding: 24px;
}

.info-card h2,
.content-card h3,
.business-card h3,
.notice-card h3,
.guide-card h3,
.plan-card h3,
.guide-hero-card h3,
.edicto-card h3 {
    margin: 0 0 10px;
    color: var(--brand);
    letter-spacing: -.025em;
}

.info-card p,
.content-card p,
.business-card p,
.notice-card p,
.guide-card p,
.plan-card p,
.guide-hero-card p,
.edicto-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.today-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 18px;
}

.quick-links a {
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper-soft);
    color: var(--brand);
    font-weight: 900;
    font-size: 13px;
}

/* ADS */

.ad-slot {
    min-height: 96px;
    display: grid;
    place-items: center;
    text-align: center;
    color: #8a7b68;
    background: repeating-linear-gradient(135deg,
            rgba(69, 92, 54, .08),
            rgba(69, 92, 54, .08) 10px,
            rgba(255, 255, 255, .65) 10px,
            rgba(255, 255, 255, .65) 20px);
    border-style: dashed;
    padding: 18px;
    font-size: 13px;
    line-height: 1.5;
}

/* SECCIONES */

section {
    padding: 38px 0;
    scroll-margin-top: 96px;
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 24px;
    margin-bottom: 22px;
}

.section-title h2 {
    margin: 0;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 50px);
    letter-spacing: -.05em;
    line-height: .98;
}

.section-title p {
    margin: 0;
    max-width: 560px;
    color: var(--muted);
    line-height: 1.65;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

/* TAGS */

.tag {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 4px;
    color: var(--green);
    background: var(--accent-soft);
    border: 1px solid #c8e6c9;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.read-more {
    display: inline-flex;
    margin-top: 14px;
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
}

/* NOTICIAS */

.news-card {
    position: relative;
    padding: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 520px;
    background: #ffffff;
    border-radius: 6px;
    border: 1px solid var(--line);
    transition: transform .18s ease, box-shadow .18s ease;
}

.news-card .read-more::after,
.featured-news-card .read-more::after {
    content: "";
    position: absolute;
    inset: 0;
}

.news-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--brand-soft);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform .25s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.03);
}

.news-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.news-body h3 {
    margin: 0 0 8px;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.news-body p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;

    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-footer {
    margin-top: auto;
    padding: 12px 16px;
    border-top: 1px dashed var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
}

.news-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--paper-soft);
    color: var(--muted);
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
}

/* FEATURED NEWS */

.featured-news {
    margin-bottom: 28px;
}

.featured-news-card {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.featured-news-image {
    min-height: 320px;
    background: var(--brand-soft);
}

.featured-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-news-content {
    padding: clamp(20px, 4vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.featured-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    border: 1px solid #c8e6c9;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
}

.featured-meta .tag {
    margin-bottom: 0;
}

.source-mini-tag {
    display: inline-flex;
    width: fit-content;
    padding: 4px 8px;
    border-radius: 4px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
}

.featured-news-content h2 {
    margin: 0 0 10px;
    color: var(--brand);
    font-family: var(--font-display);
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -.01em;
}

.featured-news-content p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.featured-news-content .read-more {
    margin-top: 18px;
}

/* FILTROS POR FUENTE */

.source-filters {
    margin: -4px 0 20px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.source-filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.source-filters-header span {
    color: var(--brand);
    font-weight: 700;
    font-size: 13px;
}

.source-filters-header small {
    color: var(--muted);
    font-weight: 600;
    font-size: 12px;
}

.source-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.source-filter {
    appearance: none;
    border: 1px solid var(--line);
    background: #ffffff;
    color: var(--brand);
    border-radius: 6px;
    min-height: 36px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .18s ease;
}

.source-filter:hover {
    transform: none;
    background: var(--paper-soft);
}

.source-filter strong {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-soft);
    border: 1px solid #d7ddc7;
    color: var(--brand);
    font-size: 12px;
    line-height: 1;
}

.source-filter.active {
    color: white;
    background: linear-gradient(135deg, var(--brand), var(--accent-dark));
    border-color: var(--brand);
    box-shadow: 0 16px 34px rgba(28, 31, 27, .20);
}

.source-filter.active strong {
    background: rgba(255, 255, 255, .16);
    border-color: rgba(255, 255, 255, .25);
    color: white;
}

/* GUÍA ÚTIL */

.guide-section {
    position: relative;
}

.guide-hero-card {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 24px;
    align-items: center;
    padding: clamp(24px, 4vw, 38px);
    margin-bottom: 22px;
    background:
        radial-gradient(circle at top right, rgba(69, 92, 54, .16), transparent 18rem),
        rgba(255, 255, 255, .9);
}

.guide-hero-card h3 {
    margin-top: 14px;
    font-family: var(--font-display);
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1;
    letter-spacing: -.045em;
}

.guide-search-box {
    background: var(--paper-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.guide-search-box label {
    display: block;
    color: var(--brand);
    font-size: 13px;
    font-weight: 900;
    margin-bottom: 10px;
}

.guide-search-box input {
    width: 100%;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: white;
    color: var(--ink);
    padding: 0 16px;
    font-size: 15px;
}

.guide-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 22px;
    align-items: start;
}

.guide-index {
    position: sticky;
    top: 96px;
    padding: 18px;
    display: grid;
    gap: 8px;
}

.guide-index strong {
    color: var(--brand);
    margin-bottom: 8px;
}

.guide-index a {
    padding: 11px 12px;
    border-radius: 8px;
    color: #475467;
    font-size: 14px;
    font-weight: 800;
    transition: background .18s ease, color .18s ease;
}

.guide-index a:hover {
    background: var(--brand-soft);
    color: var(--brand);
}

.guide-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.guide-card {
    position: relative;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: #ffffff;
    border: 1px solid var(--line);
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
}

.guide-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
    border-color: rgba(69, 92, 54, 0.3);
}

.guide-card-top {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.guide-icon {
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(69, 92, 54, 0.1), rgba(244, 240, 232, 0.8));
    color: var(--accent);
    font-size: 24px;
    border: 1px solid rgba(69, 92, 54, 0.15);
}

.guide-category {
    display: inline-flex;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(69, 92, 54, 0.08);
    color: var(--accent);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.guide-card h3 {
    margin: 0;
    font-size: 19px;
    font-family: var(--font-display);
    color: var(--ink);
    line-height: 1.25;
}

.guide-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}

.guide-card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.guide-card li {
    position: relative;
    padding-left: 20px;
    color: #374151;
    font-size: 13.5px;
    line-height: 1.5;
    font-weight: 600;
}

.guide-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 900;
    font-size: 12px;
}

/* Caja Editorial independiente para páginas individuales de recurso */
.resource-note,
.article-editorial-note {
    margin-top: 24px;
    padding: 18px 22px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, rgba(69, 92, 54, 0.06), rgba(244, 240, 232, 0.8));
    border-left: 4px solid var(--accent);
    border-top: 1px solid rgba(69, 92, 54, 0.12);
    border-right: 1px solid rgba(69, 92, 54, 0.12);
    border-bottom: 1px solid rgba(69, 92, 54, 0.12);
}

.resource-note strong,
.article-editorial-note strong {
    display: block;
    color: var(--accent);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.resource-note p,
.article-editorial-note p {
    margin: 0;
    color: #4b5563;
    font-size: 13px;
    line-height: 1.55;
}

.empty-state {
    grid-column: 1 / -1;
    margin: 0;
    padding: 24px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, .86);
    border: 1px solid var(--line);
    color: var(--muted);
}

/* PLANES */

.plan-card {
    padding: 24px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.plan-card span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: var(--brand);
    color: white;
    font-weight: 900;
    font-size: 13px;
}

/* AVISOS */

.notice-card {
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 15px;
    align-items: start;
}

.notice-icon {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: var(--brand-soft);
    color: var(--brand);
    font-weight: 900;
}

/* BOLETÍN OFICIAL */

.edicto-list {
    display: grid;
    gap: 14px;
}

.edicto-card {
    padding: 20px;
}

.edicto-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

/* COMERCIOS */

.business-card {
    padding: 22px;
    transition: transform .18s ease, box-shadow .18s ease;
}

.business-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 14px;
}

.business-logo {
    width: 54px;
    height: 54px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--brand-soft), #fff3df);
    color: var(--brand);
    font-weight: 900;
    border: 1px solid var(--line);
}

.business-card small {
    color: var(--gold);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: 11px;
}

/* NEWSLETTER */

.newsletter {
    background: var(--brand);
    color: white;
    border-radius: 8px;
    padding: clamp(28px, 5vw, 50px);
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
}

.newsletter h2 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -.045em;
    line-height: 1;
}

.newsletter p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    line-height: 1.65;
}

.newsletter form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.newsletter input[type="email"] {
    flex: 1 1 220px;
    min-height: 48px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, .22);
    background: rgba(255, 255, 255, .13);
    color: white;
    padding: 0 16px;
}

.newsletter input::placeholder {
    color: rgba(255, 255, 255, .68);
}

.newsletter .btn {
    background: #fff;
    color: var(--brand);
    border-color: #fff;
}

/* PREMIUM EDITORIAL FOOTER */

footer.site-footer,
footer {
    margin-top: 56px;
    background: #181d17;
    border-top: 4px solid var(--accent);
    padding: 56px 0 36px;
    color: #cad3c6;
    font-size: 14px;
}

.site-footer .footer-top {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
    gap: 36px;
    padding-bottom: 40px;
}

.site-footer .footer-brand {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.site-footer .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.site-footer .footer-logo-mark {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 900;
}

.site-footer .footer-logo strong {
    font-family: var(--font-display);
    font-size: 22px;
    color: #ffffff;
    letter-spacing: -.02em;
}

.site-footer .footer-logo strong span {
    color: #a4be93;
}

.site-footer .footer-desc {
    margin: 0;
    color: #9ba797;
    font-size: 13.5px;
    line-height: 1.6;
    max-width: 360px;
}

.site-footer .footer-badges {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 4px;
}

.site-footer .footer-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #d2dcd0;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.site-footer .footer-badge.action {
    background: rgba(69, 92, 54, 0.4);
    border-color: rgba(141, 164, 126, 0.5);
    color: #ffffff;
}

.site-footer .footer-badge.action:hover {
    background: var(--accent);
    transform: translateY(-2px);
}

.site-footer .footer-heading {
    margin: 0 0 16px;
    color: #8da47e;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.site-footer .footer-menu a {
    color: #adb8aa;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.18s ease, transform 0.18s ease;
    display: inline-block;
}

.site-footer .footer-menu a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.site-footer .footer-bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    color: #8a9686;
    font-size: 13px;
}

.site-footer .footer-bottom p {
    margin: 0;
}

.site-footer .back-to-top {
    color: #8da47e;
    text-decoration: none;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.2s ease, color 0.2s ease;
}

.site-footer .back-to-top:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

@media (max-width: 900px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 28px;
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 580px) {
    .site-footer .footer-top {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .site-footer .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* RESPONSIVE */

@media (max-width: 980px) {
    .nav-links {
        gap: 14px;
        font-size: 13px;
    }
}

@media (max-width: 920px) {

    .hero-grid,
    .newsletter,
    .guide-hero-card,
    .guide-layout {
        grid-template-columns: 1fr;
    }

    .guide-index {
        position: static;
        grid-template-columns: repeat(2, 1fr);
    }

    .guide-index strong {
        grid-column: 1 / -1;
    }

    .grid-3,
    .guide-grid {
        grid-template-columns: 1fr 1fr;
    }

    .newsletter form {
        justify-content: flex-start;
    }
}

@media (max-width: 820px) {
    .featured-news-card {
        grid-template-columns: 1fr;
    }

    .featured-news-image {
        min-height: 260px;
    }
}

@media (max-width: 720px) {
    .topbar {
        display: none;
    }

    nav {
        height: 68px;
    }

    .nav-links {
        display: none;
    }

    .hero {
        padding-top: 34px;
    }

    .hero-card {
        border-radius: 8px;
    }

    .quick-links,
    .grid-3,
    .grid-2,
    .guide-grid,
    .guide-index {
        grid-template-columns: 1fr;
    }

    .section-title {
        display: block;
    }

    .section-title p {
        margin-top: 10px;
    }

    .notice-card {
        grid-template-columns: 1fr;
    }

    .source-filters {
        padding: 14px;
        border-radius: 8px;
        margin-bottom: 22px;
    }

    .source-filters-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    .source-filter-list {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
        margin: 0 -2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .source-filter-list::-webkit-scrollbar {
        display: none;
    }

    .source-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .news-card {
        min-height: auto;
    }

    .news-image,
    .news-placeholder {
        height: 220px;
    }

    .news-card h3,
    .news-card p {
        min-height: unset;
    }

    .newsletter form {
        display: grid;
    }
}

/* =========================
   REAL GUIDE LINKS
========================= */

.guide-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.guide-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 11px;
    border-radius: 999px;
    background: var(--brand-soft);
    border: 1px solid #d7ddc7;
    color: var(--brand);
    font-size: 12px;
    font-weight: 850;
    transition: transform .18s ease, background .18s ease;
}

.guide-links a:hover {
    transform: translateY(-1px);
    background: var(--accent-soft);
}

/* WHATSAPP CHANNEL INTEGRATION STYLES */

.btn-whatsapp,
.btn-whatsapp-channel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25D366 !important;
    color: #ffffff !important;
    font-weight: 850 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.3) !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
    text-decoration: none !important;
}

.btn-whatsapp:hover,
.btn-whatsapp-channel:hover {
    background: #1da851 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4) !important;
}

.today-strip-whatsapp {
    color: #1e7e40 !important;
    font-weight: 900 !important;
}

.whatsapp-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 18px;
    padding: 16px 22px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.12), rgba(69, 92, 54, 0.08));
    border: 1px solid rgba(37, 211, 102, 0.3);
}

.whatsapp-banner-info strong {
    display: block;
    font-size: 15px;
    color: var(--ink);
    margin: 3px 0 2px;
}

.whatsapp-banner-info p {
    margin: 0;
    font-size: 13px;
    color: var(--muted);
}

.whatsapp-badge {
    display: inline-block;
    padding: 3px 9px;
    border-radius: 999px;
    background: #25D366;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.btn-whatsapp-channel {
    padding: 10px 20px;
    border-radius: 999px;
    white-space: nowrap;
    font-size: 14px;
}

.site-footer .footer-badge.action.whatsapp {
    background: rgba(37, 211, 102, 0.2);
    border-color: rgba(37, 211, 102, 0.5);
    color: #ffffff;
}

.site-footer .footer-badge.action.whatsapp:hover {
    background: #25D366;
}

@media (max-width: 720px) {
    .whatsapp-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
        padding: 16px;
    }

    .btn-whatsapp-channel {
        width: 100%;
        text-align: center;
    }
}

/* LIVE SEARCH MODAL STYLES */

.nav-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--paper-soft);
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-search-btn:hover {
    background: #ffffff;
    border-color: var(--accent);
}

.search-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: none;
    place-items: center;
    padding: 20px;
}

.search-modal.open {
    display: grid;
}

.search-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(24, 29, 23, 0.7);
    backdrop-filter: blur(8px);
}

.search-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 640px;
    max-height: 85vh;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid var(--line);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.search-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    background: #faf8f5;
}

.search-modal-header .search-icon {
    font-size: 20px;
}

.search-modal-header input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 17px;
    font-family: inherit;
    color: var(--ink);
    outline: none;
}

.search-modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: var(--muted);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
}

.search-modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--ink);
}

.search-modal-results {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-modal-hint,
.search-modal-empty {
    padding: 24px 12px;
    text-align: center;
    color: var(--muted);
    font-size: 14.5px;
}

.search-section-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-section-title {
    font-size: 11.5px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 4px;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #faf8f5;
    border: 1px solid rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: background 0.18s ease, transform 0.18s ease;
}

.search-result-item:hover {
    background: #f0ebe1;
    transform: translateX(4px);
}

.search-badge {
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--accent);
    color: #ffffff;
    font-size: 11px;
    font-weight: 850;
    white-space: nowrap;
}

.search-badge.news {
    background: var(--brand);
}

.search-result-item strong {
    display: block;
    color: var(--ink);
    font-size: 14.5px;
    margin-bottom: 2px;
}

.search-result-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.search-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    border-top: 1px solid var(--line);
    background: #f5f1e8;
    font-size: 12px;
    color: var(--muted);
}

.search-modal-footer kbd {
    padding: 2px 6px;
    border-radius: 4px;
    background: #ffffff;
    border: 1px solid #d0c8b6;
    font-family: inherit;
    font-weight: 800;
}
