/* Tournament Cards Frontend Styles - Adaptadas a Elementor */

/* Contenedor */
.mcc-tournament-cards {
    display: block;  /* Elementor controla columnas */
    margin: 20px 0;
}

/* Tarjeta */
.mcc-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e5e7eb;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    transform: translateY(0);
    animation: fadeInUp 0.6s ease-out;
}

/* Hover */
.mcc-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Imagen */
.mcc-card-image {
    position: relative;
    height: 140px;             /* menos alto para tarjeta más compacta */
    overflow: hidden;
}

.mcc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.mcc-card:hover .mcc-card-image img {
    transform: scale(1.1);
}

.mcc-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.5) 100%);
}

/* Badge de precio */
.mcc-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #040699, #040699);
    color: white;
    padding: 6px 10px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 13px;
    z-index: 10;
}

/* Título sobre imagen */
.mcc-card-title-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 10;
}

.mcc-card-title-overlay h3 {
    color: white;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 2px 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.9);
}

.mcc-duration-overlay {
    display: flex;
    align-items: center;
    color: white;
    font-size: 14px;
    font-weight: 500;
}

.mcc-duration-overlay::before {
    content:'⏱️';
    margin-right: 4px;
}

/* Contenido */
.mcc-card-content {
    padding: 10px; /* menos padding para reducir altura */
}

/* ===========================
   Detalles profesionales
   =========================== */
.mcc-card-details {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Bloque detalle */
.mcc-detail {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f9fafbb4;
    padding: 4px 12px;
    border-radius: 14px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.05), -2px -2px 6px rgba(255,255,255,0.7);
    flex: 1 1 calc(50% - 12px);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mcc-detail:hover {
    transform: translateY(-2px);
    box-shadow: 4px 4px 12px rgba(0,0,0,0.1), -4px -4px 12px rgba(255,255,255,0.8);
}

/* Icono dentro del detalle */
.mcc-detail-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e0f2fe, #bae6fd);
    color: #0369a1;
    font-size: 18px;
    flex-shrink: 0;
    box-shadow: inset 1px 1px 2px rgba(255,255,255,0.6),
                inset -1px -1px 2px rgba(0,0,0,0.08);
}

/* Texto dentro del detalle */
.mcc-detail-content {
    display: flex;
    flex-direction: column;
}

.mcc-detail-label {
    font-size: 11px;
    font-weight: 500;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 2px;
}

.mcc-detail-value {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

/* ===========================
   Categorías con pill original
   =========================== */

/* Contenedor de categorías alineado a la izquierda */
.mcc-categories {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.mcc-categories-header {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #f9fafbb4;
    color: #1f2937;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 12px;
    margin-bottom: 8px;
    box-shadow: 2px 2px 6px rgba(0,0,0,0.05), -2px -2px 6px rgba(255,255,255,0.7);
}

.mcc-categories-header::before {
    content: '🏆';
    font-size: 18px;
}

.mcc-categories-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 6px;
    margin-bottom: 12px;
}

.mcc-category {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #1e40af;
    color: #f9fafb;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Descripción */
.mcc-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 10px;
}

/* Botones */
.mcc-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-direction: row;
}

.mcc-button {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.mcc-button::after {
    content: '🔗';
    margin-left: 6px;
    font-size: 14px;
}

/* Últimos dos botones lado a lado */
.mcc-buttons .mcc-button:nth-last-child(2),
.mcc-buttons .mcc-button:last-child {
    flex: 1 1 calc(50% - 6px);
}

/* Botones colores */
.mcc-button-primary {
    background: linear-gradient(135deg, hsl(231, 95%, 34%), #040699);
    color: white;
}

.mcc-button-primary:hover {
    background: linear-gradient(135deg, #040699, #040699);
    transform: translateY(-2px);
    color: white;
}

.mcc-button-secondary {
    background: white;
    color: #040699;
    border-color: #040699;
}

.mcc-button-secondary:hover {
    background: #040699;
    color: white;
    transform: translateY(-2px);
}

.mcc-button-tertiary {
    background: #ffffff;
    color: #040699;
    border-color: #040699;
}

.mcc-button-tertiary:hover {
    background: #040699;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 480px) {
    .mcc-card-content { padding: 12px; }
    .mcc-card-title-overlay h3 { font-size: 16px; }
    .mcc-button { padding: 5px 5px; font-size: 12px; }
    .mcc-additional-info { grid-template-columns: 1fr; }
    .mcc-buttons .mcc-button:nth-last-child(2),
    .mcc-buttons .mcc-button:last-child { flex: 1 1 100%; }
}

/* Animaciones */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.mcc-card:nth-child(2) { animation-delay: 0.1s; }
.mcc-card:nth-child(3) { animation-delay: 0.2s; }
.mcc-card:nth-child(4) { animation-delay: 0.3s; }
.mcc-card:nth-child(5) { animation-delay: 0.4s; }
.mcc-card:nth-child(6) { animation-delay: 0.5s; }
