/* ==========================================
   ACC News Grid - Plugin Styles
   ========================================== */

.acc-ng-wrapper {
    width: 100%;
    max-width: 1312px; /* Actualizado a 1312px */
    margin: 0 auto;
    padding: 20px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.acc-ng-wrapper *, 
.acc-ng-wrapper *::before, 
.acc-ng-wrapper *::after {
    box-sizing: border-box;
}

.acc-ng-main-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: #111111;
}

/* Layout en Grilla */
.acc-ng-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 24px;
}

.acc-ng-side-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* Tarjeta Base */
.acc-ng-card {
    background-color: #E6F0EA;
    border-radius: 20px;
    padding: 28px;
    display: flex;
    align-items: center;
    gap: 24px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acc-ng-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* Máscara de la Imagen sin recorte */
.acc-ng-image-wrapper {
    position: relative;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 16px; /* Sin máscara recortada */
    background-color: transparent;
}

.acc-ng-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.acc-ng-card:hover .acc-ng-image-wrapper img {
    transform: scale(1.05);
}

/* Tamaños de imagen según el tipo de tarjeta */
.acc-ng-card-featured .acc-ng-image-wrapper {
    width: 280px;
    height: 280px;
}

.acc-ng-card-small .acc-ng-image-wrapper {
    width: 135px;
    height: 135px;
}

/* Textos y Contenidos */
.acc-ng-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.acc-ng-title {
    margin: 0 0 12px 0;
}

.acc-ng-title a {
    color: #111111;
    text-decoration: none;
    transition: color 0.2s ease;
}

.acc-ng-card-featured .acc-ng-title {
    font-size: 1.45rem;
    font-weight: 800;
    line-height: 1.25;
}

.acc-ng-card-small .acc-ng-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
}

.acc-ng-title a:hover {
    color: #d32f2f;
}

.acc-ng-excerpt {
    font-size: 0.92rem;
    color: #555555;
    margin: 0 0 16px 0;
    line-height: 1.45;
}

/* Botones / Links de Acción */
.acc-ng-link {
    color: #d32f2f;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    transition: opacity 0.2s ease;
}

.acc-ng-link:hover {
    opacity: 0.8;
}

.acc-ng-arrow {
    font-size: 1.2rem;
    margin-left: 4px;
    line-height: 1;
}

/* Responsive - Pantallas Tablet y Móviles */
@media (max-width: 900px) {
    .acc-ng-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .acc-ng-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }

    .acc-ng-card-featured .acc-ng-image-wrapper,
    .acc-ng-card-small .acc-ng-image-wrapper {
        width: 100%;
        height: 200px;
    }
}
