/* 1. IMPORTACIÓN DE FUENTES 
   Si vas a usar una fuente nueva que no esté en la web, 
   asegúrate de cargarla aquí con @font-face o @import 
*/
@font-face {
    font-family: 'Avenir Next';
    src: url('https://beltatelier.co/wp-content/uploads/2025/07/avenir-next-regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Avenir Next';
    src: url('https://beltatelier.co/wp-content/uploads/2025/07/avenir-next-demi-bold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
}

/* --- GRID PRINCIPAL --- */
.custom-layout-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    max-width: 1600px;
    margin: 0 auto;
    padding: 20px 0;
    box-sizing: border-box;
}

/* --- TARJETA BASE --- */
.custom-card-item {
    position: relative;
    height: 483px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden;
    background-color: #000;
}

.custom-card-link {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none !important;
    border: none !important;
}

/* --- IMAGEN --- */
.custom-card-image-wrap {
    width: 100%;
    height: 100%;
}

.custom-card-image-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    transition: transform 0.5s ease;
    margin: 0 !important;
}

/* --- CAPA OSCURA (OVERLAY) --- */
.custom-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    
    /* === AJUSTE DE ALINEACIÓN 1/2 === */
    /* Cambiado de 'center' a 'flex-start' para moverlo a la izquierda */
    justify-content: flex-start; 
    
    align-items: center; /* Esto centra verticalmente (arriba-abajo). Si quieres arriba, usa 'flex-start' */
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 10;
    padding: 40px; /* Aumenté un poco el padding para que no pegue al borde izquierdo */
    box-sizing: border-box;
}

/* --- TÍTULO (TEXTO) --- */
.custom-card-title {
    color: #FFFFFF !important;
    
    /* === AJUSTE DE FUENTE === */
    /* Cambia 'Avenir Next' por el nombre de tu fuente deseada */
    font-family: 'Avenir Next', sans-serif !important; 
    
    font-weight: 400 !important;
    
    /* === AJUSTE DE TAMAÑO === */
    font-size: 36px !important; /* Aumentado de 24px a 32px */
    
    text-transform: uppercase;
    
    /* === AJUSTE DE ALINEACIÓN 2/2 === */
    text-align: left !important; /* Fuerza el texto a la izquierda */
    
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    word-wrap: break-word;
}

/* --- REGLAS DEL PATRÓN 3 - 2 --- */
.custom-card-item:nth-child(5n+1),
.custom-card-item:nth-child(5n+2),
.custom-card-item:nth-child(5n+3) {
    width: 486px !important;
}

.custom-card-item:nth-child(5n+4),
.custom-card-item:nth-child(5n+5) {
    width: 745px !important;
}

/* --- EFECTOS HOVER --- */
.custom-card-item:hover .custom-card-overlay {
    opacity: 1;
}

.custom-card-item:hover img {
    transform: scale(1.05);
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .custom-card-item:nth-child(5n+1),
    .custom-card-item:nth-child(5n+2),
    .custom-card-item:nth-child(5n+3) {
        width: calc(33.33% - 14px) !important;
    }
    .custom-card-item:nth-child(5n+4),
    .custom-card-item:nth-child(5n+5) {
        width: calc(50% - 10px) !important;
    }
}

@media (max-width: 768px) {
    .custom-card-item {
        width: 100% !important;
        height: 350px !important;
        margin-bottom: 20px !important;
    }
    /* Opcional: Reducir un poco la letra en móvil para que quepa bien */
    .custom-card-title {
        font-size: 24px !important; 
    }
}