/* === YOULO Calculator Widget v3 === */
/* Shared component: youlo-self-photo, planes-en-familia, all YOULO plan pages */

.youlo-calculator-v3 {
    width: 100%;
    max-width: 400px;
    min-width: 400px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    font-family: Arial, sans-serif;
    line-height: 1.2;
}

.youlo-calculator-v3 * {
    box-sizing: border-box;
    line-height: 1.2;
}

/* Header */
.youlo-header-v3 {
    background: linear-gradient(135deg, #ddc640, #f0d75c);
    padding: 20px 20px 15px 20px;
    text-align: center;
    border-radius: 24px 24px 0 0;
}

/* Price Display */
.youlo-price-box-v3 {
    background: transparent;
    border-radius: 16px;
    padding: 15px;
}

.youlo-price-label-v3 {
    font-size: 13px;
    color: #292929;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.youlo-price-main-v3 {
    font-size: 48px;
    font-weight: 800;
    color: #292929;
    line-height: 1;
    margin: 0;
}

.youlo-price-breakdown-v3 {
    font-size: 14px;
    color: #292929;
    margin-top: 3px;
    line-height: 1.2;
    opacity: 0.8;
}

/* Body */
.youlo-body-v3 {
    padding: 18px 20px 20px 20px;
}

/* Slider Section */
.youlo-slider-section-v3 {
    margin-bottom: 20px;
}

.youlo-section-title-with-help {
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.youlo-section-title-v3 {
    font-size: 15px;
    font-weight: 600;
    color: #292929;
    text-align: center;
    margin-bottom: 12px;
    line-height: 1;
}

/* Help tooltips */
.youlo-help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    background: #ddd;
    border-radius: 50%;
    color: #666;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    transform: translateY(-7px);
    animation: subtle-pulse 3s ease-in-out infinite;
}

.youlo-help-icon::before {
    content: '?';
}

.youlo-help-icon:hover {
    background: #ddc640;
    color: white;
    animation: none;
    transform: translateY(-7px) scale(1.1);
}

@keyframes subtle-pulse {
    0%, 90%, 100% {
        transform: translateY(-7px) scale(1);
        box-shadow: 0 0 0 0 rgba(221, 198, 64, 0);
    }
    5% {
        transform: translateY(-7px) scale(1.05);
        box-shadow: 0 0 0 3px rgba(221, 198, 64, 0.2);
    }
}

.youlo-tooltip {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.4;
    width: 220px;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    text-align: left;
}

#people-help .youlo-tooltip {
    transform: translateX(-80%);
}

.youlo-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
}

.youlo-help-icon.active .youlo-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Slider */
.youlo-slider-wrapper-v3 {
    position: relative;
    height: 50px;
    margin: 15px 0;
}

.youlo-track-v3 {
    position: absolute;
    width: 100%;
    height: 10px;
    background: #e0e0e0;
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
}

.youlo-progress-v3 {
    position: absolute;
    height: 10px;
    background: linear-gradient(90deg, #ddc640, #f0d75c);
    border-radius: 5px;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
    width: 21.4%;
    transition: width 0.3s ease;
}

.youlo-invisible-slider-v3 {
    position: absolute;
    width: 100%;
    height: 50px;
    top: 0;
    -webkit-appearance: none;
    background: transparent;
    outline: none;
    cursor: pointer;
    opacity: 0;
    z-index: 3;
}

.youlo-circle-v3 {
    position: absolute;
    width: 50px;
    height: 50px;
    background: #292929;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    font-weight: bold;
    top: 50%;
    transform: translate(-50%, -50%);
    left: 21.4%;
    transition: left 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 2;
}

/* Duration Section */
.youlo-duration-section-v3 {
    margin-bottom: 20px;
}

.youlo-duration-options-v3 {
    display: flex;
    gap: 10px;
    justify-content: center;
}

.youlo-duration-option-v3 {
    position: relative;
    flex: 1;
}

.youlo-duration-option-v3 input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.youlo-duration-label-v3 {
    display: block;
    padding: 14px 10px;
    background: #f8f8f8;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 15px;
    font-weight: 600;
    color: #666;
}

.youlo-duration-label-v3.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.youlo-duration-option-v3 input[type="radio"]:checked + .youlo-duration-label-v3 {
    background: #292929;
    color: white;
    border-color: #292929;
}

.youlo-duration-option-v3 input[type="radio"]:not(:checked) + .youlo-duration-label-v3:hover:not(.disabled) {
    border-color: #ddc640;
    background: #fafafa;
}

/* Colors Section */
.youlo-colors-section-v3 {
    margin-bottom: 20px;
}

.youlo-color-room-v3 {
    margin-bottom: 15px;
}

.youlo-room-label-v3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 6px;
    transition: opacity 0.3s ease;
    line-height: 1.2;
}

.youlo-room-label-v3.disabled {
    opacity: 0.4;
}

.youlo-room-comment-v3 {
    color: #999;
}

.youlo-color-options-v3 {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.youlo-color-option-v3 {
    position: relative;
}

.youlo-color-option-v3 input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.youlo-color-circle-v3 {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(0, 0, 0, 0.08);
    position: relative;
    overflow: hidden;
}

.youlo-color-circle-v3.disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.youlo-color-option-v3 input[type="radio"]:checked + .youlo-color-circle-v3 {
    border: 2px solid #292929;
    transform: scale(1.15);
}

.youlo-color-option-v3 input[type="radio"]:checked + .youlo-color-circle-v3::before {
    content: '\2713';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    font-weight: bold;
    color: #292929;
    text-shadow: 0 0 4px rgba(255, 255, 255, 0.8);
    z-index: 1;
}

/* Christmas colors indicator */
.youlo-color-circle-v3.christmas-color::after {
    content: '\2744';
    position: absolute;
    top: 2px;
    right: 2px;
    font-size: 14px;
    color: white;
    opacity: 0.8;
    z-index: 2;
    text-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
}

.youlo-color-option-v3 input[type="radio"]:checked + .youlo-color-circle-v3.christmas-color::after {
    display: none;
}

/* Button */
.youlo-action-v3 {
    width: 100% !important;
    background: #292929 !important;
    color: white !important;
    border: none !important;
    border-radius: 16px !important;
    padding: 17px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    font-family: Arial, sans-serif !important;
    margin-top: 20px !important;
}

.youlo-action-v3:hover {
    background: #3a3a3a !important;
    transform: translateY(-2px) !important;
    color: white !important;
}

.youlo-footer-v3 {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 12px;
}

/* Mobile */
@media (max-width: 480px) {
    .youlo-calculator-v3 {
        border-radius: 16px;
        min-width: 0;
    }
    .youlo-header-v3 {
        border-radius: 16px 16px 0 0;
    }
}
