.gg-tyc-empty,
.gg-tyc-notice {
    padding: 20px;
    text-align: center;
    color: #4A5568;
    background: #F4F6F9;
    border-radius: 8px;
}

.gg-tyc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    width: 100%;
}

@media (max-width: 767px) {
    .gg-tyc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
}

.gg-tyc-card {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    transition: transform var(--gg-tyc-hover-duration, 300ms) ease,
                box-shadow var(--gg-tyc-hover-duration, 300ms) ease;
}

/* Cada control del widget (pestaña Estilo > "Efecto al pasar el mouse")
   solo fija una de estas variables en .gg-tyc-grid; se combinan aquí en un
   único transform para que apliquen por tarjeta individual vía :hover (las
   "Motion Effects" nativas de Elementor no sirven para esto: aplican al
   widget completo, no a cada tarjeta). La sombra la pone directo el Group
   Control Box_Shadow del widget sobre .gg-tyc-card:hover. */
.gg-tyc-card:hover {
    transform: translate(var(--gg-tyc-hover-move-x, 0px), calc(-1 * var(--gg-tyc-hover-lift, 6px)))
               scale(var(--gg-tyc-hover-scale, 1.05));
}

/* Altura uniforme = la de la imagen más pequeña del grid, calculada por
   selector.js (nunca un valor fijo/arbitrario). Antes de que corra el JS,
   o si el término no tiene imagen, la tarjeta conserva su alto natural. */
.gg-tyc-card:not(.gg-tyc-card--empty) {
    height: var(--gg-tyc-card-height, auto);
}

.gg-tyc-card__img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gg-tyc-card--empty {
    aspect-ratio: 16 / 15;
    background: #F4F6F9;
}

.gg-tyc-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
}

.gg-tyc-detail__banner {
    margin-bottom: 20px;
}

.gg-tyc-detail__banner img {
    display: block;
    width: 100%;
    height: auto;
}

.gg-tyc-detail__title {
    margin-bottom: 16px;
    color: #1A382D;
}

.gg-tyc-detail__content {
    margin-bottom: 24px;
    line-height: 1.6;
}

.gg-tyc-pdf,
.gg-tyc-pdf-link {
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-left: 5px solid #FFC800;
    border-radius: 6px;
}

.gg-tyc-pdf-btn,
.gg-tyc-pdf-link {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    background: #ffffff;
    border: none;
    text-decoration: none;
    color: #1f2937;
    cursor: pointer;
    font-size: 0.95rem;
}

.gg-tyc-pdf-link {
    border: 1px solid #e5e7eb;
    border-left: 5px solid #FFC800;
    border-radius: 6px;
}

.gg-tyc-pdf-btn:hover,
.gg-tyc-pdf-link:hover {
    background-color: #fbfbfb;
}

.gg-tyc-pdf-label {
    font-weight: 700;
    flex: 1;
    min-width: 0;
}

.gg-tyc-pdf-icon,
.gg-tyc-pdf-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.gg-tyc-pdf-btn[aria-expanded="true"] .gg-tyc-pdf-icon {
    transform: rotate(180deg);
}

.gg-tyc-pdf-viewer {
    display: none;
    width: 100%;
    height: 550px;
    border-top: 1px solid #e5e7eb;
}

.gg-tyc-pdf-viewer.is-open {
    display: block;
}

.gg-tyc-pdf-iframe {
    width: 100%;
    height: 100%;
    border: none;
}

@media (max-width: 767px) {
    .gg-tyc-pdf-viewer {
        height: 460px;
    }
}
