:root {
    --gov-blue: #002366;
    --gov-blue-dark: #001a4d;
    --gov-gold: #c5a021;
    --gov-red: #d90429;
    --gov-light: #f4f7fa;
    --white: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --shadow: 0 10px 30px rgba(0, 35, 102, 0.1);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    background-color: var(--white);
    line-height: 1.6;
}

h1, h2, h3, .section-title {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Custom Scroll Progress */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: var(--gov-gold);
    z-index: 1001;
    width: 0%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding: 1rem 0;
    transition: var(--transition);
}

.navbar.scrolled {
    padding: 0.5rem 0;
    box-shadow: var(--shadow);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    height: 45px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--gov-blue);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--gov-gold);
}

.btn-primary-nav {
    background: var(--gov-blue);
    color: var(--white) !important;
    padding: 0.6rem 1.4rem;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 700;
}

.btn-primary-nav:hover {
    background: var(--gov-blue-dark);
}

/* Hero Section */
.hero {
    height: 100vh;
    background: url('asuncion_skyline.png') center/cover no-repeat;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 35, 102, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}

.badge-gov {
    background: rgba(197, 160, 33, 0.2);
    border: 1px solid var(--gov-gold);
    color: var(--gov-gold);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 2rem;
    display: inline-block;
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.accent-text {
    color: var(--gov-gold);
}

.hero p {
    font-size: 1.2rem;
    max-width: 650px;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-btns {
    display: flex;
    gap: 1.5rem;
}

.btn-main-gov {
    background: var(--gov-gold);
    color: var(--gov-blue-dark);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    transition: var(--transition);
}

.btn-main-gov:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(197, 160, 33, 0.3);
}

.btn-outline-gov {
    border: 2px solid var(--white);
    color: var(--white);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    transition: var(--transition);
}

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

/* Stats Section */
.stats-bar {
    background: var(--gov-blue);
    padding: 3rem 0;
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.stat-icon {
    font-size: 2.5rem;
    color: var(--gov-gold);
    opacity: 0.8;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1;
}

.stat-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    opacity: 0.7;
}

/* Section Common Styling */
section {
    padding: 100px 0;
}

.section-header {
    margin-bottom: 4rem;
}

.section-subtitle {
    color: var(--gov-gold);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 3px;
    display: block;
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gov-blue);
}

.divider {
    width: 60px;
    height: 4px;
    background: var(--gov-gold);
    margin: 1.5rem auto;
}

.alternate-bg {
    background: var(--gov-light);
}

/* About Section */
.grid-2 {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 5rem;
    align-items: center;
}

.lead-text {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--gov-blue);
    margin-bottom: 1.5rem;
}

.gov-card {
    margin: 2.5rem 0;
    background: var(--gov-light);
    border-radius: 12px;
    padding: 1.5rem;
    display: grid;
    gap: 1.5rem;
    border-left: 6px solid var(--gov-blue);
}

.gov-card-item {
    display: flex;
    gap: 1rem;
}

.item-icon {
    font-size: 1.2rem;
    color: var(--gov-blue);
}

.item-content label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--text-muted);
}

.item-content span {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--gov-blue-dark);
}

.document-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.document-badge:hover {
    border-color: var(--gov-gold);
    transform: translateX(10px);
}

.cert-thumb {
    height: 50px;
    border-radius: 4px;
}

.cert-info strong {
    display: block;
    font-size: 0.9rem;
}

.cert-info p {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Visual Portrait */
.portrait-container {
    position: relative;
    padding: 20px;
}

.portrait-bg-accent {
    position: absolute;
    top: 0;
    right: 0;
    width: 80%;
    height: 80%;
    background: var(--gov-blue);
    border-radius: 20px;
    z-index: -1;
}

.founder-portrait {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.2);
    display: block;
}

.portrait-caption {
    background: var(--gov-gold);
    color: var(--gov-blue-dark);
    padding: 1.5rem;
    position: absolute;
    bottom: -20px;
    left: -20px;
    width: 80%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.portrait-caption h3 { font-size: 1.2rem; }
.portrait-caption span { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; }

/* App Cards */
.apps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.app-gov-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    padding: 2.5rem;
    border: 1px solid #eee;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.app-gov-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
    border-color: var(--gov-blue);
}

.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.app-logo-small {
    height: 50px;
    object-fit: contain;
}

.app-icon-placeholder {
    font-size: 2.5rem;
    color: var(--gov-gold);
}

.app-status {
    font-size: 0.65rem;
    font-weight: 900;
    text-transform: uppercase;
    background: var(--gov-light);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    color: var(--gov-blue);
}

.app-status.highlight {
    background: var(--gov-gold);
    color: var(--gov-blue-dark);
}

.app-body h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--gov-blue);
}

.app-body p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
}

.feature-list li {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-list i {
    color: var(--gov-gold);
    margin-right: 8px;
}

.app-footer { margin-top: auto; }

.btn-text, .btn-text-white {
    text-decoration: none;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-text { color: var(--gov-blue); }
.btn-text-white { color: var(--white); }

.app-gov-card.featured {
    background: var(--gov-blue);
    color: var(--white);
    border: none;
}

.app-gov-card.featured .app-body h3 { color: var(--white); }
.app-gov-card.featured .app-body p { color: rgba(255, 255, 255, 0.7); }

/* Bulletins */
.news-section {
    background: #fff;
}

.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 4rem;
}

.admin-dot {
    width: 8px;
    height: 8px;
    background: #eee;
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.admin-dot:hover { background: var(--gov-gold); width: 20px; border-radius: 10px; }

.bulletin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.bulletin-card {
    background: var(--white);
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.bulletin-card:hover { box-shadow: var(--shadow); }

.bulletin-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.bulletin-body {
    padding: 2rem;
}

.bulletin-date {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--gov-gold);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: block;
}

.bulletin-body h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gov-blue);
}

.bulletin-body p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Convocatoria */
.cta-box {
    background: var(--gov-blue);
    border-radius: 20px;
    display: flex;
    overflow: hidden;
    color: var(--white);
}

.cta-image { flex: 1; }
.cta-image img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.8); }

.cta-content { flex: 1.2; padding: 5rem; }

.tag-gold {
    color: var(--gov-gold);
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.75rem;
    margin-bottom: 1rem;
    display: block;
}

.cta-content h2 { font-size: 2.5rem; line-height: 1.2; margin-bottom: 1.5rem; }

.cta-features {
    display: flex;
    gap: 2rem;
    margin: 2rem 0;
}

.cta-feat { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.cta-feat i { color: var(--gov-gold); }

.btn-white-gov {
    background: var(--white);
    color: var(--gov-blue-dark);
    padding: 1.2rem 2.5rem;
    text-decoration: none;
    font-weight: 800;
    border-radius: 4px;
    display: inline-block;
    transition: var(--transition);
}

.btn-white-gov:hover { transform: scale(1.05); }

/* Legal Framework */
.legal-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 3rem;
    background: var(--gov-light);
    border-radius: 15px;
    padding: 3rem;
}

.legal-sidebar {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.legal-tab-btn {
    text-align: left;
    padding: 1.2rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    color: var(--gov-blue);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 12px;
}

.legal-tab-btn.active {
    background: var(--gov-blue);
    color: var(--white);
    box-shadow: 0 10px 20px rgba(0, 35, 102, 0.2);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.5s ease;
}

.tab-pane.active { display: block; }
.tab-pane h3 { color: var(--gov-blue); margin-bottom: 1.5rem; font-size: 1.8rem; }
.tab-pane p { margin-bottom: 1rem; color: var(--text-main); font-size: 1.1rem; }

/* Footer */
.gov-footer {
    background: #000b1d;
    color: var(--white);
}

.footer-top {
    padding: 5rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 4rem;
}

.footer-logo { height: 50px; margin-bottom: 2rem; }

.footer-contact-info p {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer-contact-info i { color: var(--gov-gold); margin-right: 10px; width: 20px; }

.footer-links h4, .footer-partners h4 {
    color: var(--gov-gold);
    margin-bottom: 2rem;
    font-size: 1rem;
    text-transform: uppercase;
}

.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: var(--transition);
}

.footer-links a:hover { color: var(--white); padding-left: 5px; }

.partner-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.partner-logos img {
    height: 40px;
    filter: brightness(0) invert(1);
    opacity: 0.6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2rem 0;
}

.footer-copy {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-legal-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.copyright-text {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.footer-legal-info {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    opacity: 0.6;
}

.social-icons { display: flex; gap: 1rem; }
.social-icons a {
    color: var(--white);
    font-size: 1.2rem;
    opacity: 0.6;
    transition: var(--transition);
}

.social-icons a:hover { opacity: 1; transform: translateY(-3px); }

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 11, 29, 0.9);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: var(--white);
    margin: 10% auto;
    padding: 3rem;
    width: 90%;
    max-width: 500px;
    border-radius: 15px;
    position: relative;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.admin-card h2 { color: var(--gov-blue); margin-bottom: 2rem; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.8rem; }
.form-group input, .post-form input, .post-form textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.post-form textarea { height: 120px; margin-bottom: 10px; }
.post-form input { margin-bottom: 10px; }

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Mobile */
@media (max-width: 992px) {
    .grid-2, .legal-container, .cta-box { grid-template-columns: 1fr; flex-direction: column; }
    .hero { text-align: center; }
    .hero-btns { justify-content: center; flex-wrap: wrap; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand { display: flex; flex-direction: column; align-items: center; }
    .partner-logos { justify-content: center; }
    .nav-links { display: none; }
    .menu-toggle { display: block; color: var(--gov-blue); font-size: 1.5rem; cursor: pointer; }
    .cta-content { padding: 2rem; }
    .footer-copy { flex-direction: column; gap: 1rem; }
}