/* Calculadora Aerotermia Styles */
.cat-container {
    max-width: 720px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.cat-header {
    background: white;
    border-radius: 12px 12px 0 0;
    padding: 24px;
    border-bottom: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cat-title {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 8px 0;
}

.cat-icon {
    color: #10b981;
}

.cat-subtitle {
    color: #6b7280;
    margin: 0 0 24px 0;
}

/* Progress Bar */
.cat-progress {
    margin-top: 24px;
}

.cat-progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 8px;
}

.cat-progress-bar {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.cat-progress-fill {
    height: 100%;
    background: linear-gradient(to right, #3b82f6, #10b981);
    border-radius: 999px;
    width: 33.33%;
    transition: width 0.3s ease;
}

/* Form Steps */
.cat-form {
    background: white;
    padding: 24px;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.cat-step {
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.cat-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.cat-step-icon {
    font-size: 24px;
}

.cat-step-header h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

/* Field Groups */
.cat-field-group {
    margin-bottom: 24px;
}

.cat-field-group label {
    display: block;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

.cat-value {
    color: #3b82f6;
    font-weight: 700;
}

/* Slider */
.cat-slider {
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: #e5e7eb;
    outline: none;
    -webkit-appearance: none;
}

.cat-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cat-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #3b82f6;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cat-slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6b7280;
    margin-top: 4px;
}

/* Radio Cards */
.cat-radio-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cat-radio-card {
    cursor: pointer;
}

.cat-radio-card input {
    display: none;
}

.cat-radio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
    text-align: center;
}

.cat-radio-card input:checked + .cat-radio-content {
    border-color: #3b82f6;
    background: #eff6ff;
}

.cat-radio-icon {
    font-size: 28px;
    margin-bottom: 4px;
}

.cat-radio-label {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* Radio List */
.cat-radio-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cat-radio-item {
    cursor: pointer;
}

.cat-radio-item input {
    display: none;
}

.cat-radio-item-content {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cat-radio-item input:checked + .cat-radio-item-content {
    border-color: #3b82f6;
    background: #eff6ff;
}

.cat-radio-item-icon {
    font-size: 24px;
    margin-right: 12px;
}

.cat-radio-item-title {
    flex: 1;
    font-weight: 500;
    color: #374151;
}

.cat-radio-item-desc {
    font-size: 14px;
    color: #6b7280;
    margin-top: 2px;
}

.cat-radio-check {
    color: #3b82f6;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.cat-radio-item input:checked + .cat-radio-item-content .cat-radio-check {
    opacity: 1;
}

/* Quality Cards */
.cat-quality-options {
    display: grid;
    gap: 16px;
}

.cat-quality-card {
    cursor: pointer;
    position: relative;
}

.cat-quality-card input {
    display: none;
}

.cat-quality-content {
    padding: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.cat-quality-card input:checked + .cat-quality-content,
.cat-quality-card input:checked ~ .cat-quality-content {
    border-color: #3b82f6;
    background: #eff6ff;
}

.cat-quality-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cat-quality-title {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
}

.cat-quality-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cat-quality-features li {
    font-size: 14px;
    color: #4b5563;
    margin-bottom: 4px;
}

.cat-badge {
    position: absolute;
    top: -8px;
    right: 16px;
    background: #f97316;
    color: white;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 999px;
    font-weight: 600;
}

/* Buttons */
.cat-buttons {
    display: flex;
    gap: 12px;
    margin-top: 32px;
}

.cat-btn {
    flex: 1;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cat-btn-primary {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.cat-btn-primary:hover {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.cat-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.cat-btn-secondary:hover {
    background: #e5e7eb;
}

.cat-btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.cat-btn-success:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.cat-btn-large {
    width: 100%;
    padding: 16px;
    font-size: 18px;
}

.cat-btn-whatsapp {
    background: #25d366;
    color: white;
    text-decoration: none;
}

.cat-btn-whatsapp:hover {
    background: #128c7e;
}

.cat-btn-link {
    background: none;
    border: none;
    color: #3b82f6;
    font-weight: 500;
    cursor: pointer;
    padding: 8px;
    transition: color 0.2s ease;
}

.cat-btn-link:hover {
    color: #2563eb;
}

/* Result Section */
.cat-result {
    background: white;
    padding: 32px 24px;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

.cat-result-header {
    text-align: center;
    margin-bottom: 24px;
}

.cat-success-icon {
    display: inline-block;
    width: 64px;
    height: 64px;
    background: #d1fae5;
    border-radius: 50%;
    font-size: 32px;
    line-height: 64px;
    margin-bottom: 16px;
}

.cat-result-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
    margin: 0;
}

.cat-price-box {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    margin-bottom: 24px;
}

.cat-price-range {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.cat-price-note {
    opacity: 0.9;
}

.cat-breakdown {
    background: #f9fafb;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cat-breakdown h3 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 12px 0;
}

.cat-breakdown-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cat-breakdown-item {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #4b5563;
}

.cat-breakdown-item span:last-child {
    font-weight: 500;
}

.cat-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 12px 16px;
    border-radius: 8px;
    color: #92400e;
    font-size: 14px;
    margin-bottom: 20px;
}

.cat-config-summary {
    background: #eff6ff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cat-config-summary h3 {
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    margin: 0 0 8px 0;
}

.cat-config-summary p {
    font-size: 14px;
    color: #4b5563;
    margin: 0;
}

.cat-commercial {
    background: linear-gradient(135deg, #f0fdf4, #eff6ff);
    border: 1px solid #86efac;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cat-commercial h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1f2937;
    margin: 0 0 12px 0;
}

.cat-commercial p {
    color: #4b5563;
    margin: 0 0 16px 0;
}

.cat-trust {
    font-size: 14px;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Contact Form */
.cat-contact-form {
    background: #f9fafb;
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 24px;
}

.cat-contact-form h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
}

.cat-form-row {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

@media (min-width: 640px) {
    .cat-form-row:first-of-type {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cat-contact-form input {
    padding: 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 16px;
}

.cat-contact-form input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.cat-alternative-cta {
    margin-top: 12px;
}

.cat-alternative-cta .cat-btn {
    width: 100%;
}

.cat-trust-badges {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid #e5e7eb;
    font-size: 12px;
    color: #6b7280;
}

.cat-trust-badges p {
    margin: 4px 0;
}

/* Responsive */
@media (max-width: 639px) {
    .cat-radio-grid {
        grid-template-columns: 1fr;
    }
    
    .cat-price-range {
        font-size: 28px;
    }
    
    .cat-buttons {
        flex-direction: column;
    }
    
    .cat-btn {
        width: 100%;
    }
}

/* Loading State */
.cat-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Message */
.cat-success-message {
    background: #d1fae5;
    color: #065f46;
    padding: 16px;
    border-radius: 8px;
    margin-top: 16px;
    text-align: center;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}