/* Welo Webinar Cards v1.0.2 */
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@300;400;500;600;700&display=swap');

.wwc-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    width: 100%;
    font-family: 'Jost', sans-serif;
    box-sizing: border-box;
}

.wwc-cols-1 { grid-template-columns: 1fr; }
.wwc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.wwc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.wwc-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* Card */
.wwc-card {
    background-color: #fff;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.wwc-card:hover {
    transform: translateY(-3px);
}

/* Imagen */
.wwc-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    display: block;
}

.wwc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.4s ease;
}

.wwc-card:hover .wwc-img img {
    transform: scale(1.03);
}

/* Cuando hay imagen, la barra roja va encima como overlay fino */
.wwc-img + .wwc-inner {
    border-top: 3px solid #BD2133;
}

/* Barra acento (cuando no hay imagen) */
.wwc-bar {
    height: 3px;
    background-color: #BD2133;
    width: 100%;
    flex-shrink: 0;
}

/* Inner */
.wwc-inner {
    padding: 36px 32px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

/* Top row */
.wwc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 8px;
}

/* Fecha */
.wwc-date {
    font-family: 'Jost', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #BD2133;
    line-height: 1;
}

/* Tag */
.wwc-tag {
    font-family: 'Jost', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #BD2133;
    border: 1px solid #BD2133;
    padding: 3px 8px;
    border-radius: 2px;
    line-height: 1.4;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Titulo */
.wwc-title {
    font-family: 'Jost', sans-serif !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #1a1a1a !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    letter-spacing: -0.01em;
}

/* Descripcion */
.wwc-desc {
    font-family: 'Jost', sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
    color: #555555;
    margin: 0 0 28px 0;
    flex: 1;
}

/* Enlace */
.wwc-link {
    font-family: 'Jost', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: all 0.22s ease;
    cursor: pointer;
    width: -moz-fit-content;
    width: fit-content;
    box-shadow: none;
}

.wwc-arrow {
    transition: transform 0.22s ease;
    flex-shrink: 0;
}

.wwc-link:hover .wwc-arrow {
    transform: translateX(3px);
}

/* Estilo underline */
.wwc-link-underline {
    color: #BD2133;
    border-bottom: 1.5px solid #BD2133;
    padding-bottom: 1px;
    background: transparent;
    border-top: none;
    border-left: none;
    border-right: none;
    padding-top: 0;
    padding-left: 0;
    padding-right: 0;
}
.wwc-link-underline:hover {
    opacity: 0.7;
    background: transparent !important;
    color: #BD2133 !important;
}

/* Estilo outline */
.wwc-link-outline {
    color: #BD2133;
    border: 1.5px solid #BD2133;
    padding: 8px 18px;
    border-radius: 3px;
    background: transparent;
}
.wwc-link-outline:hover {
    background-color: #BD2133 !important;
    color: #ffffff !important;
}

/* Estilo solid */
.wwc-link-solid {
    color: #ffffff;
    background-color: #BD2133;
    border: 1.5px solid #BD2133;
    padding: 9px 20px;
    border-radius: 3px;
}
.wwc-link-solid:hover {
    background-color: #9b1a28 !important;
    border-color: #9b1a28 !important;
    color: #ffffff !important;
}

/* Sombras */
.wwc-shadow-none { box-shadow: none; }
.wwc-shadow-soft { box-shadow: 0 2px 12px rgba(0,0,0,0.07); }
.wwc-shadow-soft:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.11); }
.wwc-shadow-card { box-shadow: 0 1px 4px rgba(0,0,0,0.10), 0 4px 16px rgba(0,0,0,0.08); }
.wwc-shadow-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.14), 0 12px 36px rgba(0,0,0,0.10); }
.wwc-shadow-float { box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 8px rgba(0,0,0,0.06); }
.wwc-shadow-float:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.16), 0 4px 12px rgba(0,0,0,0.08); }

/* Bordes */
.wwc-border-none  { border: none; }
.wwc-border-light { border: 1px solid #e8e8e8; }
.wwc-border-accent { border: 1px solid #BD2133; }

/* Responsive: tablet */
@media (max-width: 1024px) {
    .wwc-grid,
    .wwc-cols-3,
    .wwc-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Responsive: mobile */
@media (max-width: 767px) {
    .wwc-grid,
    .wwc-cols-2,
    .wwc-cols-3,
    .wwc-cols-4 {
        grid-template-columns: 1fr !important;
    }
    .wwc-inner {
        padding: 28px 24px;
    }
    .wwc-title {
        font-size: 18px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .wwc-card,
    .wwc-link,
    .wwc-arrow {
        transition: none !important;
    }
    .wwc-card:hover {
        transform: none !important;
    }
}
