.ewed-grid-3c-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    justify-content: center;
    justify-items: center;
}

.ewed-grid-3c-card {
    background-color: #1E1E1E;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ewed-grid-3c-card:hover {
    transform: translateY(-10px);
}

.ewed-grid-3c-image {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ewed-grid-3c-image img {
    width: 100%;
    height: auto;
    max-height: 300px; 
    object-fit: contain;
}

.ewed-grid-3c-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 32px !important; 
    margin: 10px 0 5px 0;
    font-weight: 600;
    color: #ffffff !important;
    background: none !important;
    -webkit-text-fill-color: initial !important;
}

.ewed-grid-3c-category {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
}

.ewed-grid-3c-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-decoration: none !important;
    font-size: 13px;
    border: none;
    color: #ffffff !important;
    transition: opacity 0.3s;
}

.ewed-grid-3c-wrapper .ewed-grid-3c-card .ewed-grid-3c-btn,
.ewed-grid-3c-wrapper .ewed-grid-3c-card .ewed-grid-3c-btn:hover,
.ewed-grid-3c-wrapper .ewed-grid-3c-card .ewed-grid-3c-btn:focus {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.ewed-grid-3c-wrapper .ewed-grid-3c-card .ewed-grid-3c-btn i,
.ewed-grid-3c-wrapper .ewed-grid-3c-card .ewed-grid-3c-btn .fab {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

/* Colores Fila 1 */
.ewed-grid-3c-wrapper .card-3c-v .ewed-grid-3c-category i.fa-circle-check { color: #00d2ff !important; -webkit-text-fill-color: #00d2ff !important; }
.ewed-grid-3c-wrapper .card-3c-v .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #00d2ff 0%, #3a7bd5 100%) !important; }

.ewed-grid-3c-wrapper .card-3c-u .ewed-grid-3c-category i.fa-circle-check { color: #ff416c !important; -webkit-text-fill-color: #ff416c !important; }
.ewed-grid-3c-wrapper .card-3c-u .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #ff416c 0%, #ff4b2b 100%) !important; }

.ewed-grid-3c-wrapper .card-3c-k .ewed-grid-3c-category i.fa-circle-check { color: #f59e0b !important; -webkit-text-fill-color: #f59e0b !important; }
.ewed-grid-3c-wrapper .card-3c-k .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #f59e0b 0%, #d97706 100%) !important; }

/* Colores Fila 2 */
.ewed-grid-3c-wrapper .card-3c-vt .ewed-grid-3c-category i.fa-circle-check { color: #a3cf62 !important; -webkit-text-fill-color: #a3cf62 !important; }
.ewed-grid-3c-wrapper .card-3c-vt .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #a3cf62 0%, #7eb13d 100%) !important; }

.ewed-grid-3c-wrapper .card-3c-lm .ewed-grid-3c-category i.fa-circle-check { color: #f06292 !important; -webkit-text-fill-color: #f06292 !important; }
.ewed-grid-3c-wrapper .card-3c-lm .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #f06292 0%, #e91e63 100%) !important; }

.ewed-grid-3c-wrapper .card-3c-om .ewed-grid-3c-category i.fa-circle-check { color: #0099e5 !important; -webkit-text-fill-color: #0099e5 !important; }
.ewed-grid-3c-wrapper .card-3c-om .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #0099e5 0%, #007bb6 100%) !important; }

/* Nuevos Estilos (Gradientes Suaves y Elegantes) */
.ewed-grid-3c-wrapper .card-3c-purple .ewed-grid-3c-category i.fa-circle-check { color: #a18cd1 !important; -webkit-text-fill-color: #a18cd1 !important; }
.ewed-grid-3c-wrapper .card-3c-purple .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #a18cd1 0%, #fbc2eb 100%) !important; }

.ewed-grid-3c-wrapper .card-3c-mint .ewed-grid-3c-category i.fa-circle-check { color: #84fab0 !important; -webkit-text-fill-color: #84fab0 !important; }
.ewed-grid-3c-wrapper .card-3c-mint .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #84fab0 0%, #8fd3f4 100%) !important; }

.ewed-grid-3c-wrapper .card-3c-gold .ewed-grid-3c-category i.fa-circle-check { color: #e6b980 !important; -webkit-text-fill-color: #e6b980 !important; }
.ewed-grid-3c-wrapper .card-3c-gold .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #e6b980 0%, #eacda3 100%) !important; }

.ewed-grid-3c-wrapper .card-3c-coral .ewed-grid-3c-category i.fa-circle-check { color: #ff9a9e !important; -webkit-text-fill-color: #ff9a9e !important; }
.ewed-grid-3c-wrapper .card-3c-coral .ewed-grid-3c-btn { background-image: linear-gradient(90deg, #ff9a9e 0%, #fecfef 100%) !important; }

/* Filtros de Portafolio (Selector Híbrido) */
.ewed-portfolio-filter-container {
    display: flex;
    justify-content: center;
    margin-bottom: 35px;
    padding: 0 20px;
    position: relative;
    z-index: 10;
}

.ewed-select-wrapper {
    position: relative;
    width: 100%;
    max-width: 350px;
}

/* Base de Selectores (Compartida) */
.ewed-portfolio-select,
.ewed-custom-select-trigger {
    width: 100%;
    background-color: #1E1E1E;
    color: #ffffff;
    border: 2px solid #333;
    border-radius: 50px;
    padding: 14px 45px 14px 25px;
    font-size: 15px;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ewed-portfolio-select:focus,
.ewed-portfolio-select:hover,
.ewed-custom-select-trigger:focus,
.ewed-custom-select-trigger:hover,
.ewed-custom-select.open .ewed-custom-select-trigger {
    border-color: #00d2ff;
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
}

/* Selector Nativo (Móvil) */
.ewed-portfolio-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    display: none; /* Oculto por defecto, visible en móvil */
}

.ewed-portfolio-select option {
    background-color: #1E1E1E;
    color: #ffffff;
    padding: 10px;
}

.ewed-select-icon {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: #00d2ff;
    pointer-events: none;
    font-size: 14px;
    transition: transform 0.3s ease;
}

/* Selector Custom (Escritorio) */
.ewed-custom-select {
    position: relative;
    width: 100%;
    display: block; /* Visible por defecto en escritorio */
}

.ewed-custom-select.open .ewed-select-icon {
    transform: translateY(-50%) rotate(180deg);
}

.ewed-custom-options {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    background-color: #1E1E1E;
    border: 1px solid #333;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    max-height: 250px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.ewed-custom-select.open .ewed-custom-options {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ewed-custom-option {
    padding: 12px 25px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ewed-custom-option:last-child {
    border-bottom: none;
}

.ewed-custom-option:hover,
.ewed-custom-option.selected {
    background-image: linear-gradient(90deg, rgba(0, 210, 255, 0.1) 0%, rgba(58, 123, 213, 0.1) 100%);
    color: #00d2ff;
    padding-left: 30px;
}

/* Scrollbar Personalizado para el Menú */
.ewed-custom-options::-webkit-scrollbar {
    width: 6px;
}

.ewed-custom-options::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}

.ewed-custom-options::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.5);
    border-radius: 10px;
}

.ewed-custom-options::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 210, 255, 0.8);
}

@media (max-width: 991px) {
    .ewed-grid-3c-wrapper { 
        grid-template-columns: 1fr; 
        padding: 20px;
    }
    .ewed-grid-3c-card { 
        aspect-ratio: auto; 
        min-height: 360px; 
        margin: 0 auto;
    }
    .ewed-custom-select {
        display: none !important; /* Ocultar el custom en móvil */
    }
    .ewed-portfolio-select {
        display: block !important; /* Mostrar el nativo en móvil */
    }
}
