/**
 * Familia Paraguay - Estilos públicos
 * www.familia.com.py
 */

:root {
    --fp-green: #2E7D32;
    --fp-green-dark: #1B5E20;
    --fp-green-light: #E8F5E9;
    --fp-amber: #FF8F00;
    --fp-amber-light: #FFF8E1;
    --fp-text: #2d3436;
    --fp-text-light: #636e72;
    --fp-bg: #F8F9FA;
    --fp-card-shadow: 0 2px 8px rgba(0,0,0,.05);
    --fp-radius: 12px;
}

/* Reset & Base */
* { box-sizing: border-box; }
body { font-family: 'Nunito', sans-serif; color: var(--fp-text); background: var(--fp-bg); margin: 0; }
a { color: var(--fp-green); }
a:hover { color: var(--fp-green-dark); }
img { max-width: 100%; height: auto; }

/* Top bar */
.fp-topbar-pub {
    background: var(--fp-green-dark);
    color: rgba(255,255,255,.8);
    padding: .35rem 0;
    font-size: .8rem;
}

/* Header */
.fp-header { background: #fff; border-bottom: 1px solid #eee; }
.fp-logo {
    display: flex; align-items: center; gap: .6rem;
    font-family: 'Oswald', sans-serif; font-weight: 600;
    font-size: 1.5rem; color: var(--fp-green);
}
.fp-logo i { font-size: 1.6rem; color: var(--fp-amber); }
.fp-search-form { display: flex; border: 2px solid #e8e8e8; border-radius: 50px; overflow: hidden; }
.fp-search-input {
    border: none; outline: none; padding: .45rem 1rem;
    width: 240px; font-size: .9rem; font-family: 'Nunito', sans-serif;
}
.fp-search-btn {
    border: none; background: var(--fp-green); color: #fff;
    padding: .45rem .8rem; cursor: pointer;
}
.fp-search-btn:hover { background: var(--fp-green-dark); }

/* Navigation */
.fp-nav {
    background: var(--fp-green);
    position: sticky; top: 0; z-index: 1020;
}
.fp-nav-collapse { display: flex; flex-wrap: wrap; gap: 0; }
.fp-nav-link {
    display: inline-block;
    color: rgba(255,255,255,.85);
    text-decoration: none;
    padding: .6rem .85rem;
    font-size: .85rem;
    font-weight: 600;
    white-space: nowrap;
    transition: all .15s;
}
.fp-nav-link:hover, .fp-nav-link.active {
    color: #fff;
    background: rgba(255,255,255,.12);
}
.fp-nav-toggle {
    background: none; border: none;
    color: #fff; font-size: 1.4rem; padding: .3rem;
}
@media (max-width: 991px) {
    .fp-nav-collapse { flex-direction: column; }
    .fp-nav-link { padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
}

/* Main content */
.fp-main { padding: 1.5rem 0 3rem; }

/* Section titles */
.fp-section-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600; font-size: 1.25rem;
    color: var(--fp-text);
    padding-bottom: .6rem;
    margin-bottom: 1.25rem;
    border-bottom: 3px solid var(--fp-green);
    display: flex; align-items: center; gap: .5rem;
}

/* Article Cards */
.fp-card-article {
    background: #fff;
    border-radius: var(--fp-radius);
    overflow: hidden;
    box-shadow: var(--fp-card-shadow);
    border: 1px solid #eef0f4;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.fp-card-article:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}
.fp-card-img-wrap {
    position: relative; overflow: hidden;
    aspect-ratio: 16/10;
}
.fp-card-img-wrap img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .3s;
}
.fp-card-article:hover .fp-card-img-wrap img { transform: scale(1.05); }
.fp-card-cat {
    position: absolute; top: .75rem; left: .75rem;
    color: #fff; font-size: .7rem; font-weight: 700;
    padding: .2rem .6rem; border-radius: 4px;
    text-transform: uppercase; letter-spacing: .03em;
}
.fp-card-cat-text {
    font-size: .75rem; font-weight: 700;
    text-decoration: none; text-transform: uppercase;
    letter-spacing: .03em;
}
.fp-card-body { padding: 1rem; flex: 1; display: flex; flex-direction: column; }
.fp-card-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500; font-size: 1.05rem;
    margin: 0 0 .4rem; line-height: 1.3;
}
.fp-card-title a { color: var(--fp-text); text-decoration: none; }
.fp-card-title a:hover { color: var(--fp-green); }
.fp-card-excerpt {
    color: var(--fp-text-light);
    font-size: .88rem; line-height: 1.5;
    margin: 0 0 .5rem; flex: 1;
}
.fp-card-meta {
    display: flex; gap: .75rem;
    color: #aaa; font-size: .78rem;
    margin-top: auto;
}
.fp-sponsored-tag {
    display: inline-block;
    background: var(--fp-amber-light);
    color: var(--fp-amber);
    font-size: .65rem; font-weight: 700;
    padding: .15rem .5rem; border-radius: 3px;
    margin-bottom: .3rem; text-transform: uppercase;
}

/* Large card (hero) */
.fp-card-large {
    background: #fff; border-radius: var(--fp-radius);
    overflow: hidden; box-shadow: var(--fp-card-shadow);
    border: 1px solid #eef0f4;
}
.fp-card-large-img { display: block; position: relative; aspect-ratio: 16/9; overflow: hidden; }
.fp-card-large-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-card-large-body { padding: 1.25rem; }
.fp-card-large-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600; font-size: 1.4rem;
    margin: 0 0 .5rem; line-height: 1.25;
}
.fp-card-large-title a { color: var(--fp-text); text-decoration: none; }
.fp-card-large-title a:hover { color: var(--fp-green); }

/* Horizontal card */
.fp-card-horizontal {
    display: flex; gap: 1rem;
    padding: .75rem 0;
    border-bottom: 1px solid #f0f0f0;
}
.fp-card-horizontal:last-child { border-bottom: none; }
.fp-card-horizontal-img {
    flex-shrink: 0; width: 120px; height: 80px;
    border-radius: 8px; overflow: hidden;
}
.fp-card-horizontal-img img { width: 100%; height: 100%; object-fit: cover; }
.fp-card-horizontal-body { flex: 1; min-width: 0; }
.fp-card-horizontal-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500; font-size: .95rem;
    margin: 0 0 .25rem; line-height: 1.3;
}
.fp-card-horizontal-title a { color: var(--fp-text); text-decoration: none; }
.fp-card-horizontal-title a:hover { color: var(--fp-green); }

/* Sidebar */
.fp-sidebar-card {
    background: #fff;
    border-radius: var(--fp-radius);
    padding: 1.25rem;
    box-shadow: var(--fp-card-shadow);
    border: 1px solid #eef0f4;
}
.fp-sidebar-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500; font-size: 1.05rem;
    margin: 0 0 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--fp-green);
}
.fp-sidebar-article {
    display: flex; gap: .65rem; align-items: flex-start;
    padding: .5rem 0; border-bottom: 1px solid #f5f5f5;
    text-decoration: none; color: var(--fp-text);
}
.fp-sidebar-article:last-child { border-bottom: none; }
.fp-sidebar-article:hover .fp-sidebar-article-title { color: var(--fp-green); }
.fp-sidebar-num {
    flex-shrink: 0; width: 28px; height: 28px;
    background: var(--fp-green-light); color: var(--fp-green);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-weight: 800; font-size: .8rem;
}
.fp-sidebar-article-title {
    font-weight: 600; font-size: .85rem;
    line-height: 1.3; transition: color .15s;
}
.fp-sidebar-cat {
    display: flex; align-items: center; gap: .5rem;
    padding: .4rem 0; text-decoration: none; color: var(--fp-text);
    font-size: .88rem; font-weight: 600;
    border-bottom: 1px solid #f5f5f5;
}
.fp-sidebar-cat:last-child { border-bottom: none; }
.fp-sidebar-cat:hover { color: var(--fp-green); }
.fp-sidebar-cat-count {
    margin-left: auto; font-size: .75rem;
    color: #aaa; font-weight: 400;
}
.fp-tag-cloud { display: flex; flex-wrap: wrap; gap: .4rem; }
.fp-tag {
    background: var(--fp-green-light);
    color: var(--fp-green);
    padding: .2rem .6rem; border-radius: 50px;
    font-size: .78rem; font-weight: 600;
    text-decoration: none; transition: all .15s;
}
.fp-tag:hover { background: var(--fp-green); color: #fff; }

/* Sidebar survey & newsletter */
.fp-sidebar-survey { border-left: 4px solid var(--fp-amber); }
.fp-sidebar-newsletter { background: var(--fp-green-light); border: 1px solid #C8E6C9; }

/* Buttons */
.btn-fp-public {
    background: var(--fp-green); border-color: var(--fp-green);
    color: #fff; font-weight: 600; border-radius: 8px;
}
.btn-fp-public:hover { background: var(--fp-green-dark); color: #fff; }

/* Article detail */
.fp-article-header { background: #fff; padding: 2rem 0; border-bottom: 1px solid #eee; }
.fp-article-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 600; font-size: 1.8rem;
    color: var(--fp-text); line-height: 1.2;
}
.fp-article-meta {
    color: var(--fp-text-light); font-size: .88rem;
    display: flex; flex-wrap: wrap; gap: .75rem;
    margin-top: .75rem;
}
.fp-article-content {
    font-size: 1.05rem; line-height: 1.85;
    color: #333;
}
.fp-article-content h2 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500; color: var(--fp-green);
    margin-top: 2rem; font-size: 1.4rem;
}
.fp-article-content h3 {
    font-family: 'Oswald', sans-serif;
    font-weight: 500; color: #444;
    margin-top: 1.5rem; font-size: 1.15rem;
}
.fp-article-content blockquote {
    border-left: 4px solid var(--fp-green);
    padding: 1rem 1.5rem;
    background: #f9f9f9;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    font-style: italic;
}
.fp-article-content ul, .fp-article-content ol { padding-left: 1.25rem; }
.fp-article-content li { margin-bottom: .35rem; }
.fp-article-content img { border-radius: 8px; margin: 1rem 0; }
.fp-disclaimer {
    background: var(--fp-amber-light);
    border: 1px solid #FFE082;
    border-radius: var(--fp-radius);
    padding: 1.25rem;
    margin-top: 2rem;
}
.fp-disclaimer h6 { color: #E65100; font-weight: 700; }

/* Breadcrumbs */
.fp-breadcrumb {
    font-size: .82rem; color: var(--fp-text-light);
    padding: .75rem 0;
}
.fp-breadcrumb a { color: var(--fp-green); text-decoration: none; }
.fp-breadcrumb a:hover { text-decoration: underline; }

/* Categories list on home */
.fp-cat-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .4rem .9rem;
    background: #fff; border: 1px solid #eee;
    border-radius: 50px; text-decoration: none;
    font-size: .85rem; font-weight: 600;
    color: var(--fp-text);
    transition: all .15s;
}
.fp-cat-badge:hover {
    border-color: var(--fp-green);
    color: var(--fp-green);
    box-shadow: var(--fp-card-shadow);
}

/* Footer */
.fp-footer {
    background: #1a2332; color: #aab4c2; padding: 3rem 0 0;
}
.fp-footer-brand {
    font-family: 'Oswald', sans-serif;
    font-weight: 600; font-size: 1.3rem;
    color: #fff; margin-bottom: .75rem;
}
.fp-footer-brand i { color: var(--fp-amber); }
.fp-footer-text { font-size: .88rem; line-height: 1.6; }
.fp-footer-title {
    font-family: 'Oswald', sans-serif;
    font-weight: 500; color: #fff;
    font-size: .95rem; margin-bottom: .75rem;
}
.fp-footer-link {
    display: block; color: #8892a0;
    text-decoration: none; font-size: .85rem;
    padding: .2rem 0;
}
.fp-footer-link:hover { color: #fff; }
.fp-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.06);
    margin-top: 2rem; padding: 1.25rem 0;
    display: flex; justify-content: space-between;
    flex-wrap: wrap; gap: .5rem;
    font-size: .8rem;
}
.fp-footer-bottom a { color: var(--fp-amber); text-decoration: none; }
.fp-newsletter-form { display: flex; border-radius: 8px; overflow: hidden; }
.fp-newsletter-input {
    flex: 1; border: none; padding: .5rem .75rem;
    font-size: .88rem; font-family: 'Nunito', sans-serif;
    background: rgba(255,255,255,.08); color: #fff;
}
.fp-newsletter-input::placeholder { color: #667; }
.fp-newsletter-btn {
    background: var(--fp-amber); border: none;
    color: #fff; padding: .5rem .75rem; cursor: pointer;
}

/* Pagination override */
.pagination .page-link { color: var(--fp-green); }
.pagination .page-item.active .page-link { background: var(--fp-green); border-color: var(--fp-green); }

/* Responsive refinements */
@media (max-width: 767px) {
    .fp-article-title { font-size: 1.4rem; }
    .fp-card-large-title { font-size: 1.15rem; }
    .fp-article-content { font-size: 1rem; }
    .fp-footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================
   Nav Dropdowns (subcategorías)
   ============================ */
.fp-nav-dropdown {
    position: relative;
    display: inline-block;
}
.fp-nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    min-width: 220px;
    z-index: 1050;
    padding: .35rem 0;
}
.fp-nav-dropdown:hover .fp-nav-dropdown-menu {
    display: block;
}
.fp-nav-dropdown-item {
    display: block;
    padding: .5rem 1rem;
    color: #333;
    text-decoration: none;
    font-size: .88rem;
    font-weight: 600;
    transition: all .12s;
}
.fp-nav-dropdown-item:hover {
    background: var(--fp-green-light);
    color: var(--fp-green);
}
.fp-nav-dropdown-all {
    color: var(--fp-green);
    border-bottom: 1px solid #f0f0f0;
    font-weight: 700;
}
@media (max-width: 991px) {
    .fp-nav-dropdown-menu {
        position: static;
        box-shadow: none;
        background: rgba(255,255,255,.06);
        border-radius: 0;
        padding: 0 0 0 1rem;
    }
    .fp-nav-dropdown-item {
        color: rgba(255,255,255,.75);
        padding: .4rem 0;
        font-size: .82rem;
        border-bottom: 1px solid rgba(255,255,255,.06);
    }
    .fp-nav-dropdown-item:hover {
        background: transparent;
        color: #fff;
    }
    .fp-nav-dropdown-all {
        color: rgba(255,255,255,.9);
        border-bottom-color: rgba(255,255,255,.1);
    }
    .fp-nav-dropdown:hover .fp-nav-dropdown-menu,
    .fp-nav-dropdown .fp-nav-dropdown-menu {
        display: block;
    }
}
