
body{font-family:Arial,sans-serif;margin:0;background:#f8fafc;color:#1e293b}
.hero{

    background:
    linear-gradient(
        135deg,
        #0f172a,
        #1e293b
    );

    color:white;

    padding:60px;

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:50px;

}
.hero-content{max-width:900px}
#portafolio-subtitle{

    white-space:pre-line;

    max-width:900px;

    line-height:1.9;

    opacity:.92;

}
.hero-inner{

    display:flex;

    justify-content:space-between;

    align-items:flex-start;

    gap:50px;

}

.hero-actions{

    min-width:220px;

    display:flex;

    flex-direction:column;

    gap:12px;

    flex-shrink:0;

}
.portafolio-stats{

    display:flex;

    gap:10px;

    flex-wrap:wrap;

    margin-top:20px;

}

.portafolio-stats div{

    background:#1e293b;

    padding:10px 14px;

    border-radius:8px;

}
.hero-actions{display:flex;flex-direction:column;gap:10px}
.hero-actions a,.hero-actions button{background:#2563eb;color:#fff;padding:12px 18px;border:none;border-radius:8px;text-decoration:none;text-align:center;cursor:pointer}
.portafolio-grid{

    max-width:1400px;

    margin:auto;

    padding:40px;

    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(380px,1fr));

    gap:30px;

}
.card{

    background:#ffffff;

    border-radius:18px;

    overflow:hidden;

    box-shadow:
    0 10px 25px rgba(0,0,0,.08);

    transition:.3s ease;

    border:1px solid #e5e7eb;

}

.card:hover{

    transform:translateY(-6px);

    box-shadow:
    0 18px 40px rgba(0,0,0,.15);

}
.card img{

    width:100%;

    aspect-ratio:16/9;

    object-fit:cover;

    display:block;

    background:#e5e7eb;

}
.content{

    padding:24px;

}
.category{

    display:inline-block;

    padding:6px 12px;

    background:#dbeafe;

    color:#1d4ed8;

    border-radius:999px;

    font-size:.75rem;

    font-weight:700;

    letter-spacing:.5px;

    text-transform:uppercase;

    margin-bottom:16px;

}
.tag{

    display:inline-block;

    background:#f1f5f9;

    color:#334155;

    padding:6px 10px;

    border-radius:999px;

    margin:4px;

    font-size:.8rem;

}
.content h3{

    font-size:1.4rem;

    margin-bottom:12px;

    color:#0f172a;

}
.content p{

    color:#475569;

    line-height:1.7;

    margin-bottom:18px;

}

.project-link{

    display:inline-block;

    margin-top:12px;

    color:#2563eb;

    text-decoration:none;

    font-weight:600;

}

.project-link:hover{

    text-decoration:underline;

}

/* Ocultar elementos al generar PDF */

@media print {

    .hero-actions {

        display:none !important;

    }

}

/* =========================
RESPONSIVE MOVIL
========================= */

@media (max-width: 768px){


.hero{

    flex-direction:column;

    padding:30px 20px;

    gap:30px;

}

.hero-content{

    max-width:100%;

}

.hero-actions{

    width:100%;

    min-width:unset;

}

.hero-actions a,
.hero-actions button{

    width:100%;

    box-sizing:border-box;

}

.portafolio-grid{

    grid-template-columns:1fr;

    padding:20px;

}


}

@media (max-width:768px){

    .hero-actions{

        width:100%;

        align-items:center;

    }

    .hero-actions a,
    .hero-actions button{

        width:100%;

        max-width:320px;

    }

}