/* === Cotizador v2.0 === */

.tc-cotizador-section {
    background: var(--tc-bg);
    padding: var(--tc-section-py) 0;
}

.tc-cotizador-container {
    position: relative;
    z-index: 1;
}

/* --- Form App --- */
.tc-form-app {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-xl);
    box-shadow: var(--tc-shadow-lg);
    padding: clamp(1.5rem, 4vw, 2.5rem);
}

.tc-form-progress {
    background: var(--tc-bg-dark);
    border-radius: var(--tc-radius-full);
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: var(--tc-space-xl);
    padding: 4px;
}

.tc-form-progress span {
    border-radius: var(--tc-radius-full);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--tc-text-xs);
    font-weight: 700;
    padding: 10px;
    text-align: center;
    transition: all 0.3s ease;
}

.tc-form-progress span.is-active {
    background: var(--tc-surface);
    color: var(--tc-gold);
    font-weight: 800;
}

.tc-form-app.is-sending {
    cursor: wait;
    pointer-events: none;
}

.tc-form-app.is-sending .tc-btn--primary {
    opacity: 0.6;
}

.tc-form-app.is-complete .tc-form-progress span {
    background: rgba(201, 168, 76, 0.15);
    color: var(--tc-gold);
}

/* --- Dropzone --- */
.tc-dropzone {
    background: linear-gradient(135deg, var(--tc-surface-warm), var(--tc-surface));
    border: 2px dashed var(--tc-border-gold);
    border-radius: var(--tc-radius-lg);
    cursor: pointer;
    min-height: 220px;
    overflow: hidden;
    padding: var(--tc-space-2xl) var(--tc-space-lg);
    position: relative;
    text-align: center;
    transition: border-color 0.3s ease, background 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.tc-dropzone:hover,
.tc-dropzone.is-active {
    background: var(--tc-surface-warm);
    border-color: var(--tc-gold);
    border-style: solid;
    box-shadow: var(--tc-shadow-gold);
    transform: translateY(-2px);
}

.tc-dropzone-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: var(--tc-space-sm);
    justify-content: center;
    min-height: 150px;
}

.tc-drop-icon-wrap {
    align-items: center;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid var(--tc-border-gold);
    border-radius: 50%;
    color: var(--tc-gold);
    display: flex;
    height: 64px;
    justify-content: center;
    margin-bottom: var(--tc-space-md);
    width: 64px;
}

.tc-drop-text {
    color: var(--tc-ink);
    display: block;
    font-size: var(--tc-text-lg);
    font-weight: 600;
}

.tc-drop-hint {
    color: var(--tc-ink-muted);
    font-size: var(--tc-text-sm);
}

.tc-file-input {
    cursor: pointer;
    height: 100%;
    inset: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
}

/* --- Form Details --- */
.tc-form-details {
    animation: tcFadeIn 0.4s ease forwards;
    margin-top: var(--tc-space-xl);
}

@keyframes tcFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.tc-file-preview {
    align-items: center;
    background: var(--tc-bg);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    display: flex;
    gap: var(--tc-space-md);
    margin-bottom: var(--tc-space-xl);
    padding: var(--tc-space-md);
}

.tc-file-icon-wrap {
    align-items: center;
    background: var(--tc-surface-warm);
    border: 1px solid var(--tc-border-gold);
    border-radius: var(--tc-radius-sm);
    color: var(--tc-gold);
    display: flex;
    flex: 0 0 40px;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.tc-file-name {
    color: var(--tc-ink);
    font-size: var(--tc-text-sm);
    font-weight: 700;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tc-file-remove {
    align-items: center;
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: 50%;
    color: var(--tc-danger);
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    margin-left: auto;
    transition: background 0.2s ease;
    width: 34px;
}

.tc-file-remove:hover {
    background: rgba(180, 35, 24, 0.08);
}

/* --- Form Fields --- */
.tc-form-grid {
    display: grid;
    gap: var(--tc-space-md);
    grid-template-columns: 1fr 1fr;
    margin-bottom: var(--tc-space-md);
}

.tc-form-group {
    margin-bottom: var(--tc-space-md);
}

.tc-form-group label {
    color: var(--tc-ink-soft);
    display: block;
    font-size: var(--tc-text-sm);
    font-weight: 700;
    margin-bottom: 8px;
}

.tc-form-group input[type="text"],
.tc-form-group input[type="tel"],
.tc-form-group select {
    background: var(--tc-surface);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    color: var(--tc-ink);
    min-height: 52px;
    padding: 0 16px;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tc-form-group input:focus,
.tc-form-group select:focus {
    border-color: var(--tc-gold);
    box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.12);
    outline: none;
}

/* --- Switch --- */
.tc-switch-group {
    align-items: center;
    background: var(--tc-bg);
    border: 1px solid var(--tc-border);
    border-radius: var(--tc-radius-md);
    display: flex;
    gap: var(--tc-space-md);
    padding: var(--tc-space-md);
}

.tc-switch {
    display: inline-block;
    flex: 0 0 50px;
    height: 28px;
    position: relative;
    width: 50px;
}

.tc-switch input {
    height: 0;
    opacity: 0;
    width: 0;
}

.tc-slider {
    background: var(--tc-border-strong);
    border-radius: var(--tc-radius-full);
    cursor: pointer;
    inset: 0;
    position: absolute;
    transition: 0.25s;
}

.tc-slider::before {
    background: #fff;
    border-radius: 50%;
    bottom: 4px;
    content: "";
    height: 20px;
    left: 4px;
    position: absolute;
    transition: 0.25s;
    width: 20px;
}

.tc-switch input:checked + .tc-slider {
    background: var(--tc-gold);
}

.tc-switch input:checked + .tc-slider::before {
    transform: translateX(22px);
}

.tc-switch-label {
    color: var(--tc-ink-soft);
    font-size: var(--tc-text-sm);
    font-weight: 700;
}

/* --- Submit --- */
.tc-form-submit {
    margin-top: var(--tc-space-xl);
}

.tc-form-msg {
    display: block;
    font-size: var(--tc-text-sm);
    margin-top: 12px;
    text-align: center;
}

.tc-form-msg.success {
    color: var(--tc-success);
}

.tc-form-msg.error {
    color: var(--tc-danger);
}

/* --- Responsive --- */
@media (max-width: 640px) {
    .tc-form-grid {
        grid-template-columns: 1fr;
    }
}
