/* Guides and "mejores fondos" pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
.page-wrap { max-width: 1400px; padding: 0.5rem 0.5rem 2rem; }

.guide { max-width: 820px; margin: 0 auto; padding: 0 6px; color: #2b3a4d; line-height: 1.7; font-size: 1.02rem; }
.guide .crumbs { font-size: 0.8rem; color: #8a9ab0; margin: 6px 0 14px; }
.guide .crumbs a { color: #1976d2; text-decoration: none; }
.guide .crumbs a:hover { text-decoration: underline; }
.guide h1.page-heading { text-align: left; color: #22314a; font-size: 1.9rem; line-height: 1.25; margin: 0 0 6px; }
.guide .lead { font-size: 1.12rem; color: #44566c; margin: 8px 0 18px; }
.guide .meta { font-size: 0.78rem; color: #8a9ab0; margin: 0 0 18px; }
.guide h2 { font-size: 1.3rem; color: #22314a; margin: 30px 0 8px; line-height: 1.3; }
.guide h3 { font-size: 1.05rem; color: #22314a; margin: 20px 0 6px; }
.guide p { margin: 0 0 14px; }
.guide ul, .guide ol { margin: 0 0 16px; padding-left: 22px; }
.guide li { margin-bottom: 6px; }
.guide a { color: #1565c0; }
.guide .callout { background: #f0faf5; border-left: 4px solid #4ca585; border-radius: 8px; padding: 12px 16px; margin: 18px 0; }
.guide .callout p:last-child { margin-bottom: 0; }
.guide .warn { background: #fff8eb; border-left-color: #f59e0b; }
.guide .compare { width: 100%; border-collapse: collapse; margin: 14px 0 20px; font-size: 0.93rem; }
.guide .compare th, .guide .compare td { border: 1px solid #e0e8f2; padding: 9px 12px; text-align: left; vertical-align: top; }
.guide .compare thead th { background: #f4f8fc; color: #22314a; }
.guide .compare tbody th { background: #fafbfd; width: 28%; font-weight: 700; }
.guide .table-scroll { overflow-x: auto; }
.guide details { border: 1px solid #e0e8f2; border-radius: 10px; padding: 10px 14px; margin-bottom: 10px; background: #fff; }
.guide summary { cursor: pointer; font-weight: 700; color: #22314a; }
.guide details[open] summary { margin-bottom: 8px; }
.guide .cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.guide .cta a { display: inline-block; padding: 10px 18px; border-radius: 8px; background: linear-gradient(135deg, #4ca585 0%, #3d8a6a 100%); color: #fff; font-weight: 700; text-decoration: none; }
.guide .cta a.alt { background: #fff; color: #29517d; border: 1px solid #c9d8e6; }
.guide .related { margin-top: 30px; padding-top: 16px; border-top: 1px solid #e0e8f2; }
.guide .related h2 { margin-top: 0; font-size: 1.1rem; }
.guide .disclaimer { margin-top: 26px; font-size: 0.8rem; color: #8a9ab0; line-height: 1.5; }

/* Hub */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 26px; }
.guide-card { display: block; padding: 16px 18px; background: #fff; border: 1px solid #e0e8f2; border-radius: 14px; text-decoration: none !important; color: #22314a !important; box-shadow: 0 2px 8px rgba(60,120,200,0.06); transition: border-color 0.2s, box-shadow 0.2s; }
.guide-card:hover { border-color: #4ca585; box-shadow: 0 6px 18px rgba(60,120,200,0.14); }
.guide-card strong { display: block; font-size: 1.02rem; margin-bottom: 4px; }
.guide-card span { font-size: 0.88rem; color: #5c6b80; line-height: 1.45; }

/* Best funds */
.best-wrap { max-width: 1000px; margin: 0 auto; padding: 0 6px; }
.best-list { counter-reset: rank; list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 8px; }
.best-item { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #fff; border: 1px solid #e0e8f2; border-radius: 12px; }
.best-item::before { counter-increment: rank; content: counter(rank); flex: none; width: 28px; height: 28px; border-radius: 50%; background: #eaf3fb; color: #1c4b7a; font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.best-item .nm { flex: 1; min-width: 0; font-weight: 700; color: #22314a; overflow-wrap: anywhere; }
.best-item .nm small { display: block; font-weight: 500; color: #8a9ab0; font-size: 0.75rem; }
.best-item .val { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; color: #1976d2; }
.best-item .val.usd { color: #388e3c; }
.best-item a.go { flex: none; font-size: 0.8rem; color: #1565c0; text-decoration: none; font-weight: 600; }
.best-item a.go:hover { text-decoration: underline; }
.best-section h2 { font-size: 1.15rem; color: #22314a; margin: 26px 0 4px; }
.best-section .sub { margin: 0 0 10px; font-size: 0.85rem; color: #5c6b80; }
.best-empty { padding: 14px; color: #8a9ab0; font-style: italic; }
@media (max-width: 620px) {
    .guide h1.page-heading { font-size: 1.5rem; }
    .best-item { flex-wrap: wrap; }
    .best-item a.go { margin-left: 40px; }
}
