@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=DM+Serif+Display&display=swap');

  /* ── Variables de diseño ── */
  :root {
    --naranja: #C05C1A;
    --naranja-claro: #E07A40;
    --naranja-palido: #FDF0E8;
    --azul: #2B6CB0;
    --azul-palido: #EBF4FF;
    --gris: #F9F6F3;
    --gris-texto: #666;
    --negro: #1a1a1a;
    --blanco: #ffffff;
    --borde: #EDDED4;
    --sombra: 0 2px 12px rgba(192,92,26,0.09);
    --error: #e74c3c;
    --error-palido: #fff5f5;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }

  body {
    font-family: 'DM Sans', sans-serif;
    background: var(--gris);
    color: var(--negro);
    min-height: 100vh;
  }

  /* ── Header ── */
  header {
    background: var(--naranja);
    color: white;
    padding: 20px 24px 16px;
    text-align: center;
  }
  header h1 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    letter-spacing: 0.01em;
  }
  header p { font-size: 0.85rem; opacity: 0.8; margin-top: 4px; }

  /* ── Tabs de navegación ── */
  .nav-tabs {
    display: flex;
    background: var(--naranja);
    border-top: 1px solid rgba(255,255,255,0.15);
    overflow-x: auto;
  }
  .nav-tab {
    flex: 1;
    min-width: 80px;
    padding: 10px 8px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.65);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border-bottom: 3px solid transparent;
  }
  .nav-tab.active {
    color: white;
    border-bottom-color: var(--azul);
    background: rgba(255,255,255,0.08);
  }
  .nav-tab .tab-num { display: block; font-size: 1.1rem; margin-bottom: 2px; }

  /* ── Páginas ── */
  .page { display: none; padding: 16px; }
  .page.active { display: block; }

  /* ── Cards ── */
  .card {
    background: white;
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: var(--sombra);
    border: 1px solid var(--borde);
  }
  .card-title {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--naranja);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1.5px solid var(--naranja-palido);
  }

  /* ── Campos de formulario ── */
  .field-group { margin-bottom: 10px; }
  .field-group label {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--gris-texto);
    margin-bottom: 4px;
  }
  .field-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--borde);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--negro);
    background: var(--gris);
    transition: border-color 0.15s;
  }
  .field-group input:focus { outline: none; border-color: var(--naranja-claro); background: white; }
  /* Estado de error en inputs */
  .field-group input.input-error { border-color: var(--error); background: var(--error-palido); }
  .field-group .error-msg {
    font-size: 0.72rem;
    color: var(--error);
    margin-top: 3px;
    display: none;
  }
  .field-group input.input-error + .error-msg { display: block; }

  /* ── Fila de insumo/servicio ── */
  .row-insumo {
    display: grid;
    grid-template-columns: 1fr 70px 90px;
    gap: 8px;
    margin-bottom: 8px;
    align-items: end;
  }
  .row-insumo input {
    width: 100%;
    padding: 9px 10px;
    border: 1.5px solid var(--borde);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.88rem;
    background: var(--gris);
  }
  .row-insumo input:focus { outline: none; border-color: var(--naranja-claro); background: white; }
  .row-insumo input.input-error { border-color: var(--error); background: var(--error-palido); }

  .col-labels { display: grid; grid-template-columns: 1fr 70px 90px; gap: 8px; margin-bottom: 4px; }
  .col-labels span {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--gris-texto);
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

  /* ── Botones ── */
  .btn-agregar {
    width: 100%;
    padding: 9px;
    background: none;
    border: 1.5px dashed var(--naranja-claro);
    border-radius: 8px;
    color: var(--naranja);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin-top: 4px;
    transition: all 0.15s;
  }
  .btn-agregar:hover { background: var(--naranja-palido); }
  .btn-agregar:disabled { opacity: 0.4; cursor: not-allowed; }

  .total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1.5px solid var(--borde);
  }
  .total-row .label { font-size: 0.85rem; font-weight: 500; color: var(--gris-texto); }
  .total-row .valor { font-size: 1.1rem; font-weight: 600; color: var(--naranja); font-family: 'DM Serif Display', serif; }

  /* ── Cards de resultado ── */
  .resultado-card { border-radius: 14px; padding: 18px; margin-bottom: 14px; }
  .resultado-card.naranja { background: var(--naranja); color: white; }
  .resultado-card.azul { background: var(--azul); color: white; }
  .resultado-card.palido { background: var(--naranja-palido); border: 1px solid #F5C4A0; }
  .resultado-card .res-label { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; margin-bottom: 4px; }
  .resultado-card .res-valor { font-family: 'DM Serif Display', serif; font-size: 2rem; font-weight: 400; line-height: 1.1; }
  .resultado-card.palido .res-valor { color: var(--naranja); }
  .resultado-card .res-desc { font-size: 0.78rem; opacity: 0.7; margin-top: 4px; }

  /* ── Slider de margen ── */
  .slider-container { margin-top: 6px; }
  .slider-container input[type=range] { width: 100%; accent-color: var(--naranja); margin: 8px 0; }
  .slider-labels { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--gris-texto); }

  .margen-display {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--azul-palido);
    border-radius: 8px;
    margin: 10px 0;
  }
  .margen-display .pct { font-size: 1.5rem; font-weight: 600; color: var(--azul); }
  .margen-display .desc { font-size: 0.78rem; color: var(--gris-texto); }

  /* ── Tabla de márgenes ── */
  .tabla-margenes { width: 100%; border-collapse: separate; border-spacing: 0 4px; font-size: 0.82rem; }
  .tabla-margenes thead th {
    background: var(--naranja-palido);
    color: var(--naranja);
    padding: 6px 10px;
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .tabla-margenes thead th:first-child { border-radius: 6px 0 0 6px; }
  .tabla-margenes thead th:last-child { border-radius: 0 6px 6px 0; }
  .tabla-margenes tbody tr td { padding: 7px 10px; background: var(--gris); border-bottom: 1px solid var(--borde); }
  .tabla-margenes tbody tr.highlight td { background: var(--naranja); color: white; font-weight: 600; }
  .tabla-margenes tbody tr td:first-child { border-radius: 6px 0 0 6px; }
  .tabla-margenes tbody tr td:last-child { border-radius: 0 6px 6px 0; }

  /* ── Info box ── */
  .info-box {
    background: var(--azul-palido);
    border-left: 3px solid var(--azul);
    border-radius: 0 8px 8px 0;
    padding: 10px 12px;
    font-size: 0.82rem;
    color: #7a4f1d;
    margin-bottom: 12px;
  }

  /* ── Campo de nombre de producto ── */
  .nombre-prod {
    background: var(--naranja);
    border-radius: 14px;
    padding: 14px 18px;
    color: white;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .nombre-prod .emoji { font-size: 1.5rem; }
  .nombre-prod input {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    padding: 8px 12px;
    color: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    flex: 1;
  }
  .nombre-prod input::placeholder { color: rgba(255,255,255,0.5); }
  .nombre-prod input:focus { outline: none; border-color: white; }

  /* ── Grid de punto de equilibrio ── */
  .equilibrio-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
  .eq-card { border-radius: 12px; padding: 14px; text-align: center; }
  .eq-card.mensual { background: var(--naranja); color: white; }
  .eq-card.diario { background: var(--azul); color: white; }
  .eq-card .eq-num { font-family: 'DM Serif Display', serif; font-size: 2.4rem; font-weight: 400; line-height: 1; }
  .eq-card .eq-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.07em; opacity: 0.8; margin-top: 4px; }
  .eq-card .eq-sub { font-size: 0.75rem; opacity: 0.7; margin-top: 2px; }

  /* ── Botón PDF ── */
  .btn-pdf {
    width: 100%;
    padding: 14px;
    background: var(--azul);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .btn-pdf:hover { background: #1a4f8a; }
  .btn-pdf:disabled { opacity: 0.6; cursor: default; }

  /* ── Botón eliminar fila ── */
  .btn-delete {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1rem;
    padding: 0 2px;
    transition: color 0.15s;
    line-height: 1;
    align-self: center;
  }
  .btn-delete:hover { color: var(--error); }

  .row-insumo-wrap { display: flex; gap: 6px; align-items: end; margin-bottom: 8px; }
  .row-insumo-wrap .row-insumo { flex: 1; margin-bottom: 0; }

  /* ── Campo de producción ── */
  .produccion-field {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: var(--naranja-palido);
    border-radius: 10px;
    margin-bottom: 12px;
  }
  .produccion-field label { font-size: 0.82rem; color: var(--naranja); font-weight: 600; white-space: nowrap; }
  .produccion-field input {
    width: 80px;
    padding: 7px 10px;
    border: 1.5px solid #F5C4A0;
    border-radius: 7px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    text-align: center;
    background: white;
  }
  .produccion-field input:focus { outline: none; border-color: var(--naranja); }
  .produccion-field span { font-size: 0.78rem; color: var(--naranja); opacity: 0.7; }

  /* ── Navegación Anterior / Siguiente ── */
  .nav-steps {
    display: flex;
    gap: 10px;
    margin-top: 6px;
    margin-bottom: 4px;
  }
  .btn-step {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    border: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .btn-step.prev { background: white; border: 1.5px solid var(--borde); color: var(--gris-texto); }
  .btn-step.prev:hover { border-color: var(--naranja-claro); color: var(--naranja); }
  .btn-step.next { background: var(--naranja); color: white; }
  .btn-step.next:hover { background: #974510; }

  /* ── Sección de proyectos ── */
  .btn-guardar {
    width: 100%;
    padding: 13px;
    background: var(--naranja);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .btn-guardar:hover { background: #974510; }

  .btn-secundario {
    flex: 1;
    padding: 10px;
    border: 1.5px solid var(--borde);
    border-radius: 8px;
    background: white;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--gris-texto);
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
  }
  .btn-secundario:hover { background: var(--gris); border-color: var(--naranja-claro); color: var(--naranja); }

  /* ── Item de proyecto en la lista ── */
  .proyecto-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--borde);
    background: white;
    margin-bottom: 8px;
    transition: border-color 0.15s;
  }
  .proyecto-item:hover { border-color: var(--naranja-claro); }
  .proyecto-info { flex: 1; min-width: 0; }
  .proyecto-nombre { font-weight: 600; font-size: 0.92rem; color: var(--negro); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .proyecto-meta { font-size: 0.72rem; color: var(--gris-texto); margin-top: 2px; }
  .proyecto-acciones { display: flex; gap: 6px; flex-shrink: 0; }
  .btn-proyecto-cargar {
    padding: 6px 12px;
    background: var(--naranja-palido);
    border: 1.5px solid #F5C4A0;
    border-radius: 6px;
    color: var(--naranja);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-proyecto-cargar:hover { background: var(--naranja); color: white; border-color: var(--naranja); }
  /* Botón duplicar proyecto */
  .btn-proyecto-duplicar {
    padding: 6px 8px;
    background: none;
    border: 1.5px solid var(--borde);
    border-radius: 6px;
    color: var(--gris-texto);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-proyecto-duplicar:hover { background: var(--azul-palido); border-color: var(--azul); color: var(--azul); }
  .btn-proyecto-eliminar {
    padding: 6px 8px;
    background: none;
    border: 1.5px solid var(--borde);
    border-radius: 6px;
    color: #ccc;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
  }
  .btn-proyecto-eliminar:hover { background: #fff0f0; border-color: var(--error); color: var(--error); }

  /* ── Estado vacío ── */
  .empty-state { text-align: center; padding: 32px 16px; color: var(--gris-texto); font-size: 0.88rem; }
  .empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
  .empty-state p { opacity: 0.7; line-height: 1.5; }

  /* ── Toast de notificaciones ── */
  .toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(60px);
    background: #1a1a1a;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 500;
    z-index: 999;
    opacity: 0;
    transition: all 0.3s;
    white-space: nowrap;
  }
  .toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  /* ── Modal (bottom sheet) ── */
  .modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 100;
    align-items: flex-end;
    justify-content: center;
  }
  .modal-overlay.open { display: flex; }
  .modal {
    background: white;
    border-radius: 18px 18px 0 0;
    padding: 24px 20px 32px;
    width: 100%;
    max-width: 500px;
    animation: slideUp 0.25s ease;
  }
  @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
  .modal h3 { font-family: 'DM Serif Display', serif; font-size: 1.2rem; color: var(--negro); margin-bottom: 14px; }
  .modal input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--borde);
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    color: var(--negro);
    background: var(--gris);
    margin-bottom: 12px;
  }
  .modal input:focus { outline: none; border-color: var(--naranja-claro); background: white; }
  .modal-btns { display: flex; gap: 10px; }
  .modal-btns .btn-guardar { margin-bottom: 0; }
  .btn-cancelar {
    flex: 1;
    padding: 13px;
    background: var(--gris);
    color: var(--gris-texto);
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
  }

  /* ── Modal de compartir ── */
  .share-url-box {
    display: flex;
    gap: 8px;
    align-items: center;
    background: var(--gris);
    border: 1.5px solid var(--borde);
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 12px;
    word-break: break-all;
  }
  .share-url-text { flex: 1; font-size: 0.78rem; color: var(--gris-texto); }
  .btn-copy-url {
    padding: 6px 12px;
    background: var(--naranja);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
  }

  /* ── Indicador de autoguardado ── */
  .autosave-indicator {
    position: fixed;
    top: 10px;
    right: 12px;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    z-index: 50;
    transition: opacity 0.5s;
    pointer-events: none;
  }


  /* ── Badge de límite de filas ── */
  .limite-badge {
    font-size: 0.7rem;
    color: var(--gris-texto);
    text-align: right;
    margin-top: 4px;
    opacity: 0.6;
  }
  .limite-badge.cerca { color: #f0a500; opacity: 1; }
  .limite-badge.lleno { color: var(--error); opacity: 1; }

  /* ── Toggle modo precio / margen ── */
  .btn-modo { flex:1; padding:9px 6px; border:none; font-family:'DM Sans',sans-serif; font-size:0.8rem; font-weight:600; cursor:pointer; transition:all 0.2s; background:var(--gris); color:var(--gris-texto); }
  .btn-modo.active { background:var(--naranja); color:white; }

  /* ── Toggle insumos (estilo Google) ── */
  .card-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
  }
  .card-title-row .card-title { margin-bottom: 0; }
  .switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
  .switch input { opacity: 0; width: 0; height: 0; position: absolute; }
  .switch .slider {
    position: absolute;
    inset: 0;
    background: #ccc;
    border-radius: 26px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .switch input:checked + .slider { background: var(--naranja); }
  .switch .slider::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 3px;
    top: 3px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: transform 0.2s;
  }
  .switch input:checked + .slider::before { transform: translateX(20px); }

  /* Label que aparece cuando los insumos están desactivados */
  .solo-servicios-aviso {
    font-size: 0.82rem;
    color: var(--gris-texto);
    background: var(--gris);
    border-radius: 8px;
    padding: 10px 12px;
    margin-top: 4px;
  }

  /* ── Barra de proyecto activo ── */
  .proyecto-activo-bar {
    display: none;
    background: var(--azul-palido);
    border-bottom: 1px solid #c8def7;
    color: var(--azul);
    font-size: 0.78rem;
    padding: 5px 16px;
    text-align: center;
  }
  .proyecto-activo-bar strong { font-weight: 600; }
  .proyecto-activo-bar .btn-limpiar-barra {
    background: none;
    border: none;
    color: var(--azul);
    font-size: 0.78rem;
    cursor: pointer;
    text-decoration: underline;
    padding: 0 0 0 10px;
    font-family: 'DM Sans', sans-serif;
  }

  /* ── Botón secundario en modal (Guardar como nuevo) ── */
  .btn-guardar-secundario {
    padding: 10px 12px;
    border: 1.5px solid var(--naranja);
    border-radius: 8px;
    background: none;
    color: var(--naranja);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
  }
  .btn-guardar-secundario:hover { background: var(--naranja-palido); }

  /* ── Botón "Nuevo cálculo" ── */
  .btn-nuevo-calculo {
    width: 100%;
    padding: 12px;
    margin-top: 8px;
    background: none;
    border: 1.5px solid var(--borde);
    border-radius: 10px;
    color: var(--gris-texto);
    font-family: 'DM Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
  }
  .btn-nuevo-calculo:hover { border-color: var(--error); color: var(--error); }
  .nav-tab.con-datos .tab-num::after { content: ' ✓'; font-size: 0.7rem; opacity: 0.8; }
  .nav-tab.visitada { opacity: 1; }

  /* ── Botón vaciar por sección ── */
  .btn-vaciar-seccion {
    background: none;
    border: none;
    color: var(--gris-texto);
    font-size: 0.72rem;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 6px;
    opacity: 0.6;
    white-space: nowrap;
    flex-shrink: 0;
    transition: opacity 0.15s, color 0.15s;
  }
  .btn-vaciar-seccion:hover { opacity: 1; color: var(--error); }
  .btn-vaciar-seccion.confirmando { opacity: 1; color: var(--error); border: 1px solid var(--error); border-radius: 6px; }

  /* ── Input numérico de margen ── */
  .margen-num-input { width: 58px; font-size: 1.5rem; font-weight: 600; color: var(--azul); text-align: right; border: 1.5px solid var(--borde); border-radius: 8px; padding: 4px 4px; background: var(--azul-palido); font-family: 'DM Sans', sans-serif; -moz-appearance: textfield; }
  .margen-num-input::-webkit-inner-spin-button, .margen-num-input::-webkit-outer-spin-button { -webkit-appearance: none; }

  /* ── Búsqueda + paginación de proyectos ── */
  .buscar-proyectos { width: 100%; box-sizing: border-box; padding: 8px 12px; border: 1.5px solid var(--borde); border-radius: 8px; font-size: 0.9rem; font-family: 'DM Sans', sans-serif; margin-bottom: 10px; background: var(--fondo); color: var(--texto); }
  .paginacion-proyectos { justify-content: center; align-items: center; gap: 12px; padding-top: 10px; }
  .btn-pag { background: none; border: 1.5px solid var(--borde); border-radius: 6px; padding: 5px 14px; cursor: pointer; font-size: 0.85rem; font-family: 'DM Sans', sans-serif; color: var(--azul); }
  .btn-pag:disabled { opacity: 0.35; cursor: default; }
  .pag-info { font-size: 0.82rem; color: var(--gris-texto); min-width: 70px; text-align: center; }

  /* ── Panel precio de venta (reemplaza inline styles) ── */
  .precio-venta-box { text-align: right; }
  .precio-venta-label { font-size: 0.78rem; color: var(--naranja-claro); }
  .precio-venta-num { font-size: 1.3rem; font-weight: 600; color: var(--naranja-claro); }

  /* ── Toggle IVA ── */
  .iva-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    font-size: 0.82rem;
    color: var(--gris-texto);
  }
  .iva-toggle-wrap input[type=checkbox] { accent-color: var(--naranja); width: 16px; height: 16px; cursor: pointer; }
  .iva-toggle-wrap label { cursor: pointer; }
  .precio-con-iva {
    font-size: 0.82rem;
    color: var(--naranja);
    font-weight: 600;
    margin-top: 6px;
    min-height: 1.2em;
  }

  /* ── Campo meta de ingresos ── */
  .meta-ingresos-label {
    font-size: 0.75rem;
    color: var(--azul);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
  }

  /* ── Desglose de costos ── */
  .desglose-titulo {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gris-texto);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
  }
  .desglose-barra {
    display: flex;
    height: 10px;
    border-radius: 6px;
    overflow: hidden;
    background: var(--borde);
    margin-bottom: 8px;
  }
  .desglose-seg.mat { background: var(--naranja); transition: width 0.4s; }
  .desglose-seg.srv { background: var(--azul); transition: width 0.4s; }
  .desglose-seg.costo    { background: #b0b8c1; transition: width 0.4s; }
  .desglose-seg.ganancia { background: #27ae60; transition: width 0.4s; }
  .desglose-leyenda { display: flex; align-items: center; font-size: 0.78rem; color: var(--gris-texto); }
  .desglose-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
  .desglose-dot.mat      { background: var(--naranja); }
  .desglose-dot.srv      { background: var(--azul); }
  .desglose-dot.costo    { background: #b0b8c1; }
  .desglose-dot.ganancia { background: #27ae60; }

  /* ── Resumen de contenido (reemplaza inline style) ── */
  .resumen-contenido { font-size: 0.88rem; line-height: 1.8; color: #444; }

  /* ── Botón compartir (variante azul, reemplaza inline style) ── */
  .btn-compartir {
    width: 100%;
    padding: 13px;
    background: var(--azul);
    color: white;
    border: none;
    border-radius: 10px;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 10px;
  }
  .btn-compartir:hover { background: #1a4f8a; }
