/* ==========================================================================
   --- ESTILOS EXCLUSIVOS PARA EVIDENCIA CREATIVA ---
   ========================================================================== */

/* Forzamos el fondo oscuro total de noche para esta página */
body {
    background-color: #1a1a1a; 
    color: #ffffff;
    padding-top: 100px; /* Evita que tu navbar fija tape el h1 */
}

/* Estructura de la Sección */
.evidencia-section {
    background-color: #1a1a1a;
    padding: 60px 20px;
}

.evidencia-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.evidencia-title {
    font-family: 'Rubik', sans-serif; /* Tu fuente secundaria */
    font-size: 42px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.evidencia-subtitle {
    font-family: 'Host Grotesk', sans-serif; /* Tu fuente primaria */
    font-size: 16px;
    color: #a0a0a0;
    margin-bottom: 60px;
}

/* Fuerza la Cuadrícula limpia */
.evidencia-grid {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    gap: 30px !important;
    width: 100% !important;
    padding-bottom: 30px;
    box-sizing: border-box;
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; 
    scrollbar-width: none; 
}

.evidencia-grid::-webkit-scrollbar {
    display: none; 
}

/* Tarjetas de Proyectos */
.proyecto-card {
    background-color: #222222;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    display: block;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
    flex: 0 0 auto; 
    width: 380px !important; 
    scroll-snap-align: start; 
}

/* Contenedor del Efecto Zoom de Imagen */
.proyecto-img-wrapper {
    width: 100%;
    height: 350px; 
    overflow: hidden;
}

.proyecto-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Bloque de Información Inferior */
.proyecto-info {
    padding: 25px;
    text-align: left;
    background-color: #222222;
}

.proyecto-info h3 {
    font-family: 'Rubik', sans-serif;
    font-size: 22px;
    color: #ffffff;
    margin: 0 0 8px 0;
    transition: color 0.3s ease;
}

.proyecto-info p {
    font-family: 'Host Grotesk', sans-serif;
    font-size: 14px;
    color: #888888;
    margin: 0;
}

/* --- EFECTOS INTERACTIVOS (HOVER) --- */
.proyecto-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
    border-color: #C6FF34; /* Tu verde lima brillante del brandbook */
}

.proyecto-card:hover .proyecto-img-wrapper img {
    transform: scale(1.03);
}

.proyecto-card:hover .proyecto-info h3 {
    color: #C6FF34; /* Ilumina el título al pasar el mouse */
}

/* Fuerza el Carrusel Horizontal (Scroll Snap) */
.evidencia-grid {
    display: flex !important;
    flex-wrap: nowrap !important; /* Obliga a las tarjetas a estar en una sola línea */
    overflow-x: auto !important; /* Activa el desplazamiento horizontal */
    gap: 30px !important;
    width: 100% !important;
    padding-bottom: 30px; /* Da espacio para la sombra del hover */
    box-sizing: border-box;
    
    /* Efecto "Imán" nativo al hacer scroll */
    scroll-snap-type: x mandatory; 
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Scroll fluido en iOS */
    
    /* Ocultar barra de desplazamiento para un look más limpio */
    scrollbar-width: none; /* Firefox */
}

.evidencia-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari y Edge */
}

/* Ajustes de Responsividad Estricta para Móviles */
@media (max-width: 768px) {
    body {
        padding-top: 80px;
    }
    
    .evidencia-section {
        padding: 30px 10px;
    }
    
    .evidencia-title {
        font-size: 30px;
    }

    .evidencia-grid {
        display: flex !important;
        flex-direction: column !important; /* Desactiva el carrusel de soluciones de tu index */
        gap: 20px !important;
    }

    .proyecto-card {
        width: 100% !important;
    }

    .proyecto-img-wrapper {
        height: 250px;
    }
}