/* ======================================================
   FEED BODA.ES — usa los tokens de la hoja de estilos del sitio
   (--color-*, --font-*, --radius-*, --shadow-*), así funciona en claro y oscuro
   ====================================================== */
.feed-section { padding: 2.5rem 0 3rem; }
.feed-head { text-align: center; margin-bottom: 1.25rem; }
.feed-head h2 { font-family: var(--font-display); margin: .25rem 0 .5rem; }
.feed-head p { color: var(--color-text-muted); margin: 0; }

/* Filtros por tema: barra horizontal fija bajo el menú, se desliza con el dedo */
.feed-chips {
    position: sticky; top: 60px; z-index: 20;
    display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none;
    padding: .6rem 1rem; margin: 0 0 1rem;
    background: var(--color-bg); border-bottom: 1px solid var(--color-border);
    -webkit-overflow-scrolling: touch;
}
.feed-chips::-webkit-scrollbar { display: none; }
.feed-chip {
    flex: 0 0 auto; border: 1px solid var(--color-border); background: var(--color-white);
    color: var(--color-text); border-radius: 999px; padding: .4rem .9rem;
    font: 600 .85rem/1 var(--font-body); cursor: pointer;
}
.feed-chip[aria-pressed="true"] { background: var(--color-gold); border-color: var(--color-gold); color: #fff; }

/* Tarjetas: una columna en móvil, cuadrícula en pantallas grandes */
.feed-cards { display: grid; gap: 1rem; padding: 0 1rem; max-width: 1140px; margin: 0 auto; }
@media (min-width: 768px) { .feed-cards { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; } }
@media (min-width: 1100px) { .feed-cards { grid-template-columns: repeat(3, 1fr); } }

.feed-card__main { display: block; color: inherit; text-decoration: none; }
.feed-card__main:hover { color: inherit; text-decoration: none; }
.feed-card__actions { display: flex; justify-content: flex-end; padding: 0 1.25rem 1rem; margin-top: -.4rem; }
.feed-card__share { font: 600 .85rem/1 var(--font-body); color: var(--color-sage); text-decoration: none; padding: .45rem .7rem; border-radius: 999px; border: 1px solid var(--color-border); }
.feed-card__share:hover { color: #fff; background: #25d366; border-color: #25d366; text-decoration: none; }
.feed-search { display: block; max-width: 1140px; margin: 0 auto .6rem; padding: 0 1rem; }
.feed-search input { width: 100%; padding: .7rem 1rem .7rem 2.4rem; border: 1px solid var(--color-border); border-radius: 999px;
    background: var(--color-white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239e9a95' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398l3.85 3.85a1 1 0 0 0 1.415-1.414zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0'/%3E%3C/svg%3E") no-repeat .9rem center;
    color: var(--color-text); font: 400 1rem/1.2 var(--font-body); }
.feed-empty { text-align: center; color: var(--color-text-muted); padding: 1rem; }
.feed-card {
    display: block; background: var(--color-white); border: 1px solid var(--color-border);
    border-radius: var(--radius-md); overflow: hidden; color: inherit; text-decoration: none;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05);
    animation: feedCardIn .45s ease both;
}
.feed-card:hover, .feed-card:focus-visible { color: inherit; text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
@keyframes feedCardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .feed-card { animation: none; } }

.feed-card__media { aspect-ratio: 16 / 10; background: var(--color-cream); overflow: hidden; }
.feed-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feed-card__body { padding: 1.1rem 1.25rem 1.3rem; }
.feed-card__badge {
    display: inline-block; font: 700 .68rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase;
    color: var(--color-sage); margin-bottom: .55rem;
}
.feed-card__title { font: 600 1.2rem/1.3 var(--font-display); margin: 0 0 .5rem; color: var(--color-text); }
.feed-card__excerpt {
    color: var(--color-text-muted); font-size: .95rem; line-height: 1.55; margin: 0 0 .8rem;
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.feed-card__cta { font: 600 .9rem/1 var(--font-body); color: var(--color-gold-hover); }

/* «¿Sabías que…?»: dato verificado con su fuente */
.feed-card--curiosidad { background: var(--color-cream); border-color: var(--color-gold-light); }
.feed-card__curiosidad-label { font: 700 .75rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: var(--color-gold-hover); margin-bottom: .6rem; }
.feed-card__curiosidad-text { font: 500 1.15rem/1.45 var(--font-display); margin: 0 0 .8rem; color: var(--color-text); }
.feed-card__fuente { font-size: .82rem; color: var(--color-text-muted); }

/* Herramientas dentro del feed */
.feed-card--tool { background: var(--color-sage); border-color: var(--color-sage); }
.feed-card--tool .feed-card__badge, .feed-card--tool .feed-card__title, .feed-card--tool .feed-card__excerpt, .feed-card--tool .feed-card__cta { color: #fff; }

.feed-end { text-align: center; color: var(--color-text-muted); padding: 2rem 1rem 0; }
.feed-end a { color: var(--color-gold-hover); }

/* En móvil el feed sustituye a la cuadrícula de temas; en escritorio se mantienen las dos */
@media (max-width: 767.98px) {
    .home-temas-escritorio { display: none !important; }
}

/* Portada en el móvil: un solo botón («Inspírate»); el indicador de scroll se montaba encima de los botones y
   «Explora por temas» apuntaba a la cuadrícula de temas, que en el móvil sustituye el feed */
@media (max-width: 767.98px) {
    .hero .hero-scroll-indicator { display: none; }
    .hero a.btn-outline-boda[href="#secciones"] { display: none; }
}
