:root {
	--gdt:#9B9BE5;
	--gde:#6FDDBE;
}
/* ESTILOS CSS MAQUETACIÃƒâ€œN - CASOS DE Ãƒâ€°XITO */
.dg-casos-wrapper { 
    max-width: 1200px; 
    margin: 0 auto; 
    color: #005ff9; 
}
.dg-casos-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-end; 
    margin-bottom: 40px; 
    flex-wrap: wrap; 
    gap: 20px;
}
.dg-casos-header p {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
    color: #141414;
}
.dg-filtros { display: flex; gap: 30px; }
.dg-filtro-item { display: flex; flex-direction: column; }
.dg-filtro-item label {
    font-size: 12px;
    text-transform: uppercase;
    color: #141414;
    letter-spacing: 1px;
    margin-bottom: 5px;
    font-weight: 400;
}
.dg-filtro-item select {
    border: none;
    border-bottom: 2px solid #2d68c4;
    padding: 5px 30px 5px 0;
    font-size: 15px;
    color: #141414;
    background: transparent;
    outline: none;
    cursor: pointer;
    min-width: 200px;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%232d68c4%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 5px top 50%;
    background-size: 12px auto;
}

/* Grid y Tarjetas */
.dg-casos-grid { 
    display: grid; 
    grid-template-columns: repeat(3, 1fr); 
    gap: 40px 30px; 
    margin-bottom: 50px; 
}
.dg-card {
    padding-bottom: 20px;
}
.dg-card-img {
    width: 100%;
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 20px;
}

/* SuperposiciÃƒÂ³n sobre imagen */
.dg-card-overlay { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    right: 15px; 
    display: flex; 
    gap: 15px; 
    align-items: center; 
}
.dg-badge-padre,.dg-badge-pais{
	z-index:2;
}
.dg-badge-padre {
    border: 1px solid rgba(255,255,255,0.7);
    background: rgba(0,0,0,0.4);
    color: #fff;
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 1px;
    padding: 0px 10px;
    text-transform: uppercase;
}
.dg-badge-pais {
    color: #141414;
    font-size: 12px;
    font-weight: 400;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 1px;
}
.dg-badge-pais svg { 
    width: 12px; 
    height: 12px; 
}

.dg-card-content{
    display:flex;
    gap: 20px;
}


.dg-cat-hijo {
    display: inline-block;
    color: #141414;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 400;
    padding: 2px 10px;
    border: 1px solid #141414;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease,
        color 0.25s ease,
        box-shadow 0.25s ease;
}

/* Se desactiva el hover en las etiquetas */
/* .dg-cat-hijo.gdt:hover {
    color: #fff;
    background-color: var(--gdt);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.dg-cat-hijo.gde:hover {
    color: #fff;
    background-color: var(--gde);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
} */

.dg-cat-hijo.gde, .borde-gdx.gde{
border-color: var(--gde);
}
.dg-cat-hijo.gdt, .borde-gdx.gdt{
border-color: var(--gdt);
}
.borde-gdx{
    border: 2px solid #005ff9;
    width:100%;
    display: block;
    margin-bottom: 20px;
}
.dg-card-title {
    font-size: 22px;
    line-height: 1.4;
    color: #141414;
    margin: 20px 0 0 0;
    font-weight: 500;
}

/* PaginaciÃƒÂ³n */
.dg-casos-paginacion {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
}
.dg-casos-paginacion button {
    background: none;
    border: none;
    color: #141414;
    font-size: 14px;
    cursor: pointer;
    padding: 5px 10px;
    position: relative;
}
.dg-casos-paginacion button.active {
    font-weight: bold;
    color: #005FF9;
}
.dg-casos-paginacion button:not(.dg-page-nav):not(:last-child)::after { 
    content: "|"; 
    position: absolute; 
    right: -5px; 
    color: #ccc; 
    font-weight: normal; 
}
.dg-page-nav { 
    font-size: 20px !important; 
    font-weight: bold; 
    color: #2d68c4 !important; 
}
.dg-loading { 
    grid-column: 1 / -1; 
    text-align: center; 
    padding: 50px; 
    font-size: 18px; 
    color: #666; 
}

/* 1. TransiciÃ³n para el tÃ­tulo */
.dg-card-title {
    transition: color 0.3s ease-in-out;
}

/* 2. TransiciÃ³n y setup para la imagen */
.dg-card-img {
    position: relative; /* FUNDAMENTAL para que el ::after se posicione encima */
    transition: transform 0.4s ease-in-out;
    /* overflow: hidden;  <-- Descomenta esto si al hacer zoom la imagen se sale de la tarjeta */
}

/* 3. ESTO ES CLAVE: El estado inicial de la capa oscura */
.dg-card-img::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* Transparente por defecto */
    transition: background 0.4s ease-in-out;
    z-index: 1; /* Asegura que tape la imagen, ajusta si te tapa otras cosas */
}

/* =========================================
   ESTADOS HOVER (Lo que tÃº me pasaste)
   ========================================= */

.dg-card:hover .dg-card-title {
    color: #005ff9;
}

.dg-card:hover .dg-card-img {
    transform: scale3d(1.1, 1.1, 1);
}

.dg-card:hover .dg-card-img::after {
    background: rgba(0, 0, 0, 0.2);
}

/* Responsive */
@media (max-width: 900px) {
    .dg-casos-grid { grid-template-columns: repeat(2, 1fr); }
    
}

@media (max-width: 700px) {
    .dg-casos-header { flex-direction: column; align-items: flex-start; }
    .dg-filtros { flex-direction: column; width: 100%; gap: 15px;}
    .dg-filtro-item select { width: 100%; }
    .dg-casos-grid { grid-template-columns: 1fr; }
    .dg-casos-paginacion{ display: block !important;}
}
