/* =========================================
   ESTILOS GLOBALES CONSTRUCTORA
   ========================================= */

/* Contenedor General */
.cc-wrap {
    max-width: 1200px;
    margin: 20px auto;
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #333;
}

/* Tarjetas y Contenedores */
.cc-card {
    background: #fff;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

/* =========================================
   SISTEMA DE PESTAÑAS (CONFIGURADOR)
   ========================================= */
.cc-tabs-nav {
    display: flex;
    border-bottom: 2px solid #0073aa;
    margin-bottom: 20px;
}
.cc-tab-link {
    padding: 10px 20px;
    cursor: pointer;
    background: #f8f9fa;
    border: 1px solid #ddd;
    border-bottom: none;
    margin-right: 4px;
    border-radius: 4px 4px 0 0;
    font-weight: 500;
}
.cc-tab-link.active {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}
.cc-tab-content { display: none; }
.cc-tab-content.active { display: block; animation: fadeIn 0.3s; }

/* =========================================
   FORMULARIOS & INPUTS
   ========================================= */
.cc-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.cc-col { flex: 1; min-width: 200px; }
.cc-input-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 14px;
}
.cc-input-group input[type="text"],
.cc-input-group input[type="number"],
.cc-input-group input[type="email"],
.cc-input-group select,
.cc-input-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

/* Botones */
.cc-btn {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
    text-decoration: none;
    transition: background 0.2s;
}
.cc-btn:hover { background: #005177; }
.cc-btn-danger { background: #d63638; }
.cc-btn-success { background: #00a32a; }

/* =========================================
   TABLAS DE DATOS (COTIZACIONES / MATERIALES)
   ========================================= */
.cc-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    font-size: 14px;
}
.cc-table th, .cc-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}
.cc-table th {
    background-color: #f8f9fa;
    font-weight: 700;
    color: #444;
    border-top: 2px solid #ddd;
}
.cc-table tr:hover { background-color: #fcfcfc; }

/* =========================================
   INVOICE / FACTURA (ESTILO FINAL)
   ========================================= */
.cc-invoice-box {
    border: 1px solid #eee;
    padding: 30px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    background: #fff;
    margin-top: 20px;
}
.cc-invoice-header {
    display: flex;
    justify-content: space-between;
    border-bottom: 2px solid #333;
    padding-bottom: 20px;
    margin-bottom: 20px;
}
.cc-invoice-total-section {
    margin-top: 30px;
    text-align: right;
    font-size: 18px;
}
.cc-total-line { font-weight: bold; font-size: 22px; color: #0073aa; }

/* =========================================
   WIZARD / STEP BY STEP (CALCULADORA)
   ========================================= */
.cc-step-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}
.cc-step-bubble {
    width: 30px;
    height: 30px;
    background: #ddd;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    color: #666;
    position: relative;
    z-index: 2;
}
.cc-step-bubble.active {
    background: #0073aa;
    color: #fff;
}
.cc-step-line {
    position: absolute;
    top: 15px;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ddd;
    z-index: 1;
}

/* Ocultar pasos no activos */
.cc-step-content { display: none; }
.cc-step-content.active { display: block; }

/* Animación */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}