*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #D4142A;
    --primary-dark: #A50F1F;
    --primary-light: #E8334A;
    --secondary: #000000;
    --dark: #222222;
    --light: #F5F5F5;
    --white: #FFFFFF;
    --text: #111111;
    --text-muted: #666666;
    --border: #E0E0E0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius: 8px;
    --radius-lg: 14px;
    --transition: all 0.25s ease;
}

html {
    scroll-behavior: smooth;
    font-size: 15px;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* HEADER */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-md);
}

.header-top {
    background: var(--secondary);
    padding: 0;
}

.header-top .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.logo-text span {
    font-size: 0.62rem;
    opacity: 0.7;
    display: block;
    letter-spacing: 0.3px;
}

.main-nav {
    background: var(--primary);
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 11px 20px;
    color: var(--white);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    transition: var(--transition);
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    background: var(--primary-dark);
}

.nav-list > li > a i {
    font-size: 0.7rem;
}

.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--white);
    min-width: 280px;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    list-style: none;
    border-top: 3px solid var(--primary);
    border-radius: 0 0 var(--radius) var(--radius);
}

.submenu li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 18px;
    color: var(--text);
    text-decoration: none;
    font-size: 0.82rem;
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.submenu li a i {
    color: var(--primary);
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
}

.submenu li a:hover {
    background: var(--light);
    color: var(--primary);
    padding-left: 24px;
}

.submenu li:last-child a {
    border-bottom: none;
}

.has-submenu:hover .submenu {
    display: block;
    animation: fadeDown 0.2s ease;
}

.has-submenu.no-link > a {
    cursor: default;
}

@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.menu-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.site-main {
    flex: 1;
}

/* SECTIONS */
.section {
    padding: 50px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 35px;
}

.section-title h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary);
    border-radius: 2px;
}

.section-title p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 14px;
}

.section-white {
    background: var(--white);
}

.section-gray {
    background: var(--light);
}

/* HERO */
.hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #1a1a1a 60%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 65px 0 55px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to top, var(--white), transparent);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 22px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 14px;
    line-height: 1.2;
}

.hero p {
    font-size: 0.95rem;
    opacity: 0.85;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 300;
}

.hero-line {
    width: 50px;
    height: 3px;
    background: var(--primary);
    margin: 22px auto 0;
    border-radius: 2px;
}

/* VALUES */
.values-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
}

.value-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 22px 10px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.value-card:hover::before {
    transform: scaleX(1);
}

.value-card .icon {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 10px;
    display: block;
}

.value-card h4 {
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* GALLERY */
.gallery-item:hover img {
    transform: scale(1.06);
}
.gallery-item .gallery-expand {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.5);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.gallery-item:hover .gallery-expand {
    opacity: 1;
}

/* CARDS */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 22px;
}

.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    color: var(--text);
    margin-bottom: 8px;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.card-body p {
    color: var(--text-muted);
    font-size: 0.82rem;
    margin-bottom: 12px;
    line-height: 1.6;
}

.card-body .date {
    font-size: 0.72rem;
    color: var(--primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* BUTTONS */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: 0.8rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212,20,42,0.3);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

.btn.active,
.btn.active:hover,
.btn.active:visited,
.btn.active:focus,
.btn-outline.active,
.btn-outline.active:hover,
.btn-outline.active:visited,
.btn-outline.active:focus {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.btn-sm {
    padding: 7px 14px;
    font-size: 0.75rem;
}

.btn-white {
    background: var(--white);
    color: var(--primary);
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 50px 0 40px;
    text-align: center;
    position: relative;
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(to top, var(--light), transparent);
}

.page-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    margin-bottom: 6px;
}

.page-header p {
    opacity: 0.8;
    font-size: 0.9rem;
}

.content-area {
    max-width: 800px;
    margin: 0 auto;
}

/* DOCUMENT LIST */
.doc-list {
    list-style: none;
}

.doc-list li {
    padding: 16px 20px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    transition: var(--transition);
}

.doc-list li:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-sm);
}

.doc-list .doc-icon {
    width: 40px;
    height: 40px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1rem;
    flex-shrink: 0;
}

.doc-list .doc-info {
    flex: 1;
}

.doc-list .doc-info h4 {
    color: var(--text);
    margin-bottom: 2px;
    font-size: 0.88rem;
}

.doc-list .doc-info p {
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* FACEBOOK SECTION */
.facebook-section {
    padding: 50px 0;
}

.facebook-wrapper {
    max-width: 480px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}

.facebook-wrapper iframe {
    display: block;
    width: 100%;
    border: none;
}

.fb-feed-wrap {
    max-width: 980px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0,0,0,0.04);
}

.fb-feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 60%, var(--primary-dark) 100%);
    color: var(--white);
    flex-wrap: wrap;
}

.fb-feed-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    object-fit: contain;
    background: var(--white);
    flex-shrink: 0;
    padding: 3px;
}

.fb-feed-meta {
    flex: 1;
    min-width: 200px;
}

.fb-feed-name {
    display: block;
    color: var(--white);
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    line-height: 1.2;
    margin-bottom: 2px;
}

.fb-feed-name:hover {
    text-decoration: underline;
}

.fb-feed-followers {
    font-size: 0.78rem;
    opacity: 0.95;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-feed-follow-btn {
    background: var(--primary);
    color: var(--white);
    padding: 7px 14px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: var(--transition);
    white-space: nowrap;
    flex-shrink: 0;
}

.fb-feed-follow-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.fb-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    background: transparent;
    padding: 4px;
}

.fb-post-card {
    background: var(--white);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
    min-height: auto;
    cursor: pointer;
    border-radius: var(--radius);
    border: 1px solid rgba(0,0,0,0.06);
}

.fb-post-card:hover {
    background: #f7f8fa;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.fb-post-img {
    width: 100%;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #f0f0f0;
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
}

.fb-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fb-post-img-text {
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.fb-post-img-text::before {
    content: '\e047';
    font-family: 'flaticon_uicons' !important;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.5);
}

.fb-post-fb-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    border: 2px solid var(--white);
}

.fb-post-body {
    padding: 12px 14px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fb-post-message {
    font-size: 0.8rem;
    line-height: 1.4;
    color: var(--text);
    margin-bottom: 10px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.fb-post-title {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
    line-height: 1.3;
}

.fb-post-stats {
    display: flex;
    gap: 12px;
    font-size: 0.68rem;
    color: #65676b;
    flex-wrap: wrap;
    margin-top: auto;
}

.fb-post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.fb-post-stats i {
    font-size: 0.7rem;
}

.fb-post-stats {
    display: flex;
    gap: 12px;
    font-size: 0.7rem;
    color: #65676b;
    flex-wrap: wrap;
    margin-top: auto;
}

.fb-post-stats span {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.fb-post-stats i {
    font-size: 0.75rem;
}

.fb-feed-empty {
    padding: 30px;
    text-align: center;
    color: #65676b;
    font-size: 0.9rem;
}

.fb-feed-empty a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.fb-feed-empty a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .fb-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
    .fb-post-card {
        min-height: auto;
    }
    .fb-post-img {
        height: 140px;
    }
    .fb-feed-header {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px 16px;
    }
    .fb-feed-meta {
        flex: 1 1 60%;
    }
    .fb-feed-follow-btn {
        font-size: 0.75rem;
        padding: 6px 12px;
    }
    .fb-feed-avatar {
        width: 42px;
        height: 42px;
    }
    .fb-feed-name {
        font-size: 0.88rem;
    }
    .fb-post-title {
        font-size: 0.82rem;
    }
    .fb-post-message {
        font-size: 0.76rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 560px) {
    .fb-feed-grid {
        grid-template-columns: 1fr;
    }
    .fb-post-img {
        height: 180px;
    }
    .fb-feed-header {
        flex-direction: column;
        align-items: stretch;
    }
    .fb-feed-meta {
        width: 100%;
        flex: none;
    }
    .fb-feed-follow-btn {
        width: 100%;
        justify-content: center;
    }
    .fb-feed-avatar {
        margin: 0 auto;
    }
    .fb-feed-name {
        text-align: center;
    }
    .fb-feed-followers {
        text-align: center;
        justify-content: center;
    }
}

.facebook-fallback {
    padding: 30px;
    text-align: center;
}

.facebook-fallback i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.facebook-fallback p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 16px;
}

.facebook-fallback a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

/* RECURSOS */
.recursos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.recurso-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}

.recurso-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.recurso-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.recurso-card:hover::after {
    transform: scaleX(1);
}

.recurso-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
    display: block;
}

.recurso-card h3 {
    color: var(--text);
    margin-bottom: 6px;
    font-size: 0.95rem;
    font-weight: 700;
}

.recurso-card p {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* FOOTER */
.site-footer {
    background: var(--secondary);
    color: var(--white);
    padding: 45px 0 0;
    margin-top: auto;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 35px;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-col h3 {
    font-size: 0.88rem;
    margin-bottom: 14px;
    color: var(--white);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-col p {
    font-size: 0.8rem;
    opacity: 0.6;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    opacity: 0.6;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-col ul li a i {
    font-size: 0.7rem;
    color: var(--primary);
}

.footer-col ul li a:hover {
    opacity: 1;
    color: var(--primary);
    padding-left: 6px;
}

.footer-valores {
    margin-top: 12px;
    font-size: 0.75rem !important;
    opacity: 0.4 !important;
    font-style: italic;
}

.footer-bottom {
    text-align: center;
    padding: 18px 0;
    font-size: 0.72rem;
    opacity: 0.4;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    background: var(--primary);
    color: var(--white);
    text-decoration: none;
    border-radius: var(--radius);
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.8rem;
}

.social-link:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

/* PAGINATION */
.pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 28px;
}

.pagination a {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.8rem;
}

.pagination a:hover,
.pagination a.active {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

/* MOBILE */
@media (max-width: 1024px) {
    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

.hero-home h2{font-size:3rem;font-weight:900;color:#fff;margin:0 0 8px;letter-spacing:-1px}
.hero-home p{color:rgba(255,255,255,0.9)}.hero-home p+p{color:rgba(255,255,255,0.7)}

@media (max-width: 1024px) {
    .section-gallery .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)) !important; }
}
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-list {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--secondary);
    }

    .nav-list.active {
        display: flex;
    }

    .nav-list > li > a {
        padding: 13px 18px;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }

    .submenu {
        position: static;
        box-shadow: none;
        background: rgba(0,0,0,0.3);
        border-radius: 0;
        display: none;
        border-top: none;
    }

    .has-submenu.open .submenu {
        display: block;
    }

    .submenu li a {
        color: rgba(255,255,255,0.8);
        border-bottom: 1px solid rgba(255,255,255,0.04);
        padding-left: 36px;
        font-size: 0.8rem;
    }

    .submenu li a:hover {
        background: rgba(255,255,255,0.06);
        color: var(--white);
    }

    .submenu li a i {
        color: var(--primary);
    }

    .header-top .container {
        height: 58px;
    }

    .logo img {
        height: 34px;
    }

    .logo-text h1 {
        font-size: 1rem;
    }

    .hero {
        padding: 50px 0 40px;
    }

    .hero h2 {
        font-size: 1.6rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .section {
        padding: 35px 0;
    }

    .section-title h2 {
        font-size: 1.4rem;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .value-card {
        padding: 16px 8px;
    }

    .value-card .icon {
        font-size: 1.2rem;
    }

    .value-card h4 {
        font-size: 0.65rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .doc-list li {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .page-header {
        padding: 40px 0 30px;
    }

    .page-header h2 {
        font-size: 1.4rem;
    }

    .facebook-wrapper {
        max-width: 100%;
    }

    .recursos-grid {
        grid-template-columns: 1fr;
    }

    .hero-home h2 { font-size: 1.8rem !important; }
    .hero-home p { font-size: 1rem !important; }
    .hero-home .btn { padding: 12px 24px !important; font-size: 0.9rem !important; }
}

@media (max-width: 480px) {
    .hero h2 {
        font-size: 1.3rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-text span {
        display: none;
    }

    .hero-badge {
        font-size: 0.6rem;
        padding: 5px 12px;
    }

    .hero-home h2 { font-size: 1.4rem !important; }
    .hero-home p { font-size: 0.85rem !important; }
}

/* ============================================
   ADMIN STYLES
   ============================================ */
.admin-body {
    background: var(--light);
    font-size: 14px;
}

.admin-header {
    background: var(--secondary);
    color: var(--white);
    padding: 0;
    box-shadow: var(--shadow-md);
}

.admin-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 52px;
}

.admin-header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.admin-header-left a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.admin-header-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-header-right span {
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.admin-header-right a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.78rem;
    padding: 6px 14px;
    background: var(--primary);
    border-radius: var(--radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 5px;
}

.admin-header-right a:hover {
    background: var(--primary-dark);
}

.admin-content {
    padding: 24px 0;
}

.admin-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    border: 1px solid rgba(0,0,0,0.04);
}

.admin-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.admin-card-header h2 {
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-card-header h2 i {
    color: var(--primary);
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.admin-stat {
    background: var(--white);
    border-radius: var(--radius);
    padding: 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.04);
}

.admin-stat .stat-icon {
    font-size: 1.4rem;
    color: var(--primary);
    margin-bottom: 6px;
}

.admin-stat .stat-num {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1;
}

.admin-stat .stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-action-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--light);
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--text);
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.85rem;
    border: 1px solid transparent;
}

.admin-action-card:hover {
    background: var(--white);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-1px);
}

.admin-action-card i {
    font-size: 1rem;
    color: var(--primary);
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text);
    font-size: 0.8rem;
}

.form-control {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-size: 0.85rem;
    transition: var(--transition);
    font-family: inherit;
    background: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(212,20,42,0.08);
}

textarea.form-control {
    min-height: 130px;
    resize: vertical;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 34px;
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th,
.table td {
    padding: 10px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 0.82rem;
}

.table th {
    background: var(--secondary);
    color: var(--white);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

.table tr:hover td {
    background: var(--light);
}

.alert {
    padding: 10px 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
}

.btn-danger {
    background: var(--primary);
}

.btn-danger:hover {
    background: var(--primary-dark);
}

/* LOGIN */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    padding: 20px;
}

.login-box {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow-lg);
}

.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    height: 60px;
}

.login-box h2 {
    text-align: center;
    color: var(--text);
    margin-bottom: 4px;
    font-size: 1.15rem;
}

.login-box > p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 0.82rem;
}

.login-box .form-group {
    margin-bottom: 14px;
}

.login-box .btn {
    width: 100%;
    padding: 11px;
    font-size: 0.88rem;
    justify-content: center;
    margin-top: 4px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

@media (max-width: 600px) {
    .doc-toolbar {
        flex-direction: column;
        align-items: flex-start !important;
    }
    .doc-toolbar > div:last-child {
        width: 100%;
    }
    .doc-toolbar .btn {
        flex: 1;
        justify-content: center;
    }
    .doc-viewer iframe {
        height: 60vh !important;
        min-height: 400px !important;
    }
}

/* ============================================================
   ICON SIZE STANDARDS
   Estandariza los tamanos de los iconos Flaticon en el sitio
   ============================================================ */
.value-card .icon,
.value-card .icon i {
    font-size: 1.8rem !important;
    line-height: 1;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: 12px;
}

.value-card .icon {
    width: 60px;
    height: 60px;
    background: rgba(212, 20, 42, 0.08);
    border-radius: 50%;
    margin: 0 auto 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-stat .stat-icon {
    font-size: 1.8rem !important;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 20, 42, 0.1);
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: 8px;
}

.admin-action-card i {
    font-size: 1.15rem !important;
    width: 28px;
    text-align: center;
    color: var(--primary);
    flex-shrink: 0;
}

.admin-stat .stat-num {
    font-size: 1.8rem;
    line-height: 1.1;
    margin: 4px 0;
}

.recurso-card .icon,
.recurso-card .icon i {
    font-size: 1.8rem !important;
    width: 56px;
    height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 20, 42, 0.08);
    color: var(--primary);
    border-radius: 50%;
    margin-bottom: 12px;
}

.recurso-card .icon {
    margin: 0 auto 12px;
    display: flex;
}

.doc-icon {
    width: 44px !important;
    height: 44px !important;
    font-size: 1.1rem !important;
}

.doc-icon i {
    font-size: 1.1rem !important;
    line-height: 1;
}

.section-title h2 i {
    font-size: 1.3rem;
    color: var(--primary);
    margin-right: 4px;
    vertical-align: -0.1em;
}

.page-header h2 i,
.page-header h2 .fi {
    font-size: 1.4rem;
    color: var(--primary);
    margin-right: 6px;
    vertical-align: -0.1em;
}

.footer-logo-img {
    max-height: 64px;
    max-width: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #fff;
    padding: 4px;
    border-radius: 4px;
    margin-bottom: 10px;
    display: block;
}

/* ============================================
   FB POST POPUP MODAL
   ============================================ */
.fb-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    animation: fbPopupFade 0.25s ease;
}

.fb-popup-overlay.active {
    display: flex;
}

@keyframes fbPopupFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fb-popup {
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    animation: fbPopupSlide 0.3s ease;
}

@keyframes fbPopupSlide {
    from { transform: translateY(20px) scale(0.96); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

.fb-popup-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--dark) 60%, var(--primary-dark) 100%);
    color: var(--white);
    flex-shrink: 0;
}

.fb-popup-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.4);
    object-fit: contain;
    background: var(--white);
    padding: 3px;
    flex-shrink: 0;
}

.fb-popup-meta {
    flex: 1;
    min-width: 0;
}

.fb-popup-name {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    margin-bottom: 2px;
}

.fb-popup-time {
    font-size: 0.78rem;
    opacity: 0.85;
    display: flex;
    align-items: center;
    gap: 4px;
}

.fb-popup-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: var(--transition);
    flex-shrink: 0;
}

.fb-popup-close:hover {
    background: rgba(255,255,255,0.25);
    transform: rotate(90deg);
}

.fb-popup-body {
    overflow-y: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.fb-popup-image {
    width: 100%;
    max-height: 50vh;
    object-fit: cover;
    background: #f0f0f0;
    display: block;
    flex-shrink: 0;
}

.fb-popup-image-fallback {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    font-size: 3rem;
    flex-shrink: 0;
}

.fb-popup-content {
    padding: 20px 24px 24px;
}

.fb-popup-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 10px;
    line-height: 1.3;
}

.fb-popup-text {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.7;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.fb-popup-footer {
    padding: 14px 24px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0;
    background: var(--light);
}

.fb-popup-footer .btn {
    font-size: 0.82rem;
    padding: 8px 16px;
}

@media (max-width: 600px) {
    .fb-popup-overlay {
        padding: 0;
        align-items: flex-end;
    }
    .fb-popup {
        max-height: 95vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .fb-popup-content {
        padding: 16px 18px 20px;
    }
    .fb-popup-title {
        font-size: 1.05rem;
    }
    .fb-popup-text {
        font-size: 0.88rem;
    }
    .fb-popup-footer {
        padding: 12px 18px;
        flex-direction: column;
    }
    .fb-popup-footer .btn {
        width: 100%;
        justify-content: center;
    }
}
