/* ============================================
   UNIVERCAD PRODUCT VARIANT SELECTOR - CSS
   Diseño mejorado según imagen de referencia
   Versión Flexbox
   ============================================ */

/* Contenedor principal */
.upvs-container {
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

/* Opciones de producto (V-Ray Solo, etc.) */
.upvs-product-options {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

.upvs-product-option {
    padding: 12px 25px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    color: #495057;
    transition: all 0.3s ease;
    font-size: 15px;
    outline: none;
    flex: 0 1 auto;
}

.upvs-product-option:hover {
    background: #e9ecef;
    border-color: #007cba;
    color: #007cba;
}

.upvs-product-option.active {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

/* Título principal */
.upvs-main-title {
    font-size: 16px !important;
    color: #000;
    flex: 0 0 auto;
    font-weight: 400;
    margin:0px;
    margin-bottom:20px;
}

/* Tabs de Target */
.upvs-target-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    justify-content: center;
    padding: 10px;
    border-style: dotted;
    border-width: 0px 0px 1px 0px;
    border-color: #000;
}

.upvs-target-tab {
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s 
ease;
    outline: none;
    text-align: center;
    flex: 0 1 auto;
    color:#B3B3B3;
    padding: 0px;
    font-size: 14px;
    font-weight: 700;
    fill: #B3B3B3;
        text-transform: uppercase;
}

.upvs-target-tab:hover {
    background: none;
    border-color: transparent;
    color: #000000;
}

.upvs-target-tab:focus{
    background: none;
    color: #000000;
    outline: 0px auto -webkit-focus-ring-color;
}


.upvs-target-tab.active {
    color: #000;
    box-shadow: none;
    border-color: snow;
    background: transparent;
    border: none;
}

/* Contenido de Target */
.upvs-target-content {
    display: none;
    animation: upvsFadeIn 0.5s ease;
    flex: 1 0 auto;
}

.upvs-target-content.active {
    display: flex;
    flex-direction: column;
}

.upvs-content-wrapper {
    display: flex;
    flex-direction: row;
    gap: 40px;
    align-items: stretch;
    flex: 1 0 auto;
}

/* Columna de periodos */
.upvs-period-column {
    padding: 0px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.upvs-period-options {
    display: flex;
    flex-direction: column;
    gap: 15px;
    /*margin-bottom: 25px;*/
    flex: 1 0 auto;
}

.upvs-period-option {
    border: 1px solid #D2CFCF;
 border-radius: 8px;
    cursor: pointer;
    padding: 20px 27px 20px 25px;
    transition: all 0.3s 
ease;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.upvs-period-option:hover {
    border-color: #000000;
        border-width:3px;
    box-shadow: 0px 9px 5px 0px rgba(0, 0, 0, 0.15);
}

.upvs-period-option.active {
    border-color: #000;
    border-width:3px;
    box-shadow: 0px 9px 5px 0px rgba(0, 0, 0, 0.15);
}

/*.upvs-period-option.active::before {*/
/*    content: '';*/
/*    position: absolute;*/
/*    top: 0;*/
/*    left: 0;*/
/*    right: 0;*/
/*    height: 4px;*/
/*    background: linear-gradient(90deg, #007cba 0%, #00a8ff 100%);*/
/*}*/

.upvs-period-header {
    margin-bottom: 0px;
    display: flex;
}

.upvs-period-badge {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #000;
    flex: 1;
    font-size: 18px;
    font-weight: 700;
}

.upvs-period-badge i {
    color: #000000;
    font-size: 15px;
    flex: 0 0 auto;
}

.upvs-period-price {
    margin-bottom: 5px;
    display: flex;
    align-items: flex-end;
    padding-left: 29px;
}
.upvs-price-amount {
    font-size: 16px;
    color: #000;
    line-height: 1;
    margin-bottom: 5px;
}

.upvs-price-amount .woocommerce-Price-amount {
    
    font-size:30px;
    font-weight: 600;
}


.upvs-price-amount .woocommerce-Price-currencySymbol{
    
    font-size:16px;
    font-weight: normal;
    padding-right: 5px;
}

.upvs-price-period {
    font-size: 16px;
    color: #000;
    font-weight: 500;
    margin-bottom: 2px;
}

.upvs-price-equivalent {
    font-size: 14px;
    color: #28a745;
    font-weight: 500;
    background: #e8f5e9;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
}

.upvs-period-notes {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
    margin-top: auto;
}

.upvs-period-notes p {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.upvs-period-notes i {
    color: #6c757d;
}

/* Nota de moneda */
.upvs-currency-notice {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin-top: 25px;
    flex: 0 0 auto;
}

.upvs-currency-notice p {
    margin: 0;
    font-size: 14px;
    color: #856404;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.upvs-currency-notice i {
    color: #f39c12;
    margin-top: 2px;
    flex: 0 0 auto;
}

/* Columna de características */
.upvs-features-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.upvs-features {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 25px;
    flex: 1;
}



.upvs-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.upvs-features li {
    padding: 10px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: #495057;
}

.upvs-features i {
    color: #28a745;
    min-width: 20px;
    font-size: 16px;
    flex: 0 0 auto;
}

/* Sección de agregar al carrito */
.upvs-add-to-cart-section {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
}

.upvs-add-to-cart-btn {
    background: linear-gradient(135deg, #007cba 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 10px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-weight: 700;
    margin-bottom: 20px;
    flex: 0 0 auto;
}

.upvs-add-to-cart-btn:hover {
    background: linear-gradient(135deg, #005a87 0%, #003d5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 92, 135, 0.3);
}

.upvs-add-to-cart-btn:active {
    transform: translateY(0);
}

.upvs-add-to-cart-btn.loading {
    opacity: 0.8;
    cursor: not-allowed;
}

.upvs-cart-feedback {
    min-height: 50px;
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.upvs-feedback-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
    animation: upvsSlideIn 0.3s ease;
}

.upvs-feedback-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.upvs-support-link {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
    flex: 0 0 auto;
}

.upvs-support-link a {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.3s ease;
}

.upvs-support-link a:hover {
    color: #005a87;
    text-decoration: underline;
}

.upvs-support-link i {
    color: #6c757d;
}

.upvs-container-add-to-cart{
    display: flex;
    justify-content: end;
    
}

/* Animaciones */
@keyframes upvsFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes upvsSlideIn {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .upvs-content-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    
    .upvs-main-title {
        font-size: 24px;
    }
    
    .upvs-target-tab {
        min-width: 160px;
        padding: 12px 20px;
    }
    
    .upvs-period-column,
    .upvs-features-column {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .upvs-container {
        padding: 20px 15px;
    }
    
    .upvs-product-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upvs-product-option {
        width: 100%;
    }
    
    .upvs-target-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .upvs-target-tab {
        width: 100%;
    }
    
    .upvs-price-amount {
        font-size: 32px;
    }
    
    .upvs-add-to-cart-btn {
        padding: 16px 30px;
        font-size: 16px;
    }
    
    .upvs-content-wrapper {
        gap: 25px;
    }
}

@media (max-width: 480px) {
    .upvs-period-option {
        padding: 20px;
    }
    
    .upvs-price-amount {
        font-size: 28px;
    }
    
    .upvs-add-to-cart-btn {
        padding: 14px 20px;
        font-size: 15px;
    }
    
    .upvs-features {
        padding: 20px;
    }
    
    .upvs-add-to-cart-section {
        padding: 20px;
    }
}

/* Estilos para mensajes de feedback */
.upvs-message {
    background: #d4edda;
    color: #155724;
    padding: 12px 20px;
    border-radius: 8px;
    border: 1px solid #c3e6cb;
    font-weight: 500;
    animation: upvsSlideIn 0.3s ease;
    margin-bottom: 10px;
}

.upvs-message.error {
    background: #f8d7da;
    color: #721c24;
    border-color: #f5c6cb;
}

.upvs-message.info {
    background: #cce5ff;
    color: #004085;
    border-color: #b8daff;
}

.upvs-message.success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}