/* ===== MyCuadraOK – tema azul marino + dorado ===== */
:root {
    --vp-teal: #001f3f;
    --vp-teal-light: #153d6b;
    --vp-teal-dark: #001529;
    --vp-gold: #d4af37;
    --vp-gold-light: #f0d060;
    --vp-slate: #b0c4de;
    --vp-slate-light: #dce6f2;
    --vp-white: #f4f7fb;
    --vp-text: #0f1e33;
    --vp-text-muted: #4a5f78;
    --vp-border: rgba(0, 31, 63, 0.12);
    --shadow: 0 4px 24px rgba(0, 31, 63, 0.14);
    --radius: 16px;
    --font-sans: 'DM Sans', system-ui, sans-serif;
    --font-head: 'Outfit', 'DM Sans', system-ui, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--vp-text);
    background: var(--vp-white);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ----- Header ----- */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(0, 31, 63, 0.97);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
}

.logo img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.nav a:hover {
    color: var(--vp-gold-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    border-radius: 12px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.btn-primary {
    background: var(--vp-teal);
    color: white;
    border: 2px solid var(--vp-teal);
}

.btn-primary:hover {
    background: var(--vp-teal-light);
    border-color: var(--vp-teal-light);
    color: white;
}

.btn-secondary {
    background: transparent;
    color: var(--vp-teal);
    border: 2px solid var(--vp-teal);
}

.btn-secondary:hover {
    background: rgba(0, 31, 63, 0.08);
}

.btn-outline {
    color: var(--vp-gold-light);
    border: 2px solid var(--vp-gold);
    background: transparent;
}

.btn-outline:hover {
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
}

/* ----- Hero ----- */
.hero {
    padding: 4rem 0 5rem;
    background: linear-gradient(160deg, var(--vp-teal) 0%, var(--vp-teal-dark) 100%);
    color: white;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

.hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.875rem, 4vw, 2.75rem);
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 1rem;
}

.hero h1 strong {
    color: var(--vp-gold-light);
}

.hero-lead {
    font-size: 1.125rem;
    opacity: 0.95;
    max-width: 520px;
    margin: 0 0 1.25rem;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 220px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
}

@media (max-width: 768px) {
    .nav {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .nav.is-open {
        display: flex;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        padding: 1rem;
        background: var(--vp-teal);
        border-bottom: 1px solid rgba(212, 175, 55, 0.3);
    }
    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-grid {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-visual {
        order: -1;
    }
    .hero-logo {
        max-width: 160px;
    }
}

/* ----- App preview (captura de la app) ----- */
.section-app-preview {
    padding: 4rem 0;
    background: linear-gradient(180deg, var(--vp-slate) 0%, var(--vp-slate-light) 100%);
}

.section-app-preview .section-title {
    color: var(--vp-teal);
}

.section-app-preview .section-lead {
    color: var(--vp-text-muted);
}

.app-preview {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
    background: transparent;
}

.app-captura-img {
    display: block;
    width: auto;
    max-width: min(320px, 92vw);
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 18px 36px rgba(0, 31, 63, 0.22));
}

/* ----- Sections ----- */
.section {
    padding: 4rem 0;
}

.section-alt {
    background: white;
    box-shadow: inset 0 1px 0 var(--vp-border);
}

/* Sección oscura (ej. Cómo funciona) */
.section-dark {
    background: linear-gradient(165deg, var(--vp-teal) 0%, var(--vp-teal-dark) 100%);
    color: #fff;
}

.section-dark .section-title {
    color: #fff;
}

.section-dark .section-lead {
    color: rgba(255, 255, 255, 0.9);
}

.section-dark .card {
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.2);
}

.section-dark .card-num {
    background: var(--vp-gold);
    color: var(--vp-teal-dark);
}

.section-title {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--vp-teal);
    margin: 0 0 0.5rem;
    text-align: center;
}

.section-lead {
    text-align: center;
    color: var(--vp-text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
}

/* ----- Cards (Cómo funciona) ----- */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: white;
    padding: 1.75rem;
    border-radius: var(--radius);
    border: 1px solid var(--vp-border);
    box-shadow: var(--shadow);
    position: relative;
}

.card-num {
    position: absolute;
    top: -12px;
    left: 1.25rem;
    width: 36px;
    height: 36px;
    background: var(--vp-gold);
    color: var(--vp-teal-dark);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card h3 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--vp-teal);
    margin: 1.25rem 0 0.5rem;
}

.card p {
    margin: 0;
    color: var(--vp-text-muted);
    font-size: 0.9375rem;
}

/* Aclaraciones legales / condiciones (p. ej. cuadrante vinculado) */
.text-note {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-style: italic;
    color: var(--vp-text-muted);
    line-height: 1.45;
}

/* ----- Install steps ----- */
.install-steps {
    max-width: 640px;
    margin: 0 auto 2rem;
}

.install-step {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--vp-border);
}

.install-step:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.install-step-num {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: var(--vp-teal);
    color: white;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.125rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.install-step h3 {
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--vp-teal);
    margin: 0 0 0.35rem;
}

.install-step p {
    margin: 0;
    color: var(--vp-text-muted);
    font-size: 0.9375rem;
}

.install-note {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--vp-text-muted);
    max-width: 560px;
    margin: 0 auto;
}

/* ----- Plans ----- */
.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.plan {
    background: white;
    padding: 2rem;
    border-radius: var(--radius);
    border: 2px solid var(--vp-border);
    position: relative;
}

.plan-pro {
    border-color: var(--vp-gold);
    box-shadow: 0 8px 32px rgba(201, 162, 39, 0.15);
}

.plan-badge {
    position: absolute;
    top: -12px;
    right: 1.25rem;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 8px;
    background: var(--vp-teal);
    color: white;
}

.plan-pro .plan-badge {
    background: var(--vp-gold);
    color: var(--vp-teal-dark);
}

.plan h3 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    color: var(--vp-teal);
    margin: 0 0 1rem;
}

.plan ul {
    margin: 0 0 1rem;
    padding-left: 1.25rem;
    color: var(--vp-text-muted);
    font-size: 0.9375rem;
}

.plan li {
    margin-bottom: 0.5rem;
}

.plan li .text-note {
    margin-top: 0.35rem;
    font-size: 0.8125rem;
}

.plan-desc {
    margin: 0;
    font-size: 0.875rem;
    color: var(--vp-text-muted);
    font-style: italic;
}

.plans-footer {
    text-align: center;
    font-size: 0.9375rem;
    color: var(--vp-text-muted);
}

/* ----- Stats ----- */
.section-stats {
    background: linear-gradient(160deg, var(--vp-teal) 0%, var(--vp-teal-dark) 100%);
    color: white;
}

.section-stats .section-title,
.section-stats .section-lead {
    color: white;
}

.section-stats .section-lead {
    opacity: 0.9;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2rem 0;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-head);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--vp-gold-light);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.stats-note {
    text-align: center;
    font-size: 0.875rem;
    opacity: 0.85;
    max-width: 480px;
    margin: 0 auto;
}

@media (max-width: 600px) {
    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ----- CTA ----- */
.section-cta {
    padding: 4rem 0;
}

.cta-box {
    max-width: 480px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: var(--radius);
    border: 2px solid var(--vp-border);
    text-align: center;
}

.cta-box a {
    color: var(--vp-teal);
    font-weight: 600;
    text-decoration: none;
}

.cta-box a:hover {
    text-decoration: underline;
}

.cta-box p {
    margin: 0.5rem 0;
}

/* ----- Footer ----- */
.footer {
    padding: 2.5rem 0;
    background: var(--vp-teal-dark);
    color: white;
}

.footer-inner {
    text-align: center;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-brand img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.footer-copy {
    font-size: 0.875rem;
    opacity: 0.85;
    margin: 0 0 1rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.footer-nav a {
    color: white;
    opacity: 0.9;
    text-decoration: none;
    font-size: 0.9375rem;
}

.footer-nav a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ----- Redes sociales ----- */
.social-heading {
    margin: 1.5rem 0 0.75rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    color: var(--vp-teal);
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.65rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.social-links--footer {
    margin: 0 0 1rem;
}

.social-links--light {
    margin-top: 0.25rem;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 31, 63, 0.2);
}

.social-link:hover {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 31, 63, 0.28);
}

.social-link--whatsapp {
    background: #25d366;
}

.social-link--facebook {
    background: #1877f2;
}

.social-link--instagram {
    background: linear-gradient(135deg, #f58529 0%, #dd2a7b 45%, #8134af 100%);
}

.social-link--youtube {
    background: #ff0000;
}

.social-link--tiktok {
    background: #010101;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.social-links--footer .social-link {
    width: 2.5rem;
    height: 2.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.whatsapp-float {
    position: fixed;
    left: 1rem;
    bottom: 1rem;
    z-index: 190;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.55);
}

@media (max-width: 640px) {
    .whatsapp-float {
        left: 0.5rem;
        bottom: 0.5rem;
        width: 3rem;
        height: 3rem;
    }
}

/* ----- Hero: cuadrícula de tarjetas ----- */
.hero-tagline {
    margin: 0 0 0.5rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--vp-gold-light);
    letter-spacing: 0.02em;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
    max-width: 440px;
    margin: 0;
}

.hero-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    padding: 0.85rem 0.75rem;
    border-radius: 12px;
    min-height: 4.25rem;
    box-sizing: border-box;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.25;
    text-align: center;
}

.hero-card--solid {
    background: #fff;
    color: var(--vp-teal);
    border: 2px solid #fff;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.hero-card--outline {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.65);
    box-shadow: none;
}

.hero-card--action {
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.hero-card--action:hover {
    transform: translateY(-2px);
}

.hero-card--solid.hero-card--action:hover {
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.18);
}

.hero-card--outline.hero-card--action:hover {
    background: rgba(255, 255, 255, 0.16);
    border-color: #fff;
}

/* Tarjetas de plataforma (icono + dos líneas) */
.hero-card:not(.hero-card--action) {
    justify-content: flex-start;
    text-align: left;
    padding-left: 0.85rem;
    padding-right: 0.85rem;
}

.hero-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.hero-card-text strong {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--vp-teal);
}

.hero-card-text small {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--vp-text-muted);
}

.hero-card-icon {
    flex-shrink: 0;
    width: 2rem;
    font-size: 1.35rem;
    line-height: 1;
    text-align: center;
}

.hero-card-icon--android {
    color: #3ddc84;
}

.hero-card-icon--ios {
    color: var(--vp-text);
}

/* Plataformas en sección clara (instalar) */
.platform-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    max-width: 520px;
    margin: 0 auto 2rem;
}

.platform-grid--page {
    max-width: 560px;
}

.platform-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    min-height: 4.25rem;
    border: 1px solid var(--vp-border);
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 31, 63, 0.08);
    box-sizing: border-box;
}

.platform-card-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.platform-card-text strong {
    font-size: 0.95rem;
    color: var(--vp-teal);
    line-height: 1.2;
}

.platform-card-text small {
    font-size: 0.75rem;
    color: var(--vp-text-muted);
    font-weight: 400;
}

.platform-card-icon {
    flex-shrink: 0;
    width: 2rem;
    font-size: 1.35rem;
    line-height: 1;
    text-align: center;
}

.platform-card-icon--android {
    color: #3ddc84;
}

.platform-card-icon--ios {
    color: var(--vp-text);
}

@media (max-width: 480px) {
    .hero-grid,
    .platform-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .hero-card:not(.hero-card--action) {
        justify-content: center;
        text-align: center;
    }
}

/* ----- Mapa público (mapa de calor) ----- */
.section-map-public {
    background: linear-gradient(180deg, var(--vp-slate-light) 0%, var(--vp-white) 100%);
}

.public-dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

.public-stat {
    background: var(--vp-white);
    border: 1px solid var(--vp-border);
    border-radius: var(--radius);
    padding: 0.85rem 0.75rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.public-stat--warn .public-stat-num { color: #c0392b; }
.public-stat--ok .public-stat-num { color: #1e8449; }

.public-stat-num {
    display: block;
    font-family: var(--font-display);
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--vp-teal);
    line-height: 1.1;
}

.public-stat-lbl {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    color: var(--vp-text-muted);
    line-height: 1.3;
}

.map-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.map-toolbar .map-public-meta {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.public-map {
    height: 360px;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--vp-border);
    box-shadow: var(--shadow);
    z-index: 1;
    background: #e8eef5;
}

.public-map--heat {
    height: 420px;
}

.public-map .leaflet-container {
    background: #e8eef5;
    font-family: var(--font-sans);
}

.heatmap-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.75rem;
    padding: 0.55rem 0.75rem;
    background: var(--vp-white);
    border: 1px solid var(--vp-border);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--vp-text-muted);
}

.heatmap-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.heatmap-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.heatmap-dot.low { background: #f6e05e; }
.heatmap-dot.mid { background: #ed8936; }
.heatmap-dot.high { background: #e53e3e; }

.map-public-meta {
    margin: 0.75rem 0 0;
    font-size: 0.9375rem;
    color: var(--vp-text-muted);
}

.map-public-disclaimer {
    margin-top: 0.75rem;
    max-width: 42rem;
}

.map-public-disclaimer a {
    color: var(--vp-teal);
    font-weight: 600;
}

.live-badge {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    padding: 0.65rem 0.9rem;
    border-radius: 12px;
    background: var(--vp-teal);
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.875rem;
    box-shadow: 0 8px 28px rgba(0, 31, 63, 0.35);
    cursor: default;
    max-width: calc(100vw - 2rem);
}

.live-badge-inner strong {
    font-size: 1.25rem;
    font-weight: 700;
}

.live-badge-sub {
    font-size: 0.75rem;
    opacity: 0.9;
}

.live-badge--pulse {
    animation: liveBadgePulse 1s ease-out 1;
}

@keyframes liveBadgePulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.06); }
    100% { transform: scale(1); }
}

@media (max-width: 640px) {
    .public-map,
    .public-map--heat {
        height: 280px;
    }
    .live-badge {
        right: 0.5rem;
        bottom: 0.5rem;
    }
}

/* ----- Noticias / blog ----- */
.news-hero {
    background: linear-gradient(165deg, var(--vp-teal) 0%, var(--vp-teal-dark) 100%);
    color: #fff;
    padding: 3rem 0 2.5rem;
}

.news-hero-label {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: var(--vp-gold-light);
    margin: 0 0 0.5rem;
}

.news-hero h1 {
    font-family: var(--font-head);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    margin: 0 0 0.75rem;
}

.news-hero-lead {
    margin: 0;
    max-width: 36rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
    gap: 1.5rem;
}

.news-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--vp-border);
}

.news-card-image-link {
    display: block;
    background: var(--vp-slate-light);
    aspect-ratio: 16 / 10;
    overflow: hidden;
}

.news-card-image-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.news-card-body {
    padding: 1.25rem 1.35rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-date {
    font-size: 0.8125rem;
    color: var(--vp-text-muted);
    margin-bottom: 0.5rem;
}

.news-card h2 {
    font-family: var(--font-head);
    font-size: 1.15rem;
    margin: 0 0 0.65rem;
    line-height: 1.35;
}

.news-card h2 a {
    color: var(--vp-teal);
    text-decoration: none;
}

.news-card h2 a:hover {
    color: var(--vp-gold);
}

.news-card p {
    margin: 0 0 1rem;
    font-size: 0.9375rem;
    color: var(--vp-text-muted);
    flex: 1;
}

.news-read-more {
    font-weight: 600;
    color: var(--vp-teal);
    text-decoration: none;
    font-size: 0.9375rem;
}

.news-read-more:hover {
    color: var(--vp-gold);
}

.news-card--cta {
    background: linear-gradient(145deg, var(--vp-teal-light) 0%, var(--vp-teal) 100%);
    border: none;
}

.news-card--cta .news-card-body {
    justify-content: center;
    text-align: center;
}

.news-card--cta h2,
.news-card--cta p {
    color: rgba(255, 255, 255, 0.95);
}

.news-card--cta .btn-primary {
    align-self: center;
    margin-top: 0.5rem;
}

/* Artículo individual */
.article-page {
    padding: 2rem 0 3rem;
    background: var(--vp-white);
}

.article-container {
    max-width: 720px;
}

.article-back {
    display: inline-block;
    margin-bottom: 1.25rem;
    color: var(--vp-teal);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}

.article-back:hover {
    color: var(--vp-gold);
}

.article-header h1 {
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: var(--vp-teal);
    margin: 0.5rem 0 1rem;
    line-height: 1.25;
}

.article-lead {
    font-size: 1.125rem;
    color: var(--vp-text-muted);
    margin: 0 0 1.5rem;
    line-height: 1.55;
}

.article-figure {
    margin: 0 0 2rem;
    text-align: center;
}

.article-figure img {
    max-width: 280px;
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.article-figure figcaption {
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--vp-text-muted);
}

.article-body h2 {
    font-family: var(--font-head);
    font-size: 1.2rem;
    color: var(--vp-teal);
    margin: 1.75rem 0 0.75rem;
}

.article-body p,
.article-body li {
    line-height: 1.65;
}

.article-body ul {
    padding-left: 1.25rem;
}

.article-body a {
    color: var(--vp-teal-light);
}

.article-quote {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--vp-gold);
    background: var(--vp-slate-light);
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--vp-text);
}

/* Teaser en inicio */
.news-teaser {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: center;
    padding: 1.5rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--vp-border);
}

.news-teaser-text h2 {
    font-family: var(--font-head);
    font-size: 1.25rem;
    margin: 0 0 0.35rem;
    color: var(--vp-teal);
}

.news-teaser-text p {
    margin: 0;
    font-size: 0.9375rem;
    color: var(--vp-text-muted);
}

@media (max-width: 640px) {
    .news-teaser {
        grid-template-columns: 1fr;
        text-align: center;
    }
}
