/* ==========================================
   PROYECTOS.HTML - ESTILOS INDEPENDIENTES
   ========================================== */

:root {
    --primary: #E30613;
    --primary-dark: #B20010;
    --white: #FFFFFF;
    --dark: #1a1a1a;
    --bg-dark: #0f0f0f;
    --text-light: rgba(255, 255, 255, 0.7);
    --border-light: rgba(255, 255, 255, 0.1);
}

/* ==========================================
   HERO SECTION - PROYECTOS
   ========================================== */

.hero-proyectos {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-top: 60px;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

.hero-proyectos-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 20px;
}

.hero-badge {
    display: inline-block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.hero-proyectos h1 {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.hero-proyectos h1 .highlight {
    color: var(--primary);
}

.hero-proyectos-content p {
    font-size: 18px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ==========================================
   FILTROS POR INDUSTRIA
   ========================================== */

.proyectos-filtros {
    background: var(--bg-dark);
    padding: 60px 20px;
    border-bottom: 1px solid var(--border-light);
}

.proyectos-filtros-container {
    max-width: 1400px;
    margin: 0 auto;
}

.proyectos-filtros h2 {
    color: var(--white);
    font-size: 32px;
    font-weight: 800;
    text-align: center;
    margin: 0 0 40px 0;
}

.filtros-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.filtro-btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.filtro-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

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

/* ==========================================
   GRID DE PROYECTOS
   ========================================== */

.proyectos-grid-section {
    background: var(--bg-dark);
    padding: 60px 20px;
}

.proyectos-grid-container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.proyecto-card-large {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    cursor: pointer;
}

.proyecto-card-large:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-8px);
}

.proyecto-image {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.05));
}

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

.proyecto-card-large:hover .proyecto-image img {
    transform: scale(1.05);
}

.proyecto-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(227, 6, 19, 0.9);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 2;
}

.proyecto-content-large {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.proyecto-category {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.proyecto-title-large {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    margin: 0 0 12px 0;
    line-height: 1.4;
}

.proyecto-description-large {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 16px 0;
    flex: 1;
}

.proyecto-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 16px 0;
    padding: 16px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}

.proyecto-stat-item {
    text-align: center;
}

.proyecto-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
    display: block;
}

.proyecto-stat-label {
    font-size: 12px;
    color: var(--text-light);
    display: block;
    margin-top: 4px;
}

.proyecto-cta {
    margin-top: auto;
}

.proyecto-link {
    display: inline-block;
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.3s ease;
}

.proyecto-link:hover {
    transform: translateX(4px);
}

/* ==========================================
   CASOS DE ÉXITO - STATS
   ========================================== */

.casos-exito-section {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.05));
    padding: 80px 20px;
    border-top: 1px solid rgba(227, 6, 19, 0.2);
}

.casos-exito-container {
    max-width: 1400px;
    margin: 0 auto;
}

.casos-exito-header {
    text-align: center;
    margin-bottom: 60px;
}

.casos-exito-header h2 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 16px 0;
}

.casos-exito-header p {
    font-size: 16px;
    color: var(--text-light);
    margin: 0;
}

.casos-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
}

.caso-stat {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
}

.stat-value {
    font-size: 48px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-label {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.stat-description {
    font-size: 14px;
    color: var(--text-light);
}

/* ==========================================
   TESTIMONIOS
   ========================================== */

.testimonios-section {
    background: var(--bg-dark);
    padding: 80px 20px;
}

.testimonios-container {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonios-section h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    text-align: center;
    margin: 0 0 60px 0;
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonio-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 32px;
    transition: all 0.3s ease;
}

.testimonio-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.testimonio-text {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonio-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #E30613, #FF6B6B);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-weight: 700;
    font-size: 14px;
    flex-shrink: 0;
}

.author-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.author-business {
    font-size: 12px;
    color: var(--text-light);
}

/* ==========================================
   SECCIÓN DE CONTACTO - PROYECTOS
   ========================================== */

.contacto-proyectos-section {
    background: linear-gradient(135deg, rgba(227, 6, 19, 0.1), rgba(227, 6, 19, 0.05));
    padding: 80px 20px;
    border-top: 1px solid rgba(227, 6, 19, 0.2);
}

.contacto-proyectos-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.contacto-proyectos-content h2 {
    font-size: 42px;
    font-weight: 800;
    color: var(--white);
    margin: 0 0 16px 0;
    line-height: 1.2;
}

.contacto-proyectos-content p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0 0 32px 0;
}

.contacto-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

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

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

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

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

.contacto-info {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border: 1px solid var(--border-light);
}

.info-item p {
    margin: 0;
    color: var(--white);
    font-weight: 600;
}

.info-item p:last-child {
    color: var(--text-light);
    font-weight: 400;
    margin-top: 4px;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 1024px) {
    .hero-proyectos h1 {
        font-size: 42px;
    }

    .proyectos-filtros h2 {
        font-size: 28px;
    }

    .proyectos-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

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

    .contacto-proyectos-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .hero-proyectos {
        height: 400px;
        margin-top: 50px;
    }

    .hero-proyectos h1 {
        font-size: 32px;
    }

    .hero-proyectos-content p {
        font-size: 16px;
    }

    .proyectos-filtros {
        padding: 40px 16px;
    }

    .filtros-buttons {
        gap: 8px;
    }

    .filtro-btn {
        padding: 8px 16px;
        font-size: 12px;
    }

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

    .casos-exito-section {
        padding: 60px 16px;
    }

    .casos-exito-header h2 {
        font-size: 32px;
    }

    .casos-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .stat-value {
        font-size: 32px;
    }

    .stat-label {
        font-size: 14px;
    }

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

    .contacto-proyectos-section {
        padding: 60px 16px;
    }

    .contacto-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-proyectos {
        height: 300px;
        margin-top: 40px;
    }

    .hero-proyectos h1 {
        font-size: 24px;
    }

    .hero-proyectos-content p {
        font-size: 14px;
    }

    .proyecto-image {
        height: 180px;
    }

    .proyecto-title-large {
        font-size: 16px;
    }

    .proyecto-description-large {
        font-size: 13px;
    }

    .casos-stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-value {
        font-size: 28px;
    }

    .contacto-proyectos-content h2 {
        font-size: 28px;
    }
}
