/* ejemplos.css (HOTFIX-052) — layout of the /ejemplos/ hub and its detail pages.
   Loaded after /css/brand-pages.css, which owns fonts, tokens, top bar, footer
   and .hezu-btn. firebase.json serves CSS as immutable: bump the ?v= token on
   every /ejemplos/ page (scripts/generate-ejemplos.py ASSET_V) when editing. */

.ejemplos-main { max-width: 800px; margin: 0 auto; padding: 1.25rem 1.25rem 2rem; }
.ejemplos-main h1 { margin: 0.2em 0 0.4em; }
.ejemplos-main .intro { font-size: 1.0625rem; color: var(--ink-2); margin: 0 0 1.5rem; }

/* ---- Detail page ----------------------------------------------------------- */
.example-section {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}
.example-content { color: var(--ink-2); }
.example-content h2, .example-content h3, .example-content h4 { margin: 1.25rem 0 0.6rem; }
.example-content p { margin: 0 0 1rem; }
.example-content ul, .example-content ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.example-content li { margin-bottom: 0.5rem; }
.example-content strong { color: var(--ink); }
.example-note {
    background: var(--hezu-green-light);
    border-left: 4px solid var(--hezu-green);
    padding: 0.9rem 1.1rem;
    margin-top: 1.5rem;
    border-radius: 0 10px 10px 0;
    font-size: 0.9375rem;
}
.example-note em { color: var(--hezu-green-deep); }

.cta-section {
    background: var(--hezu-green-light);
    border: 1px solid #c8e6c9;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    margin-bottom: 2rem;
}
.cta-section h2 { margin: 0 0 0.5rem; font-size: 1.5rem; }
.cta-section p { margin: 0 0 1.1rem; }
.cta-section .cta-note { font-size: 0.875rem; color: var(--muted); margin: 0.75rem 0 0; }

.related-section { margin-bottom: 2rem; }
.related-section h2 { font-size: 1.25rem; margin: 0 0 0.75rem; }
.related-section a { display: block; margin-bottom: 0.5rem; text-decoration: none; }
.related-section a:hover { text-decoration: underline; }

/* ---- Hub (/ejemplos/) ------------------------------------------------------- */
.ejemplos-hero {
    background: linear-gradient(180deg, #f1f8f2 0%, var(--hezu-cream) 100%);
    padding: 1.75rem 1.25rem 0.75rem;
    text-align: center;
}
.ejemplos-hero h1 { margin: 0 0 0.4rem; }
.ejemplos-hero p { max-width: 600px; margin: 0 auto; font-size: 1.0625rem; color: var(--ink-2); }

.examples-main { max-width: 1100px; margin: 0 auto; padding: 0.5rem 1.25rem 1rem; }
.examples-group { margin: 1.75rem 0 0; }
.examples-group h2 { margin: 0 0 0.25rem; font-size: 1.5rem; }
.examples-group .group-blurb { margin: 0 0 0.9rem; color: var(--muted); font-size: 0.9375rem; }
.examples-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 0.9rem; }

.example-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 0.9rem 1rem;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.15s;
}
.example-card:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); }
.example-card-icon {
    flex: none;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    font-size: 1.5rem;
    background: var(--hezu-green-light);
    border-radius: 12px;
}
.example-card h3 { margin: 0 0 0.15rem; font-size: 1rem; line-height: 1.3; }
.example-card p { margin: 0; color: var(--muted); font-size: 0.875rem; }

.examples-cta { text-align: center; padding: 2.25rem 1.25rem 0.5rem; }
.examples-cta h2 { margin: 0 0 0.5rem; }
.examples-cta p { max-width: 500px; margin: 0 auto 1.25rem; }

@media (max-width: 768px) {
    .example-section { padding: 1.25rem; }
}
.examples-group:first-child { margin-top: 0.75rem; }
