/* ============================================================
   Loggix · Proyectos públicos — estilos unificados
   ============================================================ */

/* ── Hero unificado (mismo estilo que contacto/blog/proceso) ── */
.page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 0 4rem;
    overflow: hidden;
    background: #000;
    margin-top: 0;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg .hero-overlay {
    position: absolute;
    inset: 0;
   background: linear-gradient(135deg, #000 0%, #0a0a0a 70%, rgba(21,101,192,0.2) 100%);
}

.hero-noise {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.04'/%3E%3C/svg%3E");
    background-size: 200px;
    opacity: 0.5;
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, var(--salmon, #ff5e4d) 50%, transparent 100%);
    opacity: 0.4;
}

.hero-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 94, 77, 0.4);
    border-radius: 100px;
    padding: 0.7rem 1.6rem;
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.3px;
    color: var(--salmon, #ff5e4d);
    margin-bottom: 0.5rem;
}

.hero-badge i {
    font-size: 0.9rem;
}

.hero-content h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin: 0;
}

.hero-content h1 .highlight {
    color: var(--salmon, #ff5e4d);
}

.hero-content p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.7);
    max-width: 550px;
    margin: 0;
    line-height: 1.5;
}

/* ── Buscador de proyectos (estilo unificado) ────────────────── */
.hero-search {
    display: flex;
    align-items: center;
    max-width: 520px;
    margin: 1.2rem auto 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(231, 109, 87, 0.25);
    border-radius: 50px;
    padding: 0.4rem 0.4rem 0.4rem 1.2rem;
    gap: 0.6rem;
    transition: border-color 0.3s;
}

.hero-search:focus-within {
    border-color: var(--salmon);
}

.hero-search i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.hero-search input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-light);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    padding: 0.6rem 0;
    min-width: 180px;
    outline: none;
}

.hero-search input::placeholder {
    color: rgba(248, 243, 232, 0.3);
}

.hero-search button {
    background: var(--salmon);
    border: none;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.hero-search button:hover {
    background: var(--salmon-dark);
    transform: translateY(-1px);
}

.clear-filter {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 40px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8rem;
    transition: var(--transition);
}

.clear-filter:hover {
    background: rgba(231, 109, 87, 0.15);
    color: var(--salmon);
}

/* ── Filtro por estado (colores azules) ────────────────────── */
.estado-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
    margin: 2rem auto 1.5rem;
    padding-top: 0;
}

.estado-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(248, 243, 232, 0.7);
    text-decoration: none;
    transition: all 0.25s ease;
    background: rgba(10, 10, 10, 0.6);
}

.estado-pill i {
    font-size: 0.75rem;
}

.estado-pill .count {
    background: rgba(59, 130, 246, 0.2);
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    margin-left: 0.3rem;
    color: var(--blue, #3b82f6);
}

.estado-pill:hover,
.estado-pill.active {
    color: #fff;
    border-color: var(--blue, #3b82f6);
    background: rgba(59, 130, 246, 0.15);
}

.estado-pill.active .count {
    background: var(--blue, #3b82f6);
    color: #fff;
}

/* ── Filtro categorías (mismo estilo que blog) ────────────────────── */
.cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding: 2rem 0 1rem;
    margin-bottom: 3rem;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.filter-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-right: 0.2rem;
}

.filter-label i {
    color: var(--blue, #3b82f6);
    margin-right: 0.3rem;
}

.cat-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1.2rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgba(248, 243, 232, 0.7);
    text-decoration: none;
    transition: all 0.3s ease;
    background: transparent;
}

.cat-pill:hover,
.cat-pill.active {
    color: var(--blue, #3b82f6);
    border-color: var(--blue, #3b82f6);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.cat-pill.active {
    background: rgba(59, 130, 246, 0.15);
    font-weight: 600;
}

/* ── Main content ─────────────────────────────────────────── */
.proyectos-main {
    padding: 1rem 0 5rem;
}

.empty-state {
    text-align: center;
    padding: 5rem 2rem;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 3.5rem;
    opacity: 0.25;
    display: block;
    margin-bottom: 1rem;
}

.empty-state .btn-outline {
    margin-top: 1.5rem;
}

/* ── Proyecto destacado (colores azules) ───────────────────── */
.featured-project {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 24px;
    overflow: hidden;
    text-decoration: none;
    margin-bottom: 3rem;
    background: #0e0e0e;
    transition: all 0.3s;
}

.featured-project:hover {
    border-color: rgba(59, 130, 246, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.featured-img {
    height: 380px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.featured-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: none;
    transform: none;
}

.featured-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.2);
}

.featured-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    z-index: 2;
    backdrop-filter: blur(4px);
}

.featured-badge i {
    font-size: 0.6rem;
}

.featured-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.project-cat {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 0.8rem;
    display: inline-block;
}

.featured-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.featured-cliente {
    font-size: 0.85rem;
    color: var(--blue, #3b82f6);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.featured-extracto {
    color: rgba(248, 243, 232, 0.7);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.featured-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.tech-tag {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.25);
    border-radius: 20px;
    padding: 0.2rem 0.7rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--blue, #3b82f6);
}

.featured-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.78rem;
    color: rgba(248, 243, 232, 0.55);
    margin-bottom: 1.2rem;
}

.featured-meta i {
    color: var(--blue, #3b82f6);
    margin-right: 0.3rem;
}

.demo-link {
    color: var(--blue, #3b82f6);
}

.btn-project {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: 40px;
    color: var(--blue, #3b82f6);
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s;
    align-self: flex-start;
}

.btn-project:hover {
    background: var(--blue, #3b82f6);
    color: #fff;
    border-color: var(--blue, #3b82f6);
    transform: translateX(5px);
}

/* ── Grid de proyectos (colores azules) ────────────────────── */
.proyectos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.project-card {
    background: #0e0e0e;
    border: 1px solid rgba(59, 130, 246, 0.12);
    border-radius: 20px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s;
}

.project-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.project-card-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-card-img i {
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.2);
}

/* Badge de estado en las tarjetas */
.estado-badge {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    padding: 0.25rem 0.7rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    z-index: 2;
}

.estado-lanzado {
    background: rgba(76, 175, 125, 0.9);
    color: #fff;
}

.estado-desarrollo {
    background: rgba(224, 168, 74, 0.9);
    color: #1a1a1a;
}

.estado-mantenimiento {
    background: rgba(99, 179, 237, 0.9);
    color: #fff;
}

/* Badge de proyecto destacado en tarjetas */
.destacado-badge-small {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    z-index: 3;
}

.project-card-body {
    padding: 1.3rem;
}

.card-cat {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    display: inline-block;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.card-cliente {
    font-size: 0.75rem;
    color: var(--blue, #3b82f6);
    margin-bottom: 0.6rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.card-extracto {
    font-size: 0.85rem;
    color: rgba(248, 243, 232, 0.65);
    line-height: 1.55;
    margin-bottom: 0.8rem;
}

.card-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.tech-tag-sm {
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    padding: 0.15rem 0.5rem;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--blue, #3b82f6);
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: rgba(248, 243, 232, 0.45);
}

.card-meta i {
    color: var(--blue, #3b82f6);
    margin-right: 0.3rem;
}

.demo-icon {
    color: var(--blue, #3b82f6);
}

/* ════════════════════════════════════════════════════════════
   PROYECTO INDIVIDUAL — detalle
════════════════════════════════════════════════════════════ */
.proyecto-hero {
    position: relative;
    min-height: 60vh;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3rem;
    padding-top: 100px;
    overflow: hidden;
}

.proyecto-hero-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: brightness(.45);
}

.hero-overlay-dark {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.9) 0%, transparent 70%);
}

.proyecto-hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.proyecto-hero-meta {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.proyecto-cat-badge {
    display: inline-block;
    padding: .25rem .8rem;
    border-radius: 20px;
    border: 1px solid;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.proyecto-status-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .8rem;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 700;
}

.proyecto-read-badge {
    font-size: .8rem;
    color: rgba(255,255,255,.7);
    display: flex;
    align-items: center;
    gap: .35rem;
}

.proyecto-hero-title {
    font-size: 2.8rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    margin-bottom: .5rem;
}

.proyecto-cliente-badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 40px;
    padding: .25rem .9rem;
    font-size: .8rem;
    margin-bottom: 1rem;
    color: rgba(255,255,255,.85);
}

.proyecto-hero-extracto {
    font-size: 1.1rem;
    color: rgba(255,255,255,.8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    max-width: 650px;
}

.proyecto-tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.tech-pill {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 30px;
    padding: .3rem 1rem;
    font-size: .75rem;
    font-weight: 500;
    color: rgba(255,255,255,.8);
}

.proyecto-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Badge de destacado en detalle del proyecto */
.proyecto-destacado-badge {
    background: linear-gradient(135deg, #ffd700, #ffb347);
    color: #000;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* ── Contenido del artículo (canvas) ─────────────────────── */
.proyecto-article {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding: 2rem 0 4rem;
    background: #0a0a0a;
}

.proyecto-canvas-wrapper {
    display: flex;
    justify-content: center;
    min-width: min-content;
    padding: 1rem;
    position: relative;
    overflow-x: auto;
    overflow-y: visible;
}

.proyecto-canvas {
    background: rgba(20, 20, 30, 0.5);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    position: relative;
    margin: 0 auto;
}

.proyecto-block {
    box-sizing: border-box;
    word-break: break-word;
    overflow: visible;
}

.pb-heading {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-light);
    margin: 2rem 0 .8rem;
    line-height: 1.2;
}

.pb-text {
    font-size: 1rem;
    color: rgba(255,255,255,.82);
    line-height: 1.85;
    margin-bottom: 1.3rem;
}

.pb-quote {
    border-left: 4px solid var(--salmon);
    padding: .9rem 1.3rem;
    margin: 1.5rem 0;
    background: rgba(21,101,192,.07);
    border-radius: 0 12px 12px 0;
    font-style: italic;
    font-size: 1.05rem;
    color: rgba(255,255,255,.85);
}

.pb-image {
    margin: 1.8rem 0;
}

.pb-image img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.pb-divider {
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(21,101,192,.3), transparent);
    margin: 2rem 0;
}

.pb-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.pb-col {
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 1.2rem;
    font-size: .95rem;
    color: rgba(255,255,255,.8);
    line-height: 1.65;
}

.pb-callout {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    background: rgba(21,101,192,.1);
    border: 1px solid rgba(21,101,192,.25);
    border-radius: 14px;
    padding: 1rem 1.3rem;
    margin: 1.5rem 0;
}

.pb-callout i {
    color: var(--salmon);
    font-size: 1rem;
    margin-top: .2rem;
    flex-shrink: 0;
}

.pb-callout p {
    color: rgba(255,255,255,.9);
    font-size: .95rem;
    line-height: 1.65;
    margin: 0;
}

.pb-code {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    padding: 1.3rem;
    margin: 1.5rem 0;
    overflow-x: auto;
}

.pb-code code {
    font-family: 'Fira Code', 'Courier New', monospace;
    font-size: .85rem;
    color: #a8ff78;
    display: block;
    white-space: pre;
}

/* ── Proyectos relacionados ──────────────────────────────── */
.related-proyectos {
    padding: 2rem 0 5rem;
}

.related-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.2rem;
}

.related-card {
    background: #0e0e0e;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    transition: all .3s;
}

.related-card:hover {
    border-color: rgba(21,101,192,.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0,0,0,.4);
}

.related-cover {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.related-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-cover i {
    font-size: 2rem;
    color: rgba(255,255,255,.2);
}

.related-body {
    padding: 1rem;
}

.related-body h3 {
    font-size: .9rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.3;
    margin-bottom: .4rem;
}

.related-body span {
    font-size: .75rem;
    color: rgba(255,255,255,.5);
    display: flex;
    align-items: center;
    gap: .3rem;
}

.related-body span i {
    color: var(--salmon);
}

/* ============================================================
   MEDIA QUERIES (RESPONSIVE)
   ============================================================ */

/* Tablets (≤ 1024px) */
@media (max-width: 1024px) {
    .featured-project {
        grid-template-columns: 1fr;
    }
    
    .featured-img {
        min-height: 280px;
    }
}

/* Móviles grandes y tablets pequeñas (≤ 768px) */
@media (max-width: 768px) {
    .page-hero {
        min-height: 40vh;
        padding: 100px 0 2.5rem;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.7rem;
    }
    
    .hero-badge i {
        font-size: 0.7rem;
    }
    
    .hero-content h1 {
        font-size: clamp(1.6rem, 6vw, 2.2rem);
    }
    
    .hero-content p {
        font-size: 0.85rem;
        padding: 0 0.5rem;
    }
    
    /* Buscador responsive */
    .hero-search {
        flex-direction: row;
        flex-wrap: wrap;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(231, 109, 87, 0.3);
        border-radius: 50px;
        padding: 0.3rem;
        margin-top: 0.8rem;
    }
    
    .hero-search i {
        display: inline-flex;
        margin-left: 0.5rem;
    }
    
    .hero-search input {
        flex: 1;
        min-width: 140px;
        background: transparent;
        border: none;
        padding: 0.6rem 0;
        font-size: 0.85rem;
    }
    
    .hero-search input::placeholder {
        font-size: 0.8rem;
    }
    
    .hero-search button {
        padding: 0.4rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
    
    /* Filtros con scroll horizontal */
    .estado-filters {
        gap: 0.5rem;
        margin: 1rem auto 0.8rem;
        padding: 0.5rem 0.8rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }
    
    .estado-pill {
        flex-shrink: 0;
        padding: 0.35rem 0.9rem;
        font-size: 0.7rem;
    }
    
    .estado-pill i {
        font-size: 0.65rem;
    }
    
    .cat-filters {
        gap: 0.5rem;
        padding: 1.2rem 0.8rem;
        margin-bottom: 1.5rem;
        overflow-x: auto;
        flex-wrap: nowrap;
        justify-content: flex-start;
        scrollbar-width: thin;
    }
    
    .filter-label {
        flex-shrink: 0;
        width: auto;
        font-size: 0.7rem;
        margin-bottom: 0;
        margin-right: 0.2rem;
    }
    
    .cat-pill {
        flex-shrink: 0;
        padding: 0.35rem 0.9rem;
        font-size: 0.7rem;
        white-space: nowrap;
    }
    
    /* Featured project */
    .featured-project {
        margin: 0 0.8rem 2rem 0.8rem;
        border-radius: 20px;
    }
    
    .featured-img {
        min-height: 200px;
        max-height: 220px;
    }
    
    .featured-badge {
        top: 0.8rem;
        left: 0.8rem;
        padding: 0.25rem 0.7rem;
        font-size: 0.65rem;
    }
    
    .featured-body {
        padding: 1.2rem;
    }
    
    .featured-title {
        font-size: 1.3rem;
    }
    
    .featured-extracto {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .featured-tech {
        gap: 0.4rem;
    }
    
    .tech-tag {
        font-size: 0.65rem;
        padding: 0.15rem 0.6rem;
    }
    
    .featured-meta {
        gap: 0.8rem;
        font-size: 0.7rem;
    }
    
    .btn-project {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    /* Grid de proyectos */
    .proyectos-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 0.8rem;
    }
    
    .project-card {
        border-radius: 18px;
    }
    
    .project-card-img {
        height: 170px;
    }
    
    .estado-badge {
        top: 0.6rem;
        right: 0.6rem;
        padding: 0.2rem 0.6rem;
        font-size: 0.65rem;
    }
    
    .destacado-badge-small {
        width: 24px;
        height: 24px;
        font-size: 0.65rem;
        top: 0.6rem;
        right: 0.6rem;
    }
    
    .project-card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    .card-extracto {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    
    .card-tech {
        gap: 0.3rem;
    }
    
    .tech-tag-sm {
        font-size: 0.6rem;
        padding: 0.1rem 0.45rem;
    }
    
    .card-meta {
        font-size: 0.65rem;
    }
    
    .empty-state {
        padding: 3rem 1rem;
    }
    
    .proyectos-main {
        padding: 0 0 3rem;
    }

    /* Proyecto individual - modo lineal */
    .proyecto-article {
        overflow-x: hidden;
        padding: 1rem 0 2rem;
    }
    
    .proyecto-canvas-wrapper {
        overflow-x: hidden;
        padding: 0 1rem;
    }
    
    .proyecto-canvas[data-layout="linear"] {
        position: static !important;
        width: 100% !important;
        min-height: auto !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 0 !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block {
        position: relative !important;
        left: auto !important;
        top: auto !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        transform: none !important;
        margin: 0 !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-image {
        height: 220px !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-image img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-code {
        height: auto !important;
        max-height: 300px;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-code pre {
        height: auto !important;
        max-height: 280px;
        overflow: auto;
        white-space: pre-wrap;
        word-wrap: break-word;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-columns .pb-columns {
        grid-template-columns: 1fr !important;
        gap: 1rem;
        height: auto !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-columns .pb-col {
        height: auto !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-callout > div {
        height: auto !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-heading,
    .proyecto-canvas[data-layout="linear"] .pb-subheading,
    .proyecto-canvas[data-layout="linear"] .pb-text,
    .proyecto-canvas[data-layout="linear"] .pb-quote {
        overflow-wrap: break-word;
        word-break: break-word;
        white-space: normal !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-pricing {
        padding: 1rem !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-pricing ul li {
        font-size: 0.75rem !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-testimonial {
        padding: 1rem !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-testimonial div[style*="font-size:32px"] {
        font-size: 24px !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-particles,
    .proyecto-canvas[data-layout="linear"] .pb-gradmesh {
        min-height: 150px;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-countdown {
        gap: 0.8rem !important;
        flex-wrap: wrap;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-countdown > div {
        min-width: 60px;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-countdown > div div:first-child {
        font-size: 1.2rem !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-button > div,
    .proyecto-canvas[data-layout="linear"] .proyecto-block-button > div {
        width: 100%;
    }
    
    .proyecto-canvas[data-layout="linear"] .pb-button a,
    .proyecto-canvas[data-layout="linear"] .proyecto-block-button a {
        display: block;
        text-align: center;
        width: 100%;
        box-sizing: border-box;
    }
}

/* Móviles pequeños (≤ 480px) */
@media (max-width: 480px) {
    .page-hero {
        padding: 90px 0 2.5rem;
    }
    
    .hero-badge {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
    
    .featured-img {
        min-height: 220px;
    }
    
    .featured-body {
        padding: 1.2rem;
    }
    
    .featured-title {
        font-size: 1.2rem;
    }
    
    .featured-extracto {
        font-size: 0.85rem;
    }
    
    .btn-project {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    
    .project-card-body {
        padding: 1rem;
    }
    
    .card-title {
        font-size: 1rem;
    }
    
    /* Proyecto individual */
    .proyecto-hero {
        min-height: 45vh;
        padding-top: 80px;
        padding-bottom: 1.5rem;
    }
    
    .proyecto-hero-title {
        font-size: 1.6rem !important;
    }
    
    .proyecto-hero-extracto {
        font-size: 0.85rem !important;
    }
    
    .proyecto-hero-meta {
        gap: 0.5rem;
    }
    
    .proyecto-hero-meta > * {
        font-size: 0.65rem !important;
        padding: 0.2rem 0.6rem !important;
    }
    
    .proyecto-tech-list {
        gap: 0.4rem;
    }
    
    .tech-pill {
        padding: 0.2rem 0.7rem !important;
        font-size: 0.65rem !important;
    }
    
    .proyecto-links {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .proyecto-links .btn {
        width: 100%;
        justify-content: center;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-image {
        height: 180px !important;
    }
    
    .pb-heading {
        font-size: 1.3rem !important;
    }
    
    .pb-subheading {
        font-size: 1.1rem !important;
    }
    
    .pb-text {
        font-size: 0.85rem !important;
    }
    
    .pb-quote {
        font-size: 0.85rem !important;
        padding: 0.6rem 1rem !important;
    }
    
    .related-title {
        font-size: 1.2rem;
    }
    
    .related-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.8rem;
    }
    
    .related-cover {
        height: 100px !important;
    }
    
    .related-body h3 {
        font-size: 0.75rem !important;
    }
    
    .related-body span {
        font-size: 0.6rem !important;
    }
}

/* Móviles muy pequeños (≤ 360px) */
@media (max-width: 360px) {
    .proyecto-hero-title {
        font-size: 1.3rem !important;
    }
    
    .proyecto-canvas[data-layout="linear"] .proyecto-block-image {
        height: 150px !important;
    }
    
    .pb-heading {
        font-size: 1.1rem !important;
    }
    
    .related-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ============================================================
   ANIMACIONES
   ============================================================ */
@keyframes el-pulse {
    0% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(1); opacity: 1; }
}

@keyframes el-mesh-shift {
    0% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
    100% { background-position: 0% 0%; }
}