/* =============================================
   PÁGINA PORTAFOLIO - ESTILOS
   ============================================= */

/* Hero Interno */
.page-hero {
    padding: 120px 40px 80px 40px;
    background: linear-gradient(135deg, var(--negro) 0%, #0d0d0d 100%);
    text-align: center;
}

.page-hero-container {
    max-width: 800px;
    margin: 0 auto;
}

.page-hero-title {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--blanco);
    font-weight: 700;
}

.page-hero-subtitle {
    font-size: 20px;
    color: var(--gris);
    line-height: 1.6;
}

/* Filter Section */
.filter-section {
    padding: 40px;
    background: var(--negro);
}

.filter-container {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    padding: 12px 24px;
    background: var(--gris-oscuro);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    color: var(--gris);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--naranja);
    color: var(--blanco);
    border-color: var(--naranja);
}

/* Projects Section */
.projects-section {
    padding: 60px 40px;
    background: var(--negro);
}

.projects-section.in-progress {
    background: linear-gradient(180deg, #0d0d0d 0%, var(--negro) 100%);
}

.projects-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.project-card {
    background: var(--gris-oscuro);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.project-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    padding: 20px;
    text-align: center;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-badge {
    background: var(--naranja);
    color: var(--blanco);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.project-badge.in-progress {
    background: var(--azul);
}

.project-overlay .project-title {
    font-size: 22px;
    color: var(--blanco);
    margin-bottom: 5px;
    font-weight: 600;
}

.project-overlay .project-category {
    color: var(--gris);
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-sm {
    padding: 10px 20px;
    font-size: 14px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: var(--naranja);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.progress-text {
    color: var(--gris);
    font-size: 13px;
}

.project-info {
    padding: 20px;
}

.project-name {
    font-size: 18px;
    color: var(--blanco);
    margin-bottom: 5px;
    font-weight: 600;
}

.project-location {
    color: var(--gris);
    font-size: 14px;
}

.project-location i {
    color: var(--naranja);
    margin-right: 5px;
}

.project-status {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--gris);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gris);
}

.status-indicator.active {
    background: #25D366;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Before After Section */
.before-after-section {
    padding: 80px 40px;
    background: var(--gris-oscuro);
}

.before-after-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

.before-after-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.ba-image {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
}

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

.ba-label {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: var(--naranja);
    color: var(--blanco);
    padding: 5px 12px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

.ba-title {
    grid-column: 1 / -1;
    font-size: 18px;
    color: var(--blanco);
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* Gallery Section */
.gallery-section {
    padding: 80px 40px;
    background: var(--negro);
}

.gallery-container {
    max-width: var(--max-width);
    margin: 0 auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.gallery-item {
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* CTA Section */
.cta-section {
    padding: 80px 40px;
    background: linear-gradient(135deg, var(--naranja), #e55a00);
    text-align: center;
}

.cta-container {
    max-width: 700px;
    margin: 0 auto;
}

.cta-title {
    font-size: 36px;
    color: var(--blanco);
    margin-bottom: 20px;
    font-weight: 700;
}

.cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
}

/* Responsive */
@media (max-width: 900px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-section {
        padding: 40px 20px;
    }
    
    .projects-section {
        padding: 60px 20px;
    }
    
    .page-hero-title {
        font-size: 36px;
    }
}

/* =============================================
   CLIENTES SECTION
   ============================================= */
.clientes-section {
    padding: 100px 0;
    background: #1a1a1a;
}
.clientes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}
.cliente-card {
    background: #252525;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 99, 3, 0.2);
    transition: all 0.3s ease;
}
.cliente-card:hover {
    transform: translateY(-10px);
    border-color: #ff6303;
    box-shadow: 0 20px 40px rgba(255, 99, 3, 0.2);
}
.cliente-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}
.cliente-card h3 {
    color: #ffffff;
    font-size: 1.3rem;
    margin-bottom: 10px;
}
.cliente-card p {
    color: #b0b0b0;
    font-size: 0.95rem;
    margin-bottom: 15px;
}
.cliente-ubicacion {
    display: inline-block;
    padding: 5px 15px;
    background: rgba(255, 99, 3, 0.1);
    border-radius: 20px;
    color: #ff6303;
    font-size: 0.85rem;
    font-weight: 500;
}

/* =============================================
   TIPOS DE PROYECTOS SECTION
   ============================================= */
.proyectos-tipo-section {
    padding: 100px 0;
    background: #0a0a0a;
}
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 50px;
}
.proyecto-card {
    background: #1a1a1a;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}
.proyecto-card:hover {
    transform: translateY(-10px);
}
.proyecto-image {
    position: relative;
    overflow: hidden;
    height: 250px;
}
.proyecto-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.proyecto-card:hover .proyecto-image img {
    transform: scale(1.1);
}
.proyecto-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}
.badge-referencial {
    background: rgba(255, 99, 3, 0.9);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.proyecto-content {
    padding: 30px;
}
.proyecto-content h3 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 15px;
}
.proyecto-content p {
    color: #b0b0b0;
    line-height: 1.7;
    margin-bottom: 20px;
}
.proyecto-features {
    list-style: none;
    padding: 0;
    margin: 0;
}
.proyecto-features li {
    color: #888;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.proyecto-features li:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .proyectos-grid {
        grid-template-columns: 1fr;
    }
    .clientes-grid {
        grid-template-columns: 1fr;
    }
}
