    :root {
      --bg-cream: #F2EDE4;
      --bg-card: #FAF7F0;
      --bg-pill-idle: #EAE4D7;
      --bg-soft-yellow: #FEF9C3;
      --bg-soft-mint: #D1FAE5;
      --bg-soft-coral: #FFE4E6;
      --bg-soft-sky: #E0F2FE;
      --ink: #1E293B;
      --ink-muted: #475569;
      --yellow: #FACC15;
      --mint: #34D399;
      --emerald-btn: #059669;
      --coral: #FB7185;
      --sky: #38BDF8;
      --border: 2px solid #1E293B;
      --border-thick: 3px solid #1E293B;
      --shadow: 4px 4px 0px #1E293B;
      --shadow-sm: 2px 2px 0px #1E293B;
      --shadow-lg: 6px 6px 0px #1E293B;
      --radius-sm: 12px;
      --radius-md: 18px;
      --radius-lg: 24px;
      --font-display: 'Fredoka', system-ui, -apple-system, sans-serif;
      --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    }

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

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: var(--bg-cream);
      background-image: radial-gradient(#D5CFC2 1px, transparent 1px);
      background-size: 24px 24px;
      color: var(--ink);
      font-family: var(--font-body);
      line-height: 1.5;
      min-height: 100vh;
      overflow-x: hidden;
    }

    .container {
      width: 100%;
      max-width: 1120px;
      margin: 0 auto;
      padding: 0 16px;
    }

    /* Header Neobrutalista Cálido */
    .top-bar {
      background: var(--bg-card);
      border-bottom: var(--border-thick);
      padding: 14px 0;
      position: sticky;
      top: 0;
      z-index: 90;
    }

    .top-bar-inner {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-wrap: wrap;
    }

    .brand {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      text-decoration: none;
      color: var(--ink);
    }

    .brand-logo-box {
      width: 42px;
      height: 42px;
      background: var(--yellow);
      border: var(--border);
      border-radius: 12px;
      box-shadow: var(--shadow-sm);
      display: grid;
      place-items: center;
      font-size: 1.35rem;
      transform: rotate(-3deg);
    }

    .brand-title {
      font-family: var(--font-display);
      font-size: 1.45rem;
      font-weight: 700;
      letter-spacing: -0.02em;
    }

    .brand-title span {
      background: var(--mint);
      padding: 0 6px;
      border-radius: 6px;
      border: 1.5px solid var(--ink);
    }

    .header-house-btn {
      font-family: var(--font-display);
      font-size: 0.92rem;
      font-weight: 700;
      background: var(--bg-soft-yellow);
      color: var(--ink);
      text-decoration: none;
      border: var(--border);
      padding: 6px 14px;
      border-radius: 999px;
      box-shadow: var(--shadow-sm);
      display: inline-flex;
      align-items: center;
      gap: 6px;
      transition: transform 0.1s ease, background 0.12s ease;
    }

    .header-house-btn:hover {
      background: var(--yellow);
      transform: translateY(-1px);
    }

    .header-house-btn:active {
      transform: translate(2px, 2px);
      box-shadow: none;
    }

    /* Selector de País con Banderas Grandes */
    .country-strip {
      margin-top: 18px;
      background: var(--bg-card);
      border: var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow);
      padding: 14px 16px;
    }

    .country-strip-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 10px;
    }

    .country-strip-title {
      font-family: var(--font-display);
      font-size: 1.02rem;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .edit-rate-btn {
      background: var(--bg-soft-yellow);
      border: 1.5px solid var(--ink);
      border-radius: 999px;
      padding: 4px 12px;
      font-family: inherit;
      font-size: 0.78rem;
      font-weight: 800;
      color: var(--ink);
      cursor: pointer;
      box-shadow: 2px 2px 0px var(--ink);
      transition: transform 0.1s ease;
    }

    .edit-rate-btn:active {
      transform: translate(2px, 2px);
      box-shadow: none;
    }

    .country-buttons-scroll {
      display: flex;
      gap: 8px;
      overflow-x: auto;
      padding-bottom: 6px;
      -webkit-overflow-scrolling: touch;
    }

    .country-pill {
      flex: 0 0 auto;
      background: var(--bg-pill-idle);
      border: var(--border);
      border-radius: 12px;
      padding: 8px 13px;
      font-family: inherit;
      font-size: 0.86rem;
      font-weight: 800;
      color: var(--ink);
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: 7px;
      box-shadow: var(--shadow-sm);
      transition: all 0.12s ease;
    }

    .country-pill:hover {
      transform: translateY(-1px);
      background: var(--bg-soft-yellow);
    }

    .country-pill.active {
      background: var(--yellow);
      transform: translate(2px, 2px);
      box-shadow: none;
    }

    .custom-rate-drawer {
      display: none;
      margin-top: 12px;
      padding-top: 12px;
      border-top: 2px dashed #CBD5E1;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      font-size: 0.88rem;
      font-weight: 700;
    }

    .custom-rate-drawer.open {
      display: flex;
    }

    .custom-rate-input {
      width: 110px;
      padding: 6px 10px;
      border: var(--border);
      border-radius: 8px;
      font-family: inherit;
      font-weight: 800;
      font-size: 0.95rem;
      background: var(--bg-card);
    }

    /* Hero Amigable + Guía Rápida de 3 Pasos */
    .hero-block {
      text-align: center;
      padding: 24px 0 16px;
    }

    .hero-h1 {
      font-family: var(--font-display);
      font-size: clamp(1.7rem, 4.2vw, 2.55rem);
      line-height: 1.15;
      margin-bottom: 8px;
    }

    .hero-h1 mark {
      background: var(--yellow);
      padding: 0 10px;
      border-radius: 10px;
      border: var(--border);
      box-shadow: var(--shadow-sm);
      display: inline-block;
      transform: rotate(-1deg);
    }

    .hero-sub {
      font-size: 1rem;
      color: var(--ink-muted);
      font-weight: 600;
      max-width: 680px;
      margin: 0 auto 16px;
    }

    .steps-guide-grid {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 10px;
      max-width: 880px;
      margin: 0 auto;
      text-align: left;
    }

    @media (max-width: 720px) {
      .steps-guide-grid {
        grid-template-columns: 1fr;
      }
    }

    .step-mini-box {
      background: var(--bg-card);
      border: var(--border);
      border-radius: var(--radius-sm);
      padding: 10px 14px;
      box-shadow: var(--shadow-sm);
      font-size: 0.85rem;
      font-weight: 700;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .step-badge-num {
      background: var(--yellow);
      border: 1.5px solid var(--ink);
      border-radius: 8px;
      padding: 3px 8px;
      font-family: var(--font-display);
      font-size: 0.8rem;
      font-weight: 700;
      white-space: nowrap;
      flex-shrink: 0;
    }

    .step-mini-box.step-green .step-badge-num {
      background: var(--mint);
    }

    /* Pestañas Principales Grandes */
    .main-tabs {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 12px;
      margin: 18px 0 24px;
    }

    .main-tab-btn {
      background: var(--bg-card);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      font-family: var(--font-display);
      font-size: clamp(0.95rem, 2.5vw, 1.18rem);
      font-weight: 700;
      color: var(--ink);
      cursor: pointer;
      box-shadow: var(--shadow);
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.12s ease;
    }

    .main-tab-btn:hover {
      background: var(--bg-soft-yellow);
    }

    .main-tab-btn.active {
      background: var(--mint);
      transform: translate(2px, 2px);
      box-shadow: 2px 2px 0px var(--ink);
    }

    .tab-section {
      display: none;
    }

    .tab-section.active {
      display: block;
    }

    /* Selector Rápido de Electrodomésticos (Carrusel de Botones Ilustrados) */
    .appliance-picker-title {
      font-family: var(--font-display);
      font-size: 1.15rem;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .appliance-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
      gap: 10px;
      margin-bottom: 24px;
    }

    @media (max-width: 780px) {
      .appliance-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    .app-card-btn {
      background: var(--bg-card);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 12px 10px;
      cursor: pointer;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 6px;
      font-family: inherit;
      font-weight: 800;
      font-size: 0.88rem;
      color: var(--ink);
      transition: all 0.12s ease;
      text-align: center;
    }

    .app-card-btn:hover {
      transform: translateY(-2px);
      background: var(--bg-soft-yellow);
    }

    .app-card-btn.active {
      background: var(--yellow);
      transform: translate(3px, 3px);
      box-shadow: 1px 1px 0px var(--ink);
    }

    .app-card-emoji {
      font-size: 1.65rem;
      line-height: 1;
    }

    /* Layout Principal de la Calculadora: Escenario + Preguntas | Recibo en Vivo */
    .workspace-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 24px;
      align-items: start;
    }

    @media (min-width: 920px) {
      .workspace-grid {
        grid-template-columns: 1.18fr 0.82fr;
      }
    }

    .neo-card {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      padding: 20px;
    }

    @media (min-width: 640px) {
      .neo-card {
        padding: 24px;
      }
    }

    /* =====================================================
       1. EL ESCENARIO DE ELECTRODOMÉSTICOS ANIMADOS (SVG)
       ===================================================== */
    .stage-box {
      background: var(--bg-soft-sky);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 18px 16px;
      margin-bottom: 22px;
      position: relative;
      overflow: hidden;
      transition: background-color 0.3s ease;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .stage-box.is-off {
      background: #E2E8F0;
      filter: grayscale(0.45);
    }

    .stage-top-badges {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 8px;
      z-index: 2;
    }

    .power-pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      font-size: 0.76rem;
      font-weight: 800;
      text-transform: uppercase;
      padding: 4px 12px;
      border-radius: 999px;
      border: 1.5px solid var(--ink);
      background: var(--mint);
      box-shadow: var(--shadow-sm);
    }

    .stage-box.is-off .power-pill {
      background: #CBD5E1;
    }

    .power-dot {
      width: 9px;
      height: 9px;
      border-radius: 50%;
      background: #065F46;
      animation: pulseDot 1.2s infinite ease-in-out;
    }

    .stage-box.is-off .power-dot {
      background: #64748B;
      animation: none;
    }

    .stage-status-bubble {
      font-size: 0.78rem;
      font-weight: 800;
      background: var(--bg-card);
      border: 1.5px solid var(--ink);
      padding: 4px 10px;
      border-radius: 999px;
    }

    .stage-svg-wrapper {
      width: 100%;
      max-width: 320px;
      height: 195px;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
    }

    .stage-caption {
      margin-top: 8px;
      font-size: 0.84rem;
      font-weight: 700;
      text-align: center;
      background: var(--bg-card);
      border: 1.5px solid var(--ink);
      padding: 6px 14px;
      border-radius: 999px;
      box-shadow: var(--shadow-sm);
    }

    /* Keyframes de Animaciones SVG Puras */
    @keyframes pulseDot {
      0%, 100% { transform: scale(1); opacity: 1; }
      50% { transform: scale(1.35); opacity: 0.65; }
    }

    @keyframes coldWindWave {
      0% { transform: translateY(0) translateX(0); opacity: 0; }
      30% { opacity: 1; }
      100% { transform: translateY(38px) translateX(-6px); opacity: 0; }
    }

    @keyframes coldWindForward {
      0% { transform: translateX(0) translateY(0); opacity: 0; }
      30% { opacity: 1; }
      100% { transform: translateX(-28px) translateY(6px); opacity: 0; }
    }

    @keyframes windowVibrate {
      0%, 100% { transform: translate(0, 0); }
      25% { transform: translate(-1.5px, 1px); }
      50% { transform: translate(1.5px, -1px); }
      75% { transform: translate(-1px, -1px); }
    }

    @keyframes floatIce {
      0%, 100% { transform: translateY(0px) rotate(0deg); opacity: 0.9; }
      50% { transform: translateY(-10px) rotate(12deg); opacity: 1; }
    }

    @keyframes rainDrop {
      0% { stroke-dashoffset: 24; opacity: 0.3; }
      50% { opacity: 1; }
      100% { stroke-dashoffset: 0; opacity: 0.2; }
    }

    @keyframes steamRise {
      0% { transform: translateY(0) scale(0.95); opacity: 0; }
      50% { opacity: 0.85; }
      100% { transform: translateY(-28px) scale(1.1); opacity: 0; }
    }

    @keyframes spinBlades {
      from { transform: rotate(0deg); }
      to { transform: rotate(360deg); }
    }

    @keyframes drumWash {
      0% { transform: rotate(0deg); }
      40% { transform: rotate(180deg); }
      60% { transform: rotate(160deg); }
      100% { transform: rotate(360deg); }
    }

    @keyframes heatGlow {
      0%, 100% { opacity: 0.45; transform: scale(0.98); }
      50% { opacity: 1; transform: scale(1.04); }
    }

    @keyframes tvColors {
      0% { fill: #38BDF8; }
      33% { fill: #FB7185; }
      66% { fill: #FACC15; }
      100% { fill: #34D399; }
    }

    @keyframes bubbleRise {
      0% { transform: translateY(0) scale(0.85); opacity: 0; }
      35% { opacity: 0.95; }
      100% { transform: translateY(-28px) scale(1.15); opacity: 0; }
    }

    @keyframes ironSlide {
      0%, 100% { transform: translateX(-14px); }
      50% { transform: translateX(14px); }
    }

    @keyframes ceilingFanSpin {
      0% { transform: scaleX(1); }
      25% { transform: scaleX(0.15); }
      50% { transform: scaleX(-1); }
      75% { transform: scaleX(0.15); }
      100% { transform: scaleX(1); }
    }

    /* Clases activadas cuando el aparato está ENCENDIDO */
    .stage-box.is-on .anim-wind-1 { animation: coldWindWave 1.6s infinite linear; }
    .stage-box.is-on .anim-wind-2 { animation: coldWindWave 1.6s infinite linear 0.5s; }
    .stage-box.is-on .anim-wind-3 { animation: coldWindWave 1.6s infinite linear 1.0s; }
    .stage-box.is-on .anim-wind-fwd-1 { animation: coldWindForward 1.4s infinite linear; }
    .stage-box.is-on .anim-wind-fwd-2 { animation: coldWindForward 1.4s infinite linear 0.45s; }
    .stage-box.is-on .anim-wind-fwd-3 { animation: coldWindForward 1.4s infinite linear 0.9s; }
    .stage-box.is-on .anim-vibrate { animation: windowVibrate 0.25s infinite linear; }
    .stage-box.is-on .anim-ice-1 { animation: floatIce 2.2s infinite ease-in-out; }
    .stage-box.is-on .anim-ice-2 { animation: floatIce 2.2s infinite ease-in-out 0.8s; }
    .stage-box.is-on .anim-rain { stroke-dasharray: 8 6; animation: rainDrop 0.65s infinite linear; }
    .stage-box.is-on .anim-steam { animation: steamRise 1.8s infinite ease-out; }
    .stage-box.is-on .anim-spin { transform-origin: center; transform-box: fill-box; animation: spinBlades 0.55s infinite linear; }
    .stage-box.is-on .anim-spin-fast { transform-origin: center; transform-box: fill-box; animation: spinBlades 0.22s infinite linear; }
    .stage-box.is-on .anim-ceiling-spin { transform-origin: center; transform-box: fill-box; animation: ceilingFanSpin 0.55s infinite linear; }
    .stage-box.is-on .anim-iron { animation: ironSlide 1.6s infinite ease-in-out; }
    .stage-box.is-on .anim-drum { transform-origin: center; transform-box: fill-box; animation: drumWash 1.8s infinite ease-in-out; }
    .stage-box.is-on .anim-heat { animation: heatGlow 1.2s infinite ease-in-out; }
    .stage-box.is-on .anim-tv-screen { animation: tvColors 3.5s infinite alternate; }
    .stage-box.is-on .anim-bubble-1 { animation: bubbleRise 1.3s infinite ease-in; }
    .stage-box.is-on .anim-bubble-2 { animation: bubbleRise 1.3s infinite ease-in 0.45s; }
    .stage-box.is-on .anim-bubble-3 { animation: bubbleRise 1.3s infinite ease-in 0.9s; }

    /* Tarjetas independientes para categorías con múltiples bloques */
    .multi-block-card {
      background: var(--bg-cream);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 18px 16px;
      margin-bottom: 22px;
      box-shadow: var(--shadow-sm);
      transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

    .multi-block-card:last-child {
      margin-bottom: 0;
    }

    .multi-block-card.active-focus {
      background: var(--bg-card);
      box-shadow: var(--shadow);
    }

    .multi-block-title {
      font-family: var(--font-display);
      font-size: 1.18rem;
      margin-bottom: 12px;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .stage-box.is-off .only-when-on {
      opacity: 0 !important;
    }

    /* =====================================================
       2. FLUJO DE PREGUNTAS COTIDIANAS (PÍLDORAS TÁCTILES)
       ===================================================== */
    .question-block {
      margin-bottom: 18px;
      padding-bottom: 16px;
      border-bottom: 2px dashed #E2E8F0;
    }

    .question-block:last-of-type {
      border-bottom: none;
      margin-bottom: 8px;
    }

    .question-label {
      font-family: var(--font-display);
      font-size: 1.04rem;
      margin-bottom: 10px;
      display: block;
      color: var(--ink);
    }

    .pills-group {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
    }

    .choice-pill {
      flex: 1 1 auto;
      min-height: 46px;
      padding: 10px 14px;
      background: var(--bg-pill-idle);
      border: var(--border);
      border-radius: 14px;
      font-family: inherit;
      font-size: 0.88rem;
      font-weight: 800;
      color: var(--ink);
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      transition: all 0.12s ease;
      text-align: center;
      display: inline-flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
    }

    .choice-pill small {
      font-size: 0.72rem;
      font-weight: 600;
      color: var(--ink-muted);
      margin-top: 2px;
    }

    .choice-pill:hover {
      background: var(--bg-soft-yellow);
    }

    .choice-pill.selected {
      background: var(--yellow);
      transform: translate(2px, 2px);
      box-shadow: none;
    }

    .choice-pill.selected small {
      color: var(--ink);
    }

    /* Control numérico de cantidad de focos (- / + y barra 1 a 30) */
    .bulb-qty-box {
      background: var(--bg-cream);
      border: var(--border);
      border-radius: 14px;
      padding: 12px 14px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .bulb-qty-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
    }

    .bulb-step-btn {
      width: 42px;
      height: 42px;
      border-radius: 12px;
      border: var(--border);
      background: var(--bg-card);
      font-family: var(--font-display);
      font-size: 1.35rem;
      font-weight: 800;
      color: var(--ink);
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      display: inline-flex;
      align-items: center;
      justify-content: center;
      transition: transform 0.1s ease, background-color 0.15s ease;
    }

    .bulb-step-btn:hover {
      background: var(--bg-soft-yellow);
    }

    .bulb-step-btn:active {
      transform: translate(2px, 2px);
      box-shadow: none;
    }

    .bulb-qty-display {
      font-family: var(--font-display);
      font-size: 1.15rem;
      font-weight: 800;
      color: var(--ink);
      background: var(--yellow);
      border: 2px solid var(--ink);
      border-radius: 999px;
      padding: 4px 16px;
      box-shadow: var(--shadow-sm);
    }

    .bulb-quick-pills {
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
    }

    .bulb-quick-btn {
      flex: 1 1 auto;
      padding: 5px 10px;
      border-radius: 999px;
      border: 1.5px solid var(--ink);
      background: var(--bg-card);
      font-family: inherit;
      font-size: 0.78rem;
      font-weight: 800;
      color: var(--ink);
      cursor: pointer;
      transition: background-color 0.12s ease;
    }

    .bulb-quick-btn.active {
      background: var(--sky);
    }

    /* Burbuja Explicativa Cotidiana (Ej. Heladera / Termocalefón) */
    .friendly-note-bubble {
      background: var(--bg-soft-mint);
      border: var(--border);
      border-radius: var(--radius-sm);
      padding: 12px 14px;
      font-size: 0.86rem;
      font-weight: 700;
      margin-top: 10px;
      box-shadow: var(--shadow-sm);
      display: flex;
      align-items: flex-start;
      gap: 10px;
    }

    /* Slider Grande y Táctil */
    .slider-card {
      background: var(--bg-soft-yellow);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 16px;
      box-shadow: var(--shadow-sm);
      margin-top: 8px;
    }

    .slider-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      margin-bottom: 10px;
    }

    .slider-big-value {
      font-family: var(--font-display);
      font-size: 1.25rem;
      background: var(--bg-card);
      border: var(--border);
      padding: 3px 12px;
      border-radius: 999px;
      box-shadow: var(--shadow-sm);
    }

    .neo-slider {
      -webkit-appearance: none;
      appearance: none;
      width: 100%;
      height: 16px;
      background: var(--bg-card);
      border: var(--border);
      border-radius: 999px;
      outline: none;
      cursor: pointer;
    }

    .neo-slider::-webkit-slider-thumb {
      -webkit-appearance: none;
      appearance: none;
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--coral);
      border: var(--border-thick);
      box-shadow: 2px 2px 0px var(--ink);
      cursor: pointer;
      transition: transform 0.1s ease;
    }

    .neo-slider::-webkit-slider-thumb:active {
      transform: scale(1.15);
    }

    .neo-slider::-moz-range-thumb {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--coral);
      border: var(--border-thick);
      box-shadow: 2px 2px 0px var(--ink);
      cursor: pointer;
    }

    .slider-scale-labels {
      display: flex;
      justify-content: space-between;
      font-size: 0.76rem;
      font-weight: 800;
      color: var(--ink-muted);
      margin-top: 8px;
    }

    /* =====================================================
       3. TICKET / BOLETA DE LUZ EN VIVO
       ===================================================== */
    .receipt-ticket {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      padding: 22px 20px;
      position: relative;
    }

    .receipt-header {
      text-align: center;
      border-bottom: 2px dashed var(--ink);
      padding-bottom: 12px;
      margin-bottom: 16px;
    }

    .receipt-tag {
      display: inline-block;
      background: var(--ink);
      color: var(--yellow);
      font-size: 0.72rem;
      font-weight: 800;
      text-transform: uppercase;
      letter-spacing: 0.06em;
      padding: 3px 10px;
      border-radius: 999px;
      margin-bottom: 4px;
    }

    .receipt-title {
      font-family: var(--font-display);
      font-size: 1.35rem;
    }

    .receipt-appliance-summary {
      font-size: 0.84rem;
      font-weight: 700;
      color: var(--ink-muted);
      margin-top: 2px;
    }

    .receipt-boxes {
      display: grid;
      grid-template-columns: 1fr;
      gap: 12px;
      margin-bottom: 16px;
    }

    .receipt-cost-card {
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      background: var(--bg-cream);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .receipt-cost-card.monthly-big {
      background: var(--yellow);
      box-shadow: var(--shadow);
      flex-direction: column;
      align-items: flex-start;
      padding: 18px;
    }

    .receipt-label {
      font-size: 0.82rem;
      font-weight: 800;
      text-transform: uppercase;
    }

    .receipt-price {
      font-family: var(--font-display);
      font-size: 1.45rem;
      font-weight: 700;
    }

    .receipt-cost-card.monthly-big .receipt-price {
      font-size: clamp(2rem, 5vw, 2.55rem);
      line-height: 1.1;
      margin: 4px 0;
    }

    .receipt-sub-detail {
      font-size: 0.8rem;
      font-weight: 700;
      color: var(--ink);
      opacity: 0.85;
    }

    /* Medidor Visual: Bajo / Medio / ¡Cuidado, Traga Luz! */
    .meter-box {
      background: var(--bg-cream);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      margin-bottom: 16px;
    }

    .meter-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 0.82rem;
      font-weight: 800;
      margin-bottom: 8px;
    }

    .meter-badge {
      padding: 2px 10px;
      border-radius: 999px;
      border: 1.5px solid var(--ink);
      font-weight: 800;
      font-size: 0.76rem;
    }

    .meter-bar-segments {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 6px;
      height: 14px;
    }

    .meter-seg {
      border: 1.5px solid var(--ink);
      border-radius: 999px;
      background: #E2E8F0;
      transition: background 0.2s ease, transform 0.2s ease;
    }

    .meter-seg.active-low { background: var(--mint); transform: scaleY(1.12); }
    .meter-seg.active-mid { background: var(--yellow); transform: scaleY(1.12); }
    .meter-seg.active-high { background: var(--coral); transform: scaleY(1.18); }

    /* Tip de ahorro cotidiano automático */
    .saving-tip-box {
      background: var(--bg-soft-mint);
      border: var(--border);
      border-radius: var(--radius-sm);
      padding: 11px 13px;
      font-size: 0.83rem;
      font-weight: 700;
      margin-bottom: 16px;
    }

    /* Contenedor guía punteado + Botón Verde Esmeralda Intenso [➕ Agregar Aparato] */
    .add-home-callout-box {
      border: 2px dashed var(--ink);
      background: var(--bg-cream);
      border-radius: var(--radius-md);
      padding: 14px;
      text-align: center;
    }

    .add-home-callout-label {
      font-size: 0.84rem;
      font-weight: 800;
      color: var(--ink);
      margin-bottom: 10px;
      display: block;
    }

    .btn-add-home {
      width: 100%;
      min-height: 58px;
      background: #059669;
      border: var(--border-thick);
      border-radius: var(--radius-md);
      box-shadow: var(--shadow);
      font-family: var(--font-display);
      font-size: 1.25rem;
      font-weight: 700;
      color: #FFFFFF;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      transition: all 0.12s ease;
    }

    .btn-add-home:hover {
      background: #047857;
      transform: translateY(-2px);
    }

    .btn-add-home:active {
      transform: translate(3px, 3px);
      box-shadow: none;
    }

    .view-accumulated-link {
      display: inline-block;
      margin-top: 10px;
      font-size: 0.82rem;
      font-weight: 800;
      color: var(--ink);
      text-decoration: underline;
    }

    .view-accumulated-link:hover {
      color: #059669;
    }

    /* =====================================================
       SECCIÓN "MI CASA" (Recibo Acumulado de la Familia)
       ===================================================== */
    .my-house-section {
      margin-top: 32px;
    }

    .my-house-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 12px;
      margin-bottom: 16px;
    }

    .my-house-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
      gap: 12px;
      margin-bottom: 18px;
    }

    .house-item-card {
      background: var(--bg-cream);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 14px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 8px;
      position: relative;
    }

    .house-item-card.biggest-spender {
      background: var(--bg-soft-coral);
    }

    .house-item-top {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .house-item-icon {
      width: 42px;
      height: 42px;
      border-radius: 10px;
      background: var(--bg-card);
      border: 1.5px solid var(--ink);
      display: grid;
      place-items: center;
      font-size: 1.35rem;
      flex-shrink: 0;
    }

    .house-item-title {
      font-weight: 800;
      font-size: 0.92rem;
      line-height: 1.2;
    }

    .house-item-desc {
      font-size: 0.76rem;
      color: var(--ink-muted);
      font-weight: 600;
    }

    .house-item-bottom {
      display: flex;
      align-items: center;
      justify-content: space-between;
      border-top: 1.5px dashed #CBD5E1;
      padding-top: 8px;
    }

    .house-item-price {
      font-family: var(--font-display);
      font-size: 1.1rem;
    }

    .btn-delete-item {
      background: var(--bg-card);
      border: 1.5px solid var(--ink);
      border-radius: 8px;
      padding: 3px 8px;
      font-size: 0.74rem;
      font-weight: 800;
      cursor: pointer;
    }

    .house-total-banner {
      background: var(--mint);
      border: var(--border-thick);
      border-radius: var(--radius-md);
      padding: 18px 20px;
      box-shadow: var(--shadow);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
    }

    .house-total-amount {
      font-family: var(--font-display);
      font-size: clamp(1.6rem, 4vw, 2.2rem);
    }

    .btn-whatsapp-family {
      background: #25D366;
      color: #FFFFFF;
      border: var(--border);
      border-radius: 14px;
      padding: 12px 18px;
      font-family: var(--font-display);
      font-size: 1rem;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    /* Sección de 6 Recomendaciones Reales para Ahorrar Energía */
    .recommendations-section {
      margin: 40px 0 28px;
    }

    .recommendations-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
      gap: 16px;
      margin-top: 16px;
    }

    .rec-card {
      background: var(--bg-card);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 18px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 8px;
    }

    .rec-card-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      flex-wrap: wrap;
    }

    .rec-number-tag {
      font-family: var(--font-display);
      font-size: 0.8rem;
      background: var(--bg-soft-yellow);
      border: 1.5px solid var(--ink);
      border-radius: 8px;
      padding: 2px 9px;
      font-weight: 700;
    }

    .rec-save-badge {
      font-size: 0.76rem;
      font-weight: 800;
      background: var(--bg-soft-mint);
      border: 1.5px solid var(--ink);
      border-radius: 999px;
      padding: 2px 10px;
      color: #065F46;
    }

    .rec-card h3 {
      font-family: var(--font-display);
      font-size: 1.08rem;
      line-height: 1.25;
      color: var(--ink);
    }

    .rec-card p {
      font-size: 0.86rem;
      color: var(--ink-muted);
      font-weight: 600;
    }

    /* Enlaces a Preguntas Populares (SEO Programático) */
    .popular-guides {
      margin: 40px 0;
    }

    .guides-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
      gap: 14px;
      margin-top: 14px;
    }

    .guide-card {
      background: var(--bg-card);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 16px;
      text-decoration: none;
      color: var(--ink);
      box-shadow: var(--shadow);
      transition: transform 0.12s ease, background 0.12s ease;
      display: block;
    }

    .guide-card:hover {
      transform: translateY(-3px);
      background: var(--bg-soft-yellow);
    }

    .guide-card h3 {
      font-family: var(--font-display);
      font-size: 1.02rem;
      margin-bottom: 6px;
    }

    .guide-card p {
      font-size: 0.84rem;
      color: var(--ink-muted);
      font-weight: 600;
    }

    /* Toast */
    .toast-pop {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: var(--yellow);
      color: var(--ink);
      border: var(--border-thick);
      border-radius: 14px;
      box-shadow: var(--shadow);
      padding: 12px 18px;
      font-family: var(--font-display);
      font-size: 0.95rem;
      z-index: 200;
      opacity: 0;
      transform: translateY(15px);
      pointer-events: none;
      transition: all 0.2s ease;
    }

    .toast-pop.show {
      opacity: 1;
      transform: translateY(0);
    }

    .footer-simple {
      margin-top: 48px;
      background: var(--bg-card);
      border-top: var(--border-thick);
      padding: 28px 0;
      text-align: center;
      font-size: 0.88rem;
      font-weight: 700;
    }

    .footer-links {
      margin-top: 10px;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      gap: 8px 12px;
      font-size: 0.82rem;
      font-weight: 700;
      color: var(--ink-muted);
    }

    .footer-legal-link {
      color: var(--ink-muted);
      text-decoration: none;
      transition: color 0.15s ease;
    }

    .footer-legal-link:hover {
      color: var(--ink);
      text-decoration: underline;
    }

    .footer-dot {
      color: #94A3B8;
      user-select: none;
    }

    /* Ventana Modal Legal (Política de Privacidad / Términos / Contacto) */
    .legal-modal-overlay {
      position: fixed;
      inset: 0;
      background: rgba(15, 23, 42, 0.6);
      backdrop-filter: blur(2px);
      z-index: 300;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 16px;
    }

    .legal-modal-overlay.open {
      display: flex;
    }

    .legal-modal-card {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      width: 100%;
      max-width: 720px;
      max-height: 82vh;
      overflow-y: auto;
      padding: 22px 24px;
      position: relative;
      text-align: left;
    }

    .legal-modal-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      padding-bottom: 14px;
      margin-bottom: 16px;
      border-bottom: 2px dashed var(--ink);
      position: sticky;
      top: 0;
      background: var(--bg-card);
      z-index: 2;
    }

    .legal-modal-title {
      font-family: var(--font-display);
      font-size: clamp(1.2rem, 3vw, 1.5rem);
      color: var(--ink);
    }

    .legal-modal-close {
      background: var(--bg-soft-coral);
      border: var(--border);
      border-radius: 10px;
      padding: 6px 14px;
      font-family: var(--font-display);
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--ink);
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      flex-shrink: 0;
    }

    .legal-modal-close:hover {
      background: var(--coral);
    }

    .legal-modal-body {
      font-size: 0.9rem;
      line-height: 1.6;
      color: var(--ink);
      font-weight: 600;
    }

    .legal-modal-body h3 {
      font-family: var(--font-display);
      font-size: 1.05rem;
      margin: 16px 0 6px;
      color: var(--ink);
    }

    .legal-modal-body h3:first-child {
      margin-top: 0;
    }

    .legal-modal-body p {
      margin-bottom: 10px;
      color: var(--ink-muted);
    }

    .legal-modal-body a {
      color: #0284C7;
      font-weight: 800;
      text-decoration: underline;
    }

    /* =====================================================
       ESTILOS DE PÁGINA DE GUÍA INDEPENDIENTE (guia.html)
       ===================================================== */
    .guide-page-wrap {
      max-width: 920px;
      margin: 0 auto;
    }

    .guide-hero-card {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      padding: 24px 20px;
      margin-bottom: 24px;
    }

    @media (min-width: 640px) {
      .guide-hero-card {
        padding: 30px 28px;
      }
    }

    .guide-category-badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      background: var(--bg-soft-sky);
      border: 2px solid var(--ink);
      border-radius: 999px;
      padding: 5px 14px;
      font-family: var(--font-display);
      font-size: 0.85rem;
      font-weight: 700;
      color: var(--ink);
      box-shadow: var(--shadow-sm);
      margin-bottom: 14px;
    }

    .guide-h1 {
      font-family: var(--font-display);
      font-size: clamp(1.65rem, 4vw, 2.35rem);
      line-height: 1.18;
      margin-bottom: 12px;
      color: var(--ink);
    }

    .guide-lead {
      font-size: 1.02rem;
      font-weight: 600;
      color: var(--ink-muted);
      margin-bottom: 20px;
      line-height: 1.55;
    }

    .guide-quick-answer {
      background: var(--bg-soft-yellow);
      border: var(--border-thick);
      border-radius: var(--radius-md);
      padding: 18px 20px;
      box-shadow: var(--shadow-sm);
    }

    .guide-quick-label {
      display: inline-block;
      font-family: var(--font-display);
      font-size: 0.82rem;
      text-transform: uppercase;
      background: var(--yellow);
      border: 1.5px solid var(--ink);
      border-radius: 8px;
      padding: 3px 10px;
      margin-bottom: 10px;
    }

    .guide-quick-text {
      font-size: 0.98rem;
      font-weight: 700;
      color: var(--ink);
      line-height: 1.55;
    }

    .guide-quick-highlight {
      margin-top: 12px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .guide-price-pill {
      background: var(--bg-card);
      border: 2px solid var(--ink);
      border-radius: 12px;
      padding: 8px 14px;
      box-shadow: var(--shadow-sm);
      font-weight: 800;
      font-size: 0.9rem;
    }

    .guide-price-pill strong {
      font-family: var(--font-display);
      font-size: 1.12rem;
      color: #065F46;
    }

    /* Mini-Simulador Interactivo dentro de la Guía */
    .guide-sim-card {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      padding: 22px 20px;
      margin-bottom: 24px;
    }

    .guide-section-title {
      font-family: var(--font-display);
      font-size: 1.32rem;
      margin-bottom: 12px;
      color: var(--ink);
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .guide-sim-results {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
      gap: 14px;
      margin-top: 16px;
    }

    .guide-sim-box {
      background: var(--bg-cream);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 14px 16px;
      box-shadow: var(--shadow-sm);
    }

    .guide-sim-box.highlight-mint {
      background: var(--bg-soft-mint);
    }

    .guide-sim-box.highlight-coral {
      background: var(--bg-soft-coral);
    }

    .guide-sim-box-label {
      font-size: 0.8rem;
      font-weight: 800;
      color: var(--ink-muted);
      text-transform: uppercase;
      margin-bottom: 4px;
    }

    .guide-sim-box-price {
      font-family: var(--font-display);
      font-size: 1.5rem;
      color: var(--ink);
      line-height: 1.15;
    }

    .guide-sim-box-sub {
      font-size: 0.78rem;
      font-weight: 700;
      color: var(--ink-muted);
      margin-top: 4px;
    }

    /* Tabla Comparativa Clara */
    .guide-table-card {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      padding: 22px 20px;
      margin-bottom: 24px;
      overflow-x: auto;
    }

    .guide-table {
      width: 100%;
      border-collapse: collapse;
      min-width: 520px;
      margin-top: 8px;
    }

    .guide-table th {
      background: var(--bg-soft-sky);
      border: 2px solid var(--ink);
      padding: 11px 14px;
      text-align: left;
      font-family: var(--font-display);
      font-size: 0.92rem;
      color: var(--ink);
    }

    .guide-table td {
      border: 2px solid var(--ink);
      padding: 12px 14px;
      font-size: 0.88rem;
      font-weight: 700;
      color: var(--ink);
      background: var(--bg-card);
    }

    .guide-table tr.row-recommended td {
      background: var(--bg-soft-mint);
    }

    .guide-table tr.row-warning td {
      background: var(--bg-soft-coral);
    }

    /* 3 Bloques de Explicación Profunda */
    .guide-deep-grid {
      display: grid;
      grid-template-columns: 1fr;
      gap: 18px;
      margin-bottom: 28px;
    }

    .guide-deep-block {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow);
      padding: 22px 20px;
    }

    .guide-deep-block h3 {
      font-family: var(--font-display);
      font-size: 1.2rem;
      margin-bottom: 10px;
      color: var(--ink);
    }

    .guide-deep-block p {
      font-size: 0.94rem;
      font-weight: 600;
      color: var(--ink-muted);
      line-height: 1.6;
      margin-bottom: 10px;
    }

    .guide-deep-block p:last-child {
      margin-bottom: 0;
    }

    .guide-deep-block ul {
      padding-left: 20px;
      margin-top: 8px;
    }

    .guide-deep-block li {
      font-size: 0.92rem;
      font-weight: 600;
      color: var(--ink);
      margin-bottom: 8px;
      line-height: 1.5;
    }

    .guide-cta-banner {
      background: var(--mint);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      padding: 20px 22px;
      box-shadow: var(--shadow);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 16px;
      margin-bottom: 34px;
    }

    .guide-cta-btn {
      background: var(--yellow);
      color: var(--ink);
      border: var(--border-thick);
      border-radius: 14px;
      padding: 12px 20px;
      font-family: var(--font-display);
      font-size: 1rem;
      text-decoration: none;
      box-shadow: var(--shadow-sm);
      display: inline-flex;
      align-items: center;
      gap: 8px;
    }

    .guide-cta-btn:hover {
      transform: translateY(-2px);
    }

    /* =====================================================
       SECCIÓN DE 5 HERRAMIENTAS ESPECIALES (index.html y herramienta.html)
       ===================================================== */
    .special-tools-section {
      margin: 42px 0 32px;
    }

    .special-tools-title {
      font-family: var(--font-display);
      font-size: 1.5rem;
      margin-bottom: 6px;
      color: var(--ink);
    }

    .special-tools-subtitle {
      font-size: 0.94rem;
      font-weight: 700;
      color: var(--ink-muted);
      margin-bottom: 18px;
    }

    .special-tools-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 16px;
    }

    .special-tool-card {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      padding: 20px;
      text-decoration: none;
      color: var(--ink);
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
      transition: transform 0.14s ease, box-shadow 0.14s ease, background-color 0.14s ease;
    }

    .special-tool-card:hover {
      transform: translate(-2px, -3px);
      box-shadow: var(--shadow-lg);
      background: var(--bg-soft-yellow);
    }

    .special-tool-top {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
    }

    .special-tool-icon {
      width: 50px;
      height: 50px;
      border-radius: 14px;
      border: var(--border);
      background: var(--bg-cream);
      display: grid;
      place-items: center;
      font-size: 1.75rem;
      box-shadow: var(--shadow-sm);
    }

    .special-tool-badge {
      font-family: var(--font-display);
      font-size: 0.78rem;
      font-weight: 700;
      padding: 4px 12px;
      border-radius: 999px;
      border: 1.5px solid var(--ink);
      box-shadow: var(--shadow-sm);
    }

    .badge-yellow { background: var(--bg-soft-yellow); }
    .badge-coral { background: var(--bg-soft-coral); }
    .badge-sky { background: var(--bg-soft-sky); }
    .badge-mint { background: var(--bg-soft-mint); }

    .special-tool-card h3 {
      font-family: var(--font-display);
      font-size: 1.18rem;
      line-height: 1.22;
      color: var(--ink);
      margin-top: 2px;
    }

    .special-tool-card p {
      font-size: 0.88rem;
      font-weight: 600;
      color: var(--ink-muted);
      line-height: 1.48;
      flex-grow: 1;
    }

    .special-tool-cta {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      align-self: flex-start;
      background: var(--yellow);
      border: 2px solid var(--ink);
      border-radius: 10px;
      padding: 6px 14px;
      font-family: var(--font-display);
      font-size: 0.86rem;
      color: var(--ink);
      box-shadow: var(--shadow-sm);
      margin-top: 4px;
    }

    /* Estilos internos de herramienta.html */
    .tool-workspace-card {
      background: var(--bg-card);
      border: var(--border-thick);
      border-radius: var(--radius-lg);
      box-shadow: var(--shadow-lg);
      padding: 22px 18px;
      margin-bottom: 28px;
    }

    @media (min-width: 640px) {
      .tool-workspace-card {
        padding: 28px 26px;
      }
    }

    .vampire-list-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 12px;
      margin: 18px 0 22px;
    }

    .vampire-item-row {
      background: var(--bg-cream);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 13px 14px;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 10px;
      transition: background-color 0.15s ease;
    }

    .vampire-item-row.active-vampire {
      background: var(--bg-soft-yellow);
    }

    .vampire-item-header {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 10px;
    }

    .vampire-item-title {
      font-weight: 800;
      font-size: 0.92rem;
      line-height: 1.25;
      color: var(--ink);
    }

    .vampire-item-watts {
      font-size: 0.76rem;
      font-weight: 700;
      color: var(--ink-muted);
      margin-top: 2px;
    }

    .vampire-item-controls {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 8px;
      border-top: 1.5px dashed #CBD5E1;
      padding-top: 8px;
    }

    .vampire-toggle-btn {
      padding: 5px 12px;
      border-radius: 999px;
      border: 2px solid var(--ink);
      font-family: var(--font-display);
      font-size: 0.78rem;
      cursor: pointer;
      background: #E2E8F0;
      color: var(--ink);
      box-shadow: var(--shadow-sm);
    }

    .vampire-toggle-btn.is-plugged {
      background: var(--coral);
      color: #FFFFFF;
    }

    .vampire-qty-mini {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }

    .vampire-qty-btn {
      width: 28px;
      height: 28px;
      border-radius: 8px;
      border: 1.5px solid var(--ink);
      background: var(--bg-card);
      font-weight: 800;
      cursor: pointer;
    }

    /* Herramienta 2: Simulador de Llave Térmica (Disyuntor) */
    .breaker-appliances-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(165px, 1fr));
      gap: 10px;
      margin: 16px 0 22px;
    }

    .breaker-app-btn {
      background: var(--bg-pill-idle);
      border: var(--border);
      border-radius: var(--radius-md);
      padding: 12px 10px;
      cursor: pointer;
      box-shadow: var(--shadow-sm);
      display: flex;
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 4px;
      font-family: inherit;
      transition: all 0.12s ease;
    }

    .breaker-app-btn.is-turned-on {
      background: var(--yellow);
      transform: translate(2px, 2px);
      box-shadow: none;
    }

    .breaker-app-btn strong {
      font-size: 0.86rem;
      font-weight: 800;
      color: var(--ink);
    }

    .breaker-app-btn small {
      font-size: 0.74rem;
      font-weight: 700;
      color: var(--ink-muted);
    }

    .breaker-meter-bar-wrap {
      background: #E2E8F0;
      border: var(--border);
      border-radius: 999px;
      height: 26px;
      overflow: hidden;
      margin: 12px 0;
      position: relative;
    }

    .breaker-meter-bar-fill {
      height: 100%;
      width: 0%;
      background: var(--mint);
      transition: width 0.25s ease, background-color 0.25s ease;
    }

    @keyframes sparkFlash {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.25; transform: scale(1.18); }
    }

    @keyframes ghostFloat {
      0%, 100% { transform: translateY(0px); }
      50% { transform: translateY(-7px); }
    }

    .anim-spark {
      transform-origin: center;
      transform-box: fill-box;
      animation: sparkFlash 0.35s infinite ease-in-out;
    }

    .anim-ghost {
      animation: ghostFloat 2.2s infinite ease-in-out;
    }
