
/* ============================================================
   additions.css — Componentes adicionales del Blog
   ============================================================ */

/* ── Header ──────────────────────────────────────────────── */
.site-header {
    border-bottom: 3px solid var(--color-accent) !important;
    background: rgba(250,250,249,0.96) !important;
}
[data-theme="dark"] .site-header {
    background: rgba(13,34,51,0.96) !important;
}
.site-logo {
    font-size: 1.25rem !important;
    font-weight: 900 !important;
    letter-spacing: -0.03em !important;
    color: var(--color-primary) !important;
    display: flex !important;
    align-items: center !important;
}
.site-logo span { color: var(--color-accent); }

/* ── Tarjetas — bordes más suaves ─────────────────────────── */
.post-card {
    border-radius: 16px !important;
    box-shadow: 0 2px 12px rgba(26,60,94,0.06) !important;
}

/* ── Badges de categoría — color del acento 2 en algunas cats */
.post-card__cat, .popular-card__cat, .sidebar-card__cat,
.hero-post__cat, .hero-slider__cat, .single-post__cat-badge {
    border-radius: 6px !important;
}

/* ── Sidebar widgets — fondo más cálido ─────────────────── */
.sidebar-widget {
    background: var(--color-surface) !important;
    border-color: var(--color-border) !important;
}

/* ── Sección populares — fondo diferenciador ─────────────── */
.popular-section {
    background: var(--color-bg-alt);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2.5rem;
}

/* ── Banner informativo en home ──────────────────────────── */
.home-banner {
    background: linear-gradient(120deg, #1a3c5e 0%, #0f2d40 100%);
    color: #fff;
    border-radius: 16px;
    padding: 2rem 2.5rem;
    margin-bottom: 2.5rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.home-banner__icon {
    font-size: 3rem;
    flex-shrink: 0;
}
.home-banner__text h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    margin: 0 0 0.4rem;
}
.home-banner__text p {
    color: rgba(255,255,255,0.75);
    font-size: 0.92rem;
    margin: 0;
}
.home-banner__cats {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.85rem;
}
.home-banner__cats a {
    background: rgba(255,255,255,0.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 20px;
    padding: 0.25rem 0.85rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s;
}
.home-banner__cats a:hover {
    background: var(--color-accent);
    border-color: var(--color-accent);
    text-decoration: none;
}

/* ── Disclaimer médico en footer ─────────────────────────── */
.footer-disclaimer {
    background: #0f2d40;
    padding: 0.85rem 1.5rem;
    text-align: center;
    font-size: 0.78rem;
    color: #64748b;
    border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── Trust badges ─────────────────────────────────────────── */
.trust-strip {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
    font-size: 0.82rem;
    color: var(--color-muted);
}
.trust-strip__item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}
.trust-strip__item svg { color: var(--color-accent-2); }

/* ── Nav: items más visibles ─────────────────────────────── */
.site-nav a.active {
    color: var(--color-accent) !important;
    background: rgba(249,115,22,0.08) !important;
    font-weight: 600;
}

/* ============================================================
   LAYOUT ARTÍCULO CON SIDEBAR (2 columnas)
   ============================================================ */
.single-layout {
    display: grid;
    grid-template-columns: 1fr 310px;
    gap: 3rem;
    align-items: start;
}
.single-layout__main { min-width: 0; }
.single-layout__sidebar { position: sticky; top: 80px; }

/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.sidebar-widget-area { display: flex; flex-direction: column; gap: 1.5rem; }
.sidebar-widget {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1.25rem;
}
.sidebar-widget__title {
    font-size: 0.8rem; font-weight: 800;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 2px solid var(--color-accent);
    color: var(--color-primary);
    display: flex; align-items: center; gap: 0.4rem;
    text-transform: uppercase; letter-spacing: 0.06em;
}

/* Lista populares */
.sidebar-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.9rem; }
.sidebar-list__item { display: flex; gap: 0.75rem; align-items: flex-start; }
.sidebar-list__num {
    flex-shrink: 0; width: 22px; height: 22px;
    background: var(--color-accent); color: #fff;
    border-radius: 50%; font-size: 0.7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.sidebar-list__body { flex: 1; min-width: 0; }
.sidebar-list__thumb { width: 100%; height: 65px; object-fit: cover; border-radius: 4px; margin-bottom: 0.35rem; }
.sidebar-list__title {
    display: block; font-size: 0.85rem; font-weight: 600;
    color: var(--color-primary); line-height: 1.35; text-decoration: none;
}
.sidebar-list__title:hover { color: var(--color-accent); }
.sidebar-list__meta { display: block; font-size: 0.74rem; color: var(--color-muted); margin-top: 0.2rem; }

/* Tarjetas sidebar */
.sidebar-cards { display: flex; flex-direction: column; gap: 0.75rem; }
.sidebar-card {
    display: flex; gap: 0.75rem; text-decoration: none;
    border-radius: 6px; transition: background var(--transition); padding: 0.3rem;
}
.sidebar-card:hover { background: var(--color-bg-alt); }
.sidebar-card__img { width: 68px; height: 68px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.sidebar-card__body { flex: 1; min-width: 0; }
.sidebar-card__cat { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.2rem; }
.sidebar-card__title { font-size: 0.82rem; font-weight: 600; color: var(--color-primary); line-height: 1.35; margin: 0; }

/* Categorias sidebar */
.sidebar-cats { list-style: none; padding: 0; margin: 0; }
.sidebar-cats__link {
    display: flex; justify-content: space-between; align-items: center;
    padding: 0.45rem 0; border-bottom: 1px solid var(--color-border);
    color: var(--color-text); text-decoration: none; font-size: 0.875rem;
    transition: color var(--transition);
}
.sidebar-cats__link:hover { color: var(--color-accent); }
.sidebar-cats li:last-child .sidebar-cats__link { border-bottom: none; }
.sidebar-cats__count { background: var(--color-bg-alt); border-radius: 20px; padding: 0.1rem 0.45rem; font-size: 0.74rem; color: var(--color-muted); }

/* Buscador sidebar */
.sidebar-search { display: flex; gap: 0.4rem; }
.sidebar-search input {
    flex: 1; border: 1px solid var(--color-border); border-radius: 4px;
    padding: 0.45rem 0.7rem; font-size: 0.875rem; outline: none;
    background: var(--color-bg); color: var(--color-text);
}
.sidebar-search input:focus { border-color: var(--color-accent); }
.sidebar-search button {
    background: var(--color-accent); color: #fff; border: none;
    border-radius: 4px; padding: 0.45rem 0.75rem; font-size: 0.82rem;
    cursor: pointer; white-space: nowrap;
}

/* ============================================================
   HERO POST — Rediseñado: más grande e impactante
   ============================================================ */
.hero-post {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    background: linear-gradient(135deg, #0f2d40 0%, #1a3c5e 50%, #0f2d40 100%);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 3rem;
    min-height: 380px;
    box-shadow: 0 20px 60px rgba(15,45,64,0.2);
    border: 1px solid rgba(249,115,22,0.2);
    position: relative;
}
.hero-post::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(45deg, rgba(249,115,22,0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.hero-post__img-wrap { overflow: hidden; position: relative; z-index: 1; }
.hero-post__img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.hero-post:hover .hero-post__img { transform: scale(1.03); }
.hero-post__body {
    padding: 2.5rem; display: flex; flex-direction: column;
    justify-content: center; color: #fff; position: relative; z-index: 1;
}
.hero-post__cat {
    display: inline-block; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: #fff; background: var(--color-accent);
    border-radius: 4px;
    padding: 0.25rem 0.75rem; margin-bottom: 1.25rem; text-decoration: none; width: fit-content;
}
.hero-post__title {
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    font-weight: 900; line-height: 1.2; margin: 0 0 1rem;
    letter-spacing: -0.02em;
}
.hero-post__title a { color: #fff; text-decoration: none; }
.hero-post__title a:hover { color: rgba(255,255,255,0.85); }
.hero-post__desc { color: rgba(255,255,255,0.65); font-size: 0.95rem; line-height: 1.65; margin: 0 0 1.5rem; }
.hero-post__meta { display: flex; gap: 1rem; font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-bottom: 1.75rem; }
.hero-post__btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--color-accent); color: #fff;
    padding: 0.65rem 1.5rem; border-radius: 8px; font-size: 0.88rem;
    font-weight: 700; text-decoration: none; width: fit-content;
    transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
    box-shadow: 0 4px 12px rgba(249,115,22,0.4);
}
.hero-post__btn:hover {
    background: #ea6a0a; text-decoration: none;
    transform: translateY(-1px); box-shadow: 0 6px 20px rgba(249,115,22,0.5);
}

/* ============================================================
   SECCIÓN POPULARES (home) — Rediseñada
   ============================================================ */
.section-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.5rem;
}
.section-header__title {
    font-size: 1.05rem; font-weight: 800; margin: 0;
    color: var(--color-primary);
    display: flex; align-items: center; gap: 0.5rem;
    padding-left: 0.75rem;
    border-left: 4px solid var(--color-accent);
}
.section-header__link { font-size: 0.85rem; color: var(--color-accent); }
.popular-section { margin-bottom: 2.5rem; }
.popular-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; }
.popular-card {
    display: flex; align-items: center; gap: 0.85rem;
    padding: 1rem 1.1rem;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-decoration: none;
    transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
    position: relative;
    overflow: hidden;
}
.popular-card::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--color-accent);
    opacity: 0;
    transition: opacity var(--transition);
}
.popular-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: var(--color-accent);
    text-decoration: none;
}
.popular-card:hover::after { opacity: 1; }
.popular-card__num {
    position: absolute; top: 8px; left: 8px;
    width: 20px; height: 20px; background: var(--color-accent); color: #fff;
    border-radius: 4px; font-size: 0.65rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.popular-card__img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.popular-card__body { flex: 1; min-width: 0; }
.popular-card__cat { display: block; font-size: 0.67rem; font-weight: 800; text-transform: uppercase; color: var(--color-accent); margin-bottom: 0.25rem; letter-spacing: 0.05em; }
.popular-card__title {
    font-size: 0.87rem; font-weight: 700; color: var(--color-primary);
    line-height: 1.4; margin: 0 0 0.25rem;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.popular-card__views { font-size: 0.73rem; color: var(--color-muted); }

/* ============================================================
   POST CARDS — Rediseñadas con más impacto visual
   ============================================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.post-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
    position: relative;
}
.post-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.12);
    transform: translateY(-4px);
    border-color: transparent;
}
.post-card__img-link {
    display: block; overflow: hidden;
    aspect-ratio: 16/9;
    background: var(--color-bg-alt);
}
.post-card__img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.4s ease;
}
.post-card:hover .post-card__img { transform: scale(1.06); }
.post-card__body { padding: 1.25rem 1.4rem 1.5rem; }
.post-card__cat {
    display: inline-block;
    font-size: 0.67rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--color-accent);
    margin-bottom: 0.55rem;
    position: relative; z-index: 1;
}
.post-card__cat:hover { text-decoration: underline; }
.post-card__title {
    font-size: 1.05rem; font-weight: 800;
    margin: 0 0 0.65rem; line-height: 1.3;
    letter-spacing: -0.01em;
}
.post-card__title a { color: var(--color-primary); text-decoration: none; }
.post-card__title a:hover { color: var(--color-accent); }
.post-card__excerpt {
    font-size: 0.875rem; color: var(--color-muted);
    margin: 0 0 0.85rem; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta {
    font-size: 0.78rem; color: var(--color-muted);
    padding-top: 0.75rem;
    border-top: 1px solid var(--color-border);
    display: flex; align-items: center; gap: 0.5rem;
}
/* Stretched link */
.post-card__title a::after {
    content: ''; position: absolute; inset: 0; z-index: 0;
}
.post-card__cat { position: relative; z-index: 1; }

/* ============================================================
   COMPARTIR
   ============================================================ */
.post-share {
    display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
    margin-top: 2rem; padding: 1rem 1.25rem;
    background: var(--color-bg-alt); border-radius: var(--radius);
    font-size: 0.875rem;
}
.post-share strong { color: var(--color-muted); margin-right: 0.25rem; }
.share-btn {
    display: inline-block; padding: 0.3rem 0.9rem;
    border-radius: 20px; font-size: 0.8rem; font-weight: 600;
    cursor: pointer; border: none; text-decoration: none;
    transition: opacity 0.2s; font-family: inherit;
}
.share-btn:hover { opacity: 0.82; text-decoration: none; }
.share-btn--wa   { background: #25d366; color: #fff; }
.share-btn--tw   { background: #111; color: #fff; }
.share-btn--copy { background: var(--color-primary); color: #fff; }

/* Visitas */
.single-post__views { font-size: 0.82rem; color: var(--color-muted); }
.single-post__cat-badge {
    display: inline-block; font-size: 0.7rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: #fff; background: var(--color-accent);
    border-radius: 4px; padding: 0.2rem 0.7rem;
    margin-bottom: 0.75rem; text-decoration: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .single-layout { grid-template-columns: 1fr; }
    .single-layout__sidebar { position: static; }
    .sidebar-widget-area { display: grid; grid-template-columns: repeat(2,1fr); }
    .hero-post { grid-template-columns: 1fr; }
    .hero-post__img-wrap { height: 220px; }
    .hero-post__body { padding: 1.75rem; }
}
@media (max-width: 768px) {
    .sidebar-widget-area { grid-template-columns: 1fr; }
    .popular-grid { grid-template-columns: 1fr; }
    .post-share { gap: 0.35rem; }
    .posts-grid { grid-template-columns: 1fr; gap: 1rem; }
}

/* ============================================================
   HERO SLIDER
   ============================================================ */
.hero-slider {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 3rem;
    min-height: 400px;
    background: #0f2d40;
    box-shadow: 0 20px 60px rgba(15,45,64,0.22);
}
.hero-slider__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4,0,0.2,1);
    height: 100%;
}
.hero-slider__slide {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 100%;
    min-height: 420px;
    align-items: stretch;
}
.hero-slider__img-wrap {
    position: relative;
    overflow: hidden;
}
.hero-slider__img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.6s ease;
}
.hero-slider:hover .hero-slider__img { transform: scale(1.04); }
.hero-slider__overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to right, transparent 60%, rgba(15,23,42,0.7));
}
.hero-slider__content {
    padding: 2.5rem;
    display: flex; flex-direction: column; justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #0f2d40 0%, #1a3c5e 100%);
    position: relative;
}
.hero-slider__cat {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.1em;
    background: var(--color-accent); color: #fff;
    border-radius: 4px; padding: 0.2rem 0.7rem; margin-bottom: 1rem;
    width: fit-content; text-decoration: none;
}
.hero-slider__title {
    font-size: clamp(1.3rem, 2.5vw, 1.9rem);
    font-weight: 900; line-height: 1.2; margin: 0 0 0.75rem;
}
.hero-slider__title a { color: #fff; text-decoration: none; }
.hero-slider__title a:hover { color: rgba(255,255,255,0.85); }
.hero-slider__desc { color: rgba(255,255,255,0.65); font-size: 0.92rem; line-height: 1.6; margin: 0 0 1.25rem; }
.hero-slider__meta { font-size: 0.76rem; color: rgba(255,255,255,0.4); margin-bottom: 1.25rem; }
.hero-slider__btn {
    display: inline-flex; align-items: center; gap: 0.4rem;
    background: var(--color-accent); color: #fff;
    padding: 0.6rem 1.4rem; border-radius: 8px; font-size: 0.86rem;
    font-weight: 700; text-decoration: none; width: fit-content;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(249,115,22,0.35);
}
.hero-slider__btn:hover {
    background: #ea6a0a; transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(249,115,22,0.5); text-decoration: none;
}
.hero-slider__arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.45); color: #fff; border: none;
    width: 42px; height: 42px; border-radius: 50%;
    font-size: 1.6rem; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s; z-index: 10;
}
.hero-slider__arrow:hover { background: var(--color-accent); }
.hero-slider__arrow--prev { left: 1rem; }
.hero-slider__arrow--next { right: 1rem; }
.hero-slider__dots {
    position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%);
    display: flex; gap: 0.4rem; z-index: 10;
}
.hero-slider__dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: rgba(255,255,255,0.35); border: none; cursor: pointer;
    transition: background 0.2s, transform 0.2s; padding: 0;
}
.hero-slider__dot.active { background: #fff; transform: scale(1.3); }
@media (max-width: 768px) {
    .hero-slider__slide { grid-template-columns: 1fr; }
    .hero-slider__img-wrap { height: 200px; }
    .hero-slider__content { padding: 1.5rem; }
    .hero-slider__overlay { display: none; }
}

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-section { margin: 3rem 0; }
.faq-section .section-header { margin-bottom: 1.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0.6rem; }
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.2s;
}
.faq-item.open { box-shadow: 0 4px 20px rgba(0,0,0,0.08); border-color: var(--color-accent); }
.faq-question {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.1rem 1.3rem;
    cursor: pointer;
    font-size: 0.95rem; font-weight: 700; color: var(--color-primary);
    list-style: none; user-select: none;
    background: none; border: none; width: 100%; text-align: left;
}
.faq-question::-webkit-details-marker { display: none; }
.faq-question::after {
    content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--color-accent);
    transition: transform 0.25s; flex-shrink: 0; margin-left: 1rem;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-answer {
    max-height: 0; overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    font-size: 0.9rem; color: var(--color-text); line-height: 1.7;
    padding: 0 1.3rem;
}
.faq-item.open .faq-answer { max-height: 500px; padding: 0 1.3rem 1.1rem; }


/* ── Aviso médico ─────────────────────────────────────────── */
.aviso-medico {
    background: #fff7ed;
    border: 2px solid #f97316;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: .9rem;
    line-height: 1.6;
    color: #7c2d12;
}
.aviso-medico strong { color: #c2410c; }
.aviso-medico--footer {
    margin-top: 2.5rem;
    background: #f0fdf4;
    border-color: #10b981;
    color: #065f46;
}
.aviso-medico--footer strong { color: #047857; }

/* ── Widget de votación ───────────────────────────────────── */
.voto-widget {
    background: var(--color-bg-card, #fff);
    border: 2px solid var(--color-border, #e2e8f0);
    border-radius: 14px;
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}
.voto-widget__pregunta {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 1rem;
}
.voto-widget__botones {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}
.voto-btn {
    display: flex; align-items: center; gap: .4rem;
    padding: .65rem 1.5rem;
    border-radius: 999px;
    border: 2px solid var(--color-border, #e2e8f0);
    background: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s;
}
.voto-btn:hover { border-color: var(--color-accent); color: var(--color-accent); transform: translateY(-2px); }
.voto-btn--si.voto-btn--activo  { background: #dcfce7; border-color: #10b981; color: #065f46; }
.voto-btn--no.voto-btn--activo  { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.voto-widget__resultado { margin-top: .75rem; }
.voto-barra {
    height: 8px;
    background: #fee2e2;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: .5rem;
}
.voto-barra__fill {
    height: 100%;
    background: #10b981;
    border-radius: 999px;
    transition: width .5s ease;
}
.voto-stats {
    display: flex;
    justify-content: space-between;
    font-size: .85rem;
    color: var(--color-text-muted);
}


/* ── Stars display (tarjetas + artículos) ────────────────── */
.stars-display {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin: .35rem 0 .1rem;
    font-size: .95rem;
    line-height: 1;
}
.star { display: inline-block; }
.star--full  { color: #f59e0b; }
.star--half  { color: #f59e0b; opacity: .6; }
.star--empty { color: #d1d5db; }
.stars-count {
    font-size: .75rem;
    color: var(--color-text-muted, #64748b);
    margin-left: .25rem;
    font-weight: 500;
}

/* ── Stars en artículo (single.php) ─────────────────────── */
.single-post__stars {
    display: flex;
    align-items: center;
    gap: .2rem;
    margin: .5rem 0 1rem;
    font-size: 1.1rem;
}
.single-post__stars .stars-count {
    font-size: .85rem;
}


/* ── Votación compacta en tarjetas del home ──────────────── */
.card-vote-mini {
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    margin-left: .25rem;
}
.cvm-btn {
    background: none;
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: 999px;
    padding: 1px 6px;
    font-size: .78rem;
    cursor: pointer;
    line-height: 1.4;
    transition: background .15s, border-color .15s;
}
.cvm-btn:hover { background: #f1f5f9; border-color: var(--color-accent); }
.card-stars-inline {
    font-size: .8rem;
    font-weight: 600;
    color: var(--color-text-muted, #64748b);
}


/* ── Hero rating bar ─────────────────────────────────────── */
.hp-rating-bar {
    display: flex;
    align-items: center;
    gap: .75rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 999px;
    padding: .45rem 1rem;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(4px);
    width: fit-content;
}
.hp-rating-stars { display: flex; gap: .1rem; }
.hp-star         { color: rgba(255,255,255,.25); font-size: 1.05rem; line-height: 1; }
.hp-star--on     { color: #fbbf24; }
.hp-star--half   { color: #fbbf24; opacity: .6; }
.hp-rating-info  { font-size: .8rem; color: rgba(255,255,255,.9); }
.hp-rating-info strong { color: #fff; font-weight: 700; }


/* ── Bloque de votación en tarjetas ──────────────────────── */
.card-vote-block {
    border-top: 1px solid var(--color-border, #e2e8f0);
    padding: .6rem 0 .3rem;
    margin-top: .6rem;
    position: relative;   /* sale encima del stretched-link overlay */
    z-index: 2;
}
.cvb-stars {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin-bottom: .4rem;
    font-size: .9rem;
}
.cvb-score {
    font-size: .78rem;
    color: var(--color-text-muted, #64748b);
    margin-left: .3rem;
    font-weight: 500;
}
.cvb-btns {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}
.cvb-label {
    font-size: .8rem;
    color: var(--color-text-muted, #64748b);
}
.cvb-btn {
    padding: .3rem .85rem;
    border-radius: 999px;
    border: 1.5px solid var(--color-border, #e2e8f0);
    background: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .18s;
    display: inline-flex;
    align-items: center;
    gap: .25rem;
}
.cvb-btn--si:hover { background: #dcfce7; border-color: #10b981; color: #065f46; }
.cvb-btn--no:hover { background: #fee2e2; border-color: #ef4444; color: #7f1d1d; }
.cvb-thanks {
    font-size: .8rem;
    color: #10b981;
    font-weight: 600;
}
[data-theme="dark"] .cvb-btn { background: #1e293b; color: #e2e8f0; }


/* ============================================================
   PÁGINAS LEGALES (privacidad, términos, cookies)
   ============================================================ */
.legal-breadcrumb {
    font-size: .82rem;
    color: var(--color-muted);
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.legal-breadcrumb a {
    color: var(--color-accent);
    text-decoration: none;
}
.legal-breadcrumb a:hover { text-decoration: underline; }

.legal-title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 900;
    color: var(--color-primary);
    margin: 0 0 .35rem;
    line-height: 1.2;
}
.legal-updated {
    font-size: .82rem;
    color: var(--color-muted);
    margin: 0 0 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid var(--color-border);
}

.legal-body h2 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--color-primary);
    margin: 2rem 0 .65rem;
    padding-left: .75rem;
    border-left: 4px solid var(--color-accent);
}
.legal-body h3 {
    font-size: .98rem;
    font-weight: 700;
    color: var(--color-primary);
    margin: 1.25rem 0 .5rem;
}
.legal-body p {
    font-size: .93rem;
    line-height: 1.75;
    color: var(--color-text);
    margin: 0 0 .85rem;
}
.legal-body ul {
    padding-left: 1.4rem;
    margin: 0 0 .85rem;
}
.legal-body ul li {
    font-size: .93rem;
    line-height: 1.7;
    color: var(--color-text);
    margin-bottom: .3rem;
}
.legal-body a {
    color: var(--color-accent);
    text-decoration: none;
}
.legal-body a:hover { text-decoration: underline; }
.legal-body code {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-radius: 4px;
    padding: .1rem .4rem;
    font-size: .85rem;
    font-family: monospace;
}

/* Tabla legal */
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .87rem;
    margin: .75rem 0 1.25rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--color-border);
}
.legal-table th {
    background: var(--color-primary);
    color: #fff;
    text-align: left;
    padding: .6rem .85rem;
    font-size: .78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.legal-table td {
    padding: .6rem .85rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text);
    vertical-align: top;
}
.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:nth-child(even) td { background: var(--color-bg-alt); }
.legal-table a { color: var(--color-accent); }

/* CTA inferior */
.legal-cta {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 1.1rem 1.4rem;
    margin-top: 2.5rem;
    font-size: .92rem;
    color: #0369a1;
}
.legal-cta a { color: var(--color-accent); font-weight: 600; }

/* Footer links legales */
.footer-copy a {
    color: #94a3b8;
    text-decoration: none;
    font-size: .78rem;
    transition: color .2s;
}
.footer-copy a:hover { color: var(--color-accent); }


/* ============================================================
   BANNER DE COOKIES
   ============================================================ */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #0f2d40;
    border-top: 3px solid var(--color-accent);
    box-shadow: 0 -4px 24px rgba(0,0,0,.25);
    padding: 1rem 1.5rem;
    transition: opacity .3s ease, transform .3s ease;
}
.cookie-banner__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.cookie-banner__text {
    flex: 1;
    min-width: 260px;
    font-size: .87rem;
    color: rgba(255,255,255,.85);
    line-height: 1.5;
}
.cookie-banner__text strong {
    color: #fff;
    display: block;
    margin-bottom: .2rem;
    font-size: .95rem;
}
.cookie-banner__link {
    color: var(--color-accent);
    text-decoration: underline;
    margin-left: .35rem;
    white-space: nowrap;
}
.cookie-banner__btns {
    display: flex;
    gap: .65rem;
    flex-shrink: 0;
    flex-wrap: wrap;
}
.cookie-banner__btn {
    padding: .55rem 1.25rem;
    border-radius: 8px;
    border: none;
    font-size: .87rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity .2s, transform .15s;
    font-family: inherit;
    white-space: nowrap;
}
.cookie-banner__btn:hover { opacity: .88; transform: translateY(-1px); }
.cookie-banner__btn--accept {
    background: var(--color-accent);
    color: #fff;
    box-shadow: 0 2px 10px rgba(249,115,22,.4);
}
.cookie-banner__btn--essential {
    background: rgba(255,255,255,.1);
    color: rgba(255,255,255,.85);
    border: 1px solid rgba(255,255,255,.2);
}
.cookie-banner__btn--essential:hover {
    background: rgba(255,255,255,.18);
}
@media (max-width: 600px) {
    .cookie-banner__inner { flex-direction: column; align-items: flex-start; gap: .85rem; }
    .cookie-banner__btns { width: 100%; }
    .cookie-banner__btn { flex: 1; text-align: center; }
    .legal-table { font-size: .78rem; }
    .legal-table th, .legal-table td { padding: .45rem .6rem; }
}
