:root {
    --orange: #ff5100;
    --orange-hover: #e64900;
    --black: #111111;
    --text: #1a1a1a;
    --text-muted: #6b7280;
    --border: #e5e7eb;
    --bg: #f9fafb;
    --white: #ffffff;
}

body { background: var(--white); color: var(--text); }

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 5px 0;
    margin-top: 107px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb i { font-size: 10px; color: #d1d5db; }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ===== PAGE HERO ===== */
.page-hero {
    padding: 60px 0 52px;
    border-bottom: 1px solid var(--border);
    background: var(--white);
}

.page-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    flex-wrap: wrap;
}

.page-hero-text .section-tag {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--orange);
    display: block;
    margin-bottom: 12px;
}

.page-hero-text h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: var(--black);
    letter-spacing: -0.7px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.page-hero-text p {
    font-size: 16px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 500px;
}

.page-hero-stats {
    display: flex;
    gap: 40px;
    flex-shrink: 0;
}

.stat-item { text-align: center; }

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: var(--black);
    line-height: 1;
    margin-bottom: 6px;
}

.stat-number span { color: var(--orange); }

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 500;
}

/* ===== FILTROS ===== */
.filters-bar {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 0;
    position: sticky;
    top: 107px;
    z-index: 100;
}

.filters-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.filters-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-right: 4px;
    white-space: nowrap;
}

.filter-btn {
    padding: 7px 18px;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--white);
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.filter-btn:hover { border-color: var(--orange); color: var(--orange); }

.filter-btn.active {
    background: var(--black);
    border-color: var(--black);
    color: var(--white);
}

/* ===== GRID ===== */
.proyectos-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 52px 30px 80px;
}

.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 28px;
}

/* ===== CARD ===== */
.proyecto-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s;
    text-decoration: none;
    display: block;
}

.proyecto-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    border-color: #d1d5db;
    transform: translateY(-4px);
}

.proyecto-img {
    position: relative;
    height: 210px;
    background: var(--bg);
    overflow: hidden;
}

.proyecto-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.proyecto-card:hover .proyecto-img img { transform: scale(1.05); }

.no-img {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: #d1d5db;
}

.badge-cat {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--orange);
    color: var(--white);
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 11px;
    border-radius: 20px;
}

.badge-destacado {
    position: absolute;
    top: 14px;
    right: 14px;
    background: #f59e0b;
    color: var(--white);
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.proyecto-body { padding: 22px; }

.proyecto-body h3 {
    font-size: 16.5px;
    font-weight: 700;
    color: var(--black);
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color 0.2s;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proyecto-card:hover .proyecto-body h3 { color: var(--orange); }

.proyecto-cliente {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.proyecto-desc {
    font-size: 13.5px;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.proyecto-techs {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}

.tech-tag {
    padding: 3px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 11.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.proyecto-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.estado-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.estado-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}

.ver-link {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--orange);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: gap 0.2s;
}

.proyecto-card:hover .ver-link { gap: 8px; }

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state i { font-size: 3.5rem; color: #d1d5db; display: block; margin-bottom: 20px; }
.empty-state h3 { font-size: 20px; color: var(--text); margin-bottom: 10px; }
.empty-state a { color: var(--orange); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .breadcrumb-bar { margin-top: 95px; }
    .filters-bar { top: 95px; }
    .page-hero { padding: 40px 0 36px; }
    .page-hero-inner, .filters-inner, .proyectos-wrapper { padding-left: 20px; padding-right: 20px; }
    .page-hero-stats { gap: 24px; }
    .stat-number { font-size: 28px; }
    .proyectos-grid { grid-template-columns: 1fr; gap: 20px; }
    .proyectos-wrapper { padding-top: 32px; }
}
