 body {
     font-family: 'Raleway', sans-serif;
     background-color: #050505;
     color: #ffffff;
     margin: 0;
     padding: 0;
     overflow-x: hidden;
 }

 /* --- ESTILOS ESPECÍFICOS PORTFOLIO --- */

 .project-card {
     position: relative;
     overflow: hidden;
     transition: transform 0.5s ease, box-shadow 0.5s ease;
     isolation: isolate;
     /* Para el redondeo de esquinas con overflow */
 }

 /* Efecto de elevación suave al hover */
 .project-card:hover {
     transform: translateY(-5px);
     box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
     z-index: 10;
 }

 .project-card::after {
     content: '';
     position: absolute;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
     opacity: 0.8;
     transition: opacity 0.5s ease;
     pointer-events: none;
 }

 .project-card:hover::after {
     opacity: 1;
     background: linear-gradient(to top, rgba(5, 5, 5, 1) 0%, rgba(185, 28, 28, 0.15) 70%, transparent 100%);
 }

 .project-image {
     transition: transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
     width: 100%;
     height: 100%;
     object-fit: cover;
     filter: grayscale(20%);
 }

 .project-card:hover .project-image {
     transform: scale(1.1);
     filter: grayscale(0%);
 }

 .project-info {
     position: absolute;
     bottom: 0;
     left: 0;
     width: 100%;
     padding: 2.5rem;
     z-index: 20;
     transform: translateY(20px);
     transition: transform 0.5s ease;
 }

 .project-card:hover .project-info {
     transform: translateY(0);
 }

 /* --- NUEVO: Estilos para los botones de acción --- */
 .project-actions {
     opacity: 0;
     transform: translateY(10px);
     transition: all 0.4s ease 0.1s;
     height: 0;
     overflow: hidden;
     margin-top: 0;
 }

 .project-card:hover .project-actions {
     opacity: 1;
     transform: translateY(0);
     height: auto;
     margin-top: 1.5rem;
     overflow: visible;
 }

 /* ------------------------------------------------ */

 .project-line {
     width: 0;
     height: 2px;
     background-color: white;
     margin-bottom: 1rem;
     transition: width 0.5s ease 0.1s;
 }

 .project-card:hover .project-line {
     width: 60px;
 }

 /* Categorías Filtro */
 .filter-btn {
     position: relative;
     padding-bottom: 5px;
     color: #6b7280;
     transition: color 0.3s ease;
 }

 .filter-btn::after {
     content: '';
     position: absolute;
     bottom: 0;
     left: 0;
     width: 0%;
     height: 2px;
     background-color: #FF0000;
     transition: width 0.3s ease;
 }

 .filter-btn.active {
     color: #ffffff;
 }

 .filter-btn.active::after,
 .filter-btn:hover::after {
     width: 100%;
 }

 /* Modal Detalles */
 .project-modal {
     position: fixed;
     top: 0;
     left: 0;
     width: 100%;
     height: 100%;
     background-color: rgba(0, 0, 0, 0.95);
     z-index: 100;
     opacity: 0;
     visibility: hidden;
     transition: opacity 0.4s ease, visibility 0.4s;
     overflow-y: auto;
 }

 .project-modal.open {
     opacity: 1;
     visibility: visible;
 }

 /* --- REUTILIZADOS DEL CÓDIGO ANTERIOR --- */
 .mobile-link-hover {
     position: relative;
     display: inline-block;
 }

 .mobile-link-hover::after {
     content: '';
     position: absolute;
     width: 0;
     height: 2px;
     bottom: -2px;
     left: 0;
     background-color: #FF0000;
     transition: width 0.3s ease;
 }

 .mobile-link-hover:hover::after {
     width: 100%;
 }

 .no-scrollbar::-webkit-scrollbar {
     display: none;
 }

 .no-scrollbar {
     -ms-overflow-style: none;
     scrollbar-width: none;
 }