/* ================================================================
   ESTILOS ESPECÍFICOS DE PROYECTOS - GLOBO FAST SOLKALI
   ================================================================ */
/* --- 1. BANNER PRINCIPAL (HERO) --- */
.projects-hero {
    position: relative;
    height: 550px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center; 
    justify-content: flex-start; /* Alinea contenido a la izquierda */
    color: white;
    overflow: hidden;
    cursor: pointer;
}

/* Contenedor forzado a la izquierda */
.projects-hero .container {
    margin-left: 0 !important;
    margin-right: auto !important;
    padding-left: 60px;
    width: 100%;
    max-width: none;
}

.hero-inner {
    position: relative;
    z-index: 10;
    text-align: left;
    max-width: 600px;
}

/* --- 2. ELEMENTOS DE DISEÑO (LÍNEA Y TAG) --- */
.accent-line {
    width: 50px;
    height: 5px;
    background-color: #f1c40f;
    margin-bottom: 15px;
    transition: width 0.5s ease;
}

.company-tag {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    color: #f1c40f; /* Amarillo para resaltar */
}

/* --- 3. TIPOGRAFÍA DINÁMICA --- */
.projects-hero h1 {
    font-size: 3.5rem;
    line-height: 0.85;
    margin: 0;
    text-transform: uppercase;
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: left top; /* Crece desde la esquina superior izquierda */
}

.projects-hero h1 span { font-weight: 300; display: block; }
.projects-hero h1 strong { font-weight: 900; display: block; }

/* Efecto Crecimiento */
.projects-hero:hover h1 {
    transform: scale(1.3); /* Crece un 30% */
    margin-top: 20px; /* Evita que tape el company-tag */
}

.projects-hero:hover .accent-line {
    width: 80px;
}

/* --- 4. INFO EXTRA (REVELACIÓN) --- */
.hero-extra-info {
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-20px);
    transition: all 0.6s ease-in-out;
}

.projects-hero:hover .hero-extra-info {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    margin-top: 30px; /* Espacio para que no choque con el H1 grande */
}

.hero-extra-info p {
    font-size: 1.1rem;
    border-left: 3px solid #f1c40f;
    padding-left: 20px;
    transition: transform 0.5s ease;
    transform-origin: left center;
}

.projects-hero:hover .hero-extra-info p {
    transform: scale(1.1);
}

/* --- 5. GEOMETRÍA (FLECHA Y SOMBRA) --- */
.projects-hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 25%;
    height: 100%;
    background: #003060;
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    z-index: 2;
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.projects-hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 27%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    clip-path: polygon(0% 0%, 75% 0%, 100% 50%, 75% 100%, 0% 100%);
    z-index: 1;
    filter: blur(12px);
    transition: all 0.7s cubic-bezier(0.19, 1, 0.22, 1);
}

.projects-hero:hover::before { width: 55%; }
.projects-hero:hover::after { width: 57%; }

/* --- 6. RESPONSIVE --- */
@media (max-width: 768px) {
    .projects-hero::before, .projects-hero::after {
        width: 100%;
        clip-path: none;
        background: rgba(0, 48, 96, 0.85);
    }
    .hero-inner { padding-left: 20px; }
    .projects-hero h1 { font-size: 2.5rem; }
    .projects-hero:hover h1 { transform: none; } /* Desactivamos escalado en móvil */
}

/* --- 2. FILTROS Y CONTENEDOR --- */
.projects-portfolio .container {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    padding: 60px 0 40px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 12px 25px;
    border: 2px solid #e0e0e0;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: 0.3s all cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn:hover, 
.filter-btn.active {
    background: var(--yellow);
    border-color: var(--yellow);
    color: #000;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* --- 3. GRID Y TARJETAS --- */
.projects-grid-full {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding-bottom: 100px;
}

.project-card {
    background: #fff;
    border: 1px solid #eee;
    transition: all 0.4s ease;
    /* Preparado para el script de filtrado */
    opacity: 1; 
}

.project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,48,96,0.15);
}

.project-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.6s transform ease;
}

.project-card:hover .project-img img {
    transform: scale(1.1);
}

.project-date {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--yellow);
    color: #000;
    padding: 5px 12px;
    font-weight: 800;
    font-size: 0.75rem;
    z-index: 2;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
}

.project-details {
    padding: 25px;
}

.project-details .category {
    display: block;
    color: #003060;
    font-weight: 800;
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
}

.project-details h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #1a1a1a;
    line-height: 1.3;
}

.project-details p {
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.project-details p i {
    color: var(--yellow);
}

/* --- 4. RESPONSIVE --- */
@media (max-width: 1100px) {
    .projects-grid-full {
        grid-template-columns: repeat(2, 1fr);
    }
    .projects-hero h1 { font-size: 3.5rem; }
}

@media (max-width: 768px) {
    .projects-hero {
        height: 400px;
    }
    .projects-hero::before {
        width: 100%;
        clip-path: none;
        opacity: 0.3; /* Imagen sutil de fondo en móvil */
    }
    .projects-hero::after {
        width: 100%;
        background: rgba(0, 48, 96, 0.8);
    }
    .projects-grid-full {
        grid-template-columns: 1fr;
    }
    .projects-hero h1 { font-size: 2.8rem; }
}