/* ===== HERO BLOG ===== */
.aqg-blog-hero {
    position: relative;
    background: linear-gradient(135deg, #0a2e22 0%, #123d2e 55%, #0d3327 100%);
    padding: 110px 24px 80px;
    text-align: center;
    overflow: hidden;
}
.aqg-blog-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 12% 25%, rgba(127, 217, 184, 0.12) 0%, transparent 45%),
        radial-gradient(circle at 88% 75%, rgba(127, 217, 184, 0.08) 0%, transparent 45%);
    pointer-events: none;
}
.aqg-blog-hero-inner {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
}
.aqg-blog-hero-label {
    color: #7fd9b8;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 20px;
    padding-bottom: 6px;
    border-bottom: 2px solid rgba(127, 217, 184, 0.3);
}
.aqg-blog-hero h1 {
    color: #ffffff;
    font-size: 44px;
    font-weight: 700;
    margin: 0 0 16px;
    line-height: 1.2;
}
.aqg-blog-hero p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

/* ===== GRID DE ARTÍCULOS ===== */
.aqg-blog-section {
    background: #fbfdfc;
    padding: 60px 24px 80px;
}
.aqg-blog-empty {
    background: #fbfdfc;
    padding: 80px 24px;
    text-align: center;
    color: #8a9a92;
}
.aqg-blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1180px;
    margin: 0 auto;
}

.aqg-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #eef3f0;
    box-shadow: 0 2px 14px rgba(13, 43, 33, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.aqg-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 32px rgba(13, 43, 33, 0.10);
}

/* El primer artículo se ve más grande, ocupando 2 columnas si hay espacio */
.aqg-card-destacado {
    grid-column: span 2;
}
.aqg-card-destacado .aqg-card-img-wrap {
    aspect-ratio: 21/9;
}
@media (max-width: 720px) {
    .aqg-card-destacado { grid-column: span 1; }
    .aqg-card-destacado .aqg-card-img-wrap { aspect-ratio: 16/9; }
}

.aqg-card-img-wrap {
    aspect-ratio: 16/9;
    background: linear-gradient(160deg, #0d3327 0%, #123d2e 100%);
    overflow: hidden;
}
.aqg-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}
.aqg-card:hover .aqg-card-img-wrap img {
    transform: scale(1.04);
}
.aqg-card-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #0d3327 0%, #123d2e 100%);
}

.aqg-card-body {
    padding: 22px 24px 26px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.aqg-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.aqg-card-fecha, .aqg-card-tiempo {
    color: #8a9a92;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.aqg-card-dot {
    color: #cdd8d2;
    font-size: 12px;
}
.aqg-card h3 {
    color: #0d2b21;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 10px;
}
.aqg-card-destacado h3 {
    font-size: 24px;
}
.aqg-card p {
    color: #5c6860;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}
.aqg-card-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #16a874;
    font-size: 13.5px;
    font-weight: 700;
}
.aqg-card-link svg {
    transition: transform 0.25s ease;
}
.aqg-card:hover .aqg-card-link svg {
    transform: translateX(4px);
}

/* ===== MODAL DE LECTURA ===== */
.aqg-overlay {
    position: fixed;
    inset: 0;
    background: rgba(5, 15, 12, 0.7);
    backdrop-filter: blur(6px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 24px;
}
.aqg-overlay.aqg-active {
    display: flex;
    opacity: 1;
}
.aqg-modal {
    background: #ffffff;
    color: #2b352f;
    max-width: 760px;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    border-radius: 20px;
    padding: 0;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.3s ease;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.aqg-overlay.aqg-active .aqg-modal {
    transform: scale(1) translateY(0);
}
.aqg-modal-close {
    position: sticky;
    top: 16px;
    left: calc(100% - 56px);
    width: 40px;
    height: 40px;
    background: rgba(13, 43, 33, 0.85);
    backdrop-filter: blur(4px);
    border: none;
    color: #ffffff;
    font-size: 20px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.2s ease;
}
.aqg-modal-close:hover {
    background: #0d2b21;
}
.aqg-modal-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
    margin-top: -56px;
}
.aqg-modal-body-inner {
    padding: 32px 40px 44px;
}
.aqg-modal-body-inner h2 {
    color: #0d2b21;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 12px;
}
.aqg-modal-meta {
    color: #8a9a92;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin: 0 0 26px;
    padding-bottom: 22px;
    border-bottom: 1px solid #eef3f0;
}
.aqg-modal-loading {
    text-align: center;
    padding: 100px 40px;
    color: #8a9a92;
    font-size: 14px;
}

.aqg-modal-content {
    color: #3a4842;
    line-height: 1.8;
    font-size: 15.5px;
}
.aqg-modal-content p { margin: 0 0 18px; }
.aqg-modal-content h2, .aqg-modal-content h3 {
    color: #0d2b21;
    margin: 28px 0 14px;
}
.aqg-modal-content ul, .aqg-modal-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}
.aqg-modal-content li { margin-bottom: 8px; }
.aqg-modal-content a { color: #16a874; }
.aqg-modal-content img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

@media (max-width: 600px) {
    .aqg-modal-body-inner { padding: 24px 22px 32px; }
    .aqg-modal-body-inner h2 { font-size: 22px; }
    .aqg-blog-hero h1 { font-size: 30px; }
    .aqg-blog-hero { padding: 80px 20px 60px; }
}