.egp-galeria-container {
    font-size: 16px;
}

/* Tabs en forma de pill */
.egp-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 2rem;
    padding-bottom: 0.8rem;
}

.egp-tab-btn {
    background: #f8f9fa;
    border: none;
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.25s ease;
    opacity: 0.85;
    color: #555;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.egp-tab-btn:hover,
.egp-tab-btn.active {
    background: #a6d85c;
    color: #2d5a27;
    opacity: 1;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(166, 216, 92, 0.4);
}

.egp-tab-content > .egp-tab-pane {
    display: none;
    animation: fadeIn 0.4s ease forwards;
}

.egp-tab-content > .egp-tab-pane.active {
    display: block;
}

.egp-proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.8rem;
}

.egp-proyecto-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.egp-proyecto-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.18);
}

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

.egp-proyecto-card h3 {
    font-size: 1.4rem;
    margin: 1rem 1rem 0.5rem;
    color: #222;
    font-weight: 700;
    line-height: 1.3;
}

.egp-proyecto-card p {
    margin: 0 1rem 0.3rem;
    color: #555;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* Contador de imágenes */
.egp-imagenes-contador {
    font-size: 1.0rem;
    color: #777;
    margin: 0 1rem 0.8rem;
    font-style: italic;
}

/* KPIs con Font Awesome */
.egp-kpis {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem 1.2rem;
}

.egp-kpi-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    background: #f0fde8;
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 1.1rem;
    color: #2d5a27;
    font-weight: 600;
    border: 1px solid #c4e69e;
}

.egp-kpi-item i {
    font-size: 16px;
    color: #a6d85c;
    width: 16px;
    text-align: center;
}

.egp-kpi-item span {
	padding-left: 0.5rem;
}

/* Modal Lightbox */
.egp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.92);
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.egp-modal.active {
    display: flex;
}

.egp-modal-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.egp-modal-slider {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.egp-modal-slider img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.egp-modal-close,
.egp-modal-nav {
    position: absolute;
    background: rgba(0,0,0,0.6);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: background 0.2s;
}

.egp-modal-close:hover,
.egp-modal-nav:hover {
    background: rgba(0,0,0,0.9);
}

.egp-modal-close {
    top: 18px;
    right: 18px;
}

.egp-prev {
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
}

.egp-next {
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
}

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