/* =========================================
   CALCULADORA.CSS // MOTOR B2B
   ========================================= */
.seccion-calculadora { background-color: #01060b; padding: 100px 5% 120px 5%; min-height: 100vh; border-top: 1px dashed rgba(255, 255, 255, 0.1); }
.header-calculadora { text-align: center; margin-bottom: 60px; }
.titulo-calculadora { font-family: var(--font-display); font-size: 36px; color: white; letter-spacing: 5px; margin: 15px 0; }
.desc-calculadora { font-family: var(--font-text); font-size: 14px; color: #aaa; max-width: 800px; margin: 0 auto; line-height: 1.6; }
.dashboard-calculadora { display: grid; grid-template-columns: 1.5fr 400px; gap: 50px; max-width: 1400px; margin: 0 auto; align-items: start; }

/* CONTROLES IZQUIERDOS */
.panel-entradas { background: linear-gradient(180deg, rgba(10,10,15,0.8) 0%, rgba(5,5,5,0.9) 100%); border: 1px solid rgba(255,255,255,0.05); padding: 40px; border-radius: 4px; }
.selector-modulos { display: flex; flex-wrap: wrap; gap: 10px; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 40px; padding-bottom: 10px; }
.btn-modulo { background: transparent; border: none; color: #555; font-family: var(--font-display); font-size: 12px; letter-spacing: 1px; padding: 10px 15px; cursor: pointer; border-bottom: 2px solid transparent; transition: all 0.3s ease; }
.btn-modulo:hover { color: #aaa; }
.btn-modulo.activo { color: var(--neon-yellow); border-bottom-color: var(--neon-yellow); text-shadow: 0 0 10px rgba(255,234,0,0.3); }
.formulario-modulo { display: none; animation: fadeTerminal 0.5s ease; }
.formulario-modulo.activo { display: block; }
@keyframes fadeTerminal { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.formulario-modulo h3 { font-family: var(--font-display); font-size: 16px; color: white; letter-spacing: 2px; margin-bottom: 30px; border-left: 3px solid var(--neon-yellow); padding-left: 15px; }

/* INPUTS DE CALCULADORA AISLADOS */
.grid-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-bottom: 40px; }
.ancho-completo { grid-column: 1 / -1; }
.seccion-calculadora .input-grupo { position: relative; display: flex; flex-direction: column; margin-top: 0; margin-bottom: 0;}
.seccion-calculadora .input-grupo label { display: block; font-family: var(--font-display); font-size: 10px; color: var(--tech-gray); letter-spacing: 1px; margin-bottom: 10px; position: static; pointer-events: auto;}
.seccion-calculadora .input-grupo input, .seccion-calculadora .input-grupo select { width: 100%; height: auto; background-color: rgba(0,0,0,0.6); border: 1px solid rgba(255,255,255,0.1); color: white; font-family: var(--font-text); font-size: 14px; padding: 15px; box-sizing: border-box; transition: 0.3s; }
.seccion-calculadora .input-grupo input:focus, .seccion-calculadora .input-grupo select:focus { outline: none; border-color: var(--neon-yellow); box-shadow: inset 0 0 10px rgba(255,234,0,0.05); }
.seccion-calculadora .input-grupo select { cursor: pointer; appearance: none; }

.panel-ejecucion { border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 30px; }
.btn-procesar { width: 100%; background-color: var(--neon-yellow); color: black; border: none; font-family: var(--font-display); font-size: 16px; letter-spacing: 3px; padding: 20px; cursor: pointer; font-weight: bold; transition: 0.3s; }
.btn-procesar:hover { background-color: white; transform: translateY(-2px); box-shadow: 0 10px 20px rgba(255,234,0,0.2); }

/* TICKET DE RESULTADOS DERECHO */
.panel-resultados { background: #020b14; border: 1px solid rgba(255,255,255,0.05); border-top: 3px solid var(--neon-yellow); padding: 30px; position: sticky; top: 100px; box-shadow: -10px 0 30px rgba(0,0,0,0.5); }
.ticket-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 20px; margin-bottom: 30px; }
.ticket-header h4 { font-family: var(--font-display); font-size: 14px; color: white; letter-spacing: 2px; margin: 0; }
.status-calculo { font-family: var(--font-display); font-size: 10px; color: var(--tech-gray); letter-spacing: 1px; animation: parpadeo 2s infinite; }
@keyframes parpadeo { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.ticket-cuerpo { min-height: 250px; margin-bottom: 30px; }
.estado-vacio { text-align: center; margin-top: 50px; }
.icono-radar { width: 50px; height: 50px; border: 2px dashed #333; border-radius: 50%; margin: 0 auto 20px auto; animation: giroRadar 4s linear infinite; }
@keyframes giroRadar { 100% { transform: rotate(360deg); } }
.estado-vacio p { font-family: var(--font-text); font-size: 12px; color: #666; line-height: 1.6; }

/* ESTILOS DEL TICKET GENERADO POR JS */
.ticket-seccion { background: rgba(0,0,0,0.4); border-left: 3px solid var(--tech-gray); padding: 15px; margin-bottom: 15px; }
.ticket-seccion.destacada { border-left-color: var(--neon-yellow); background: linear-gradient(90deg, rgba(255,234,0,0.05) 0%, transparent 100%); }
.ticket-seccion h5 { font-family: var(--font-display); font-size: 11px; color: var(--tech-gray); letter-spacing: 2px; margin-bottom: 10px; }
.ticket-seccion p { font-family: var(--font-text); font-size: 12px; color: #ccc; margin-bottom: 5px; line-height: 1.4; }
.resultado-grande { font-family: var(--font-display); font-size: 32px; color: white; text-shadow: 0 0 10px rgba(255,255,255,0.2); margin-bottom: 5px;}
.resultado-grande small { font-size: 14px; color: var(--neon-yellow); }
.resultado-mediano { font-family: var(--font-display); font-size: 18px; color: var(--neon-yellow); margin-bottom: 5px;}

.ticket-footer { border-top: 1px dashed rgba(255,255,255,0.1); padding-top: 20px; }
.ticket-footer p { font-family: var(--font-text); font-size: 10px; color: #555; margin-bottom: 20px; }
.acciones-ticket { display: flex; gap: 15px; }
.btn-ticket { flex: 1; text-align: center; padding: 12px; font-family: var(--font-display); font-size: 11px; letter-spacing: 1px; cursor: pointer; transition: 0.3s; text-decoration: none; display: block; }
.btn-pdf { background: transparent; border: 1px solid var(--tech-gray); color: #888; }
.btn-pdf:hover:not([disabled]) { border-color: white; color: white; }
.btn-cotizar { background: rgba(255,234,0,0.1); border: 1px solid var(--neon-yellow); color: var(--neon-yellow); }
.btn-cotizar:hover { background: var(--neon-yellow); color: black; }

@media (max-width: 1000px) {
    .dashboard-calculadora { grid-template-columns: 1fr; }
    .panel-resultados { position: static; margin-top: 30px; }
    .grid-inputs { grid-template-columns: 1fr; }
}