html { overflow-y: scroll; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

/* Doctor Electro · css/index.css
   Estilos exclusivos de index */
:root {
    --bg-primary: #070B11;
    --bg-secondary: #0E1621;
    --bg-tertiary: #131D2B;
    
    --surface-glass: rgba(255,255,255,0.045);
    --surface-card: rgba(18,28,40,0.82);
    
    --accent-primary: #6FD3FF;
    --accent-secondary: #8AA4FF;
    --accent-soft: rgba(111,211,255,0.14);
    
    --text-primary: #F4F7FB;
    --text-secondary: rgba(244,247,251,0.72);
    --text-muted: rgba(244,247,251,0.42);
    
    --border-soft: rgba(255,255,255,0.08);
    --border-accent: rgba(111,211,255,0.16);
    
    --success: #7CFFB2;
    --warning: #FFC56F;
    --danger: #FF7A7A;
    
    --shadow-soft: 0 10px 40px rgba(0,0,0,0.28);
    --shadow-card: 0 12px 32px rgba(0,0,0,0.36);
    --shadow-glow: 0 0 24px rgba(111,211,255,0.10);
    
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

  html, body {
    height: 100%;
    background: radial-gradient(circle at top, rgba(111,211,255,0.08), transparent 38%), linear-gradient(180deg, #070B11 0%, #0B121C 100%);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    overflow-x: hidden;
  }

  body::before {
    display: none;
  }

  body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: radial-gradient(circle at 50% 0%, rgba(111,211,255,0.06), transparent 60%);
    pointer-events: none;
    z-index: 0;
  }

  .app-wrapper {
    position: relative;
    z-index: 1;
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-bottom: 72px;
  }

  /* ══ HERO ══ */
  .hero {
    position: relative;
    padding: 0 0 12px;
    overflow: hidden;
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,50,100,0.55) 0%, transparent 100%);
    z-index: 0;
  }

  .hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 22px;
  }

  .ekg-top {
    display: none;
  }

  .avatar-ring {
    position: relative;
    width: 96px;
    height: 96px;
    margin-bottom: 10px;
    flex-shrink: 0;
  }

  .avatar-ring::before { display: none; }
  .avatar-ring::after  { display: none; }

  .avatar-img {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    display: block;
    box-shadow: 0 12px 32px rgba(0,0,0,0.36);
  }

  .pulse-dot {
    position: absolute;
    bottom: 0; right: 0;
    z-index: 3;
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--success);
    border: 3px solid var(--bg-primary);
    box-shadow: 0 0 0 1px var(--success);
    animation: breathing 2.5s ease-in-out infinite;
  }

  @keyframes breathing {
    0%,100% { opacity: 1; }
    50% { opacity: 0.6; }
  }

  .hero-title {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
    text-shadow: none;
    line-height: 1.2;
    margin-bottom: 6px;
  }

  .hero-title span { color: var(--accent-primary); }

  .hero-sub {
    font-size: 13px;
    font-weight: 500;
    color: #00D4FF;
    letter-spacing: 0;
    text-transform: none;
    margin-bottom: 10px;
  }

  .ekg-svg {
    display: none;
  }

  .ekg-path {
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
    animation: pulseEkg 3s ease-in-out infinite;
    stroke: var(--accent-primary);
    stroke-width: 2;
  }

  @keyframes pulseEkg {
    0%,100% { opacity: 0.6; filter: none; }
    50% { opacity: 1; filter: drop-shadow(0 0 8px rgba(111,211,255,0.12)); }
  }

  .stats-row {
    display: flex;
    gap: 12px;
    padding: 0 20px;
    margin-top: 6px;
    width: 100%;
  }

  .stat-chip {
    flex: 1;
    background: var(--cyan-dim);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    padding: 8px 6px;
    text-align: center;
  }

  .stat-num {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-primary);
    line-height: 1;
  }

  .stat-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 3px;
  }
 /* ══ SECTION HEADER ══ */
  .section-header {
    padding: 20px 16px 14px 28px;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .section-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-soft));
    margin-left: 10px;
  }

  .section-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto Mono', monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
  }

  /* ══ GRID ══ */
  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 0 16px 86px 16px;
  }

  .appliance-card {
    position: relative;
    background: var(--surface-card);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 22px 16px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    overflow: hidden;
    transition: 
      transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1),
      background 0.35s ease,
      border-color 0.35s ease,
      box-shadow 0.35s ease;
    animation: fadeUp 0.5s ease both;
    box-shadow: var(--shadow-card);
  }

  .appliance-card:nth-child(1) { animation-delay: 0.05s; }
  .appliance-card:nth-child(2) { animation-delay: 0.1s; }
  .appliance-card:nth-child(3) { animation-delay: 0.15s; }
  .appliance-card:nth-child(4) { animation-delay: 0.2s; }
  .appliance-card:nth-child(5) { animation-delay: 0.25s; }
  .appliance-card:nth-child(6) { animation-delay: 0.3s; }
  .appliance-card:nth-child(7) { animation-delay: 0.35s; }

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

  .appliance-card::before {
    display: none;
  }

  .appliance-card::after {
    display: none;
  }

  .appliance-card:active {
    transform: scale(0.985) translateY(2px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-card), 0 0 0 1px var(--accent-soft);
  }

  .card-glow {
    display: none;
  }

  .card-icon {
    font-size: 38px;
    line-height: 1;
    filter: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }

  .appliance-card:active .card-icon { 
    transform: scale(1.08); 
  }

  .microwave-svg {
    width: 44px;
    height: 36px;
    filter: none;
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  .appliance-card:active .microwave-svg { transform: scale(1.08); }

  .card-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-primary);
    text-align: center;
  }

  .card-badge {
    position: absolute;
    top: 10px; right: 10px;
    background: var(--cyan-dim);
    border: 1px solid var(--border-soft);
    border-radius: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent-primary);
    padding: 2px 6px;
  }

  .appliance-card.wide {
    grid-column: span 2;
    flex-direction: column;
    padding: 24px 16px 20px;
    gap: 12px;
  }

  /* ══ MODAL CHAT IA ══ */
  .chat-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(4,10,18,0.92);
    backdrop-filter: blur(8px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
  }

  .chat-overlay.open {
    display: flex;
    animation: slideUp 0.35s cubic-bezier(0.16,1,0.3,1);
  }

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

  .chat-sheet {
    width: 100%;
    max-width: 480px;
    height: 82vh;
    background: var(--surface-card);
    border-radius: 28px 28px 0 0;
    border-top: 1px solid var(--border-soft);
    border-left: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .chat-header {
    padding: 16px 20px 14px;
    border-bottom: 1px solid var(--border-soft);
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card2);
    flex-shrink: 0;
  }

  .chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--accent-primary);
    box-shadow: 0 0 12px rgba(0,229,255,0.4);
  }

  .chat-header-info { flex: 1; }
  .chat-header-name {
    font-family: 'Rajdhani', sans-serif;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #fff;
  }
  .chat-header-status {
    font-size: 11px;
    color: #00e676;
    display: flex;
    align-items: center;
    gap: 5px;
  }
  .status-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #00e676;
    box-shadow: 0 0 6px #00e676;
  }

  .chat-close {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.07);
    border: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
  }

  .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    scroll-behavior: smooth;
  }

  .msg {
    display: flex;
    gap: 10px;
    align-items: flex-end;
    animation: msgIn 0.4s ease both;
    padding: 0 16px;
  }

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

  .msg.user { flex-direction: row-reverse; }

  .msg-avatar {
    width: 28px; 
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--border-soft);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  }

  .msg-bubble {
    max-width: 72%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    word-wrap: break-word;
    font-family: 'Inter', sans-serif;
  }

  .msg.bot .msg-bubble {
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  .msg.user .msg-bubble {
    background: linear-gradient(180deg, var(--accent-soft), rgba(111,211,255,0.08));
    border: 1px solid var(--border-accent);
    border-bottom-right-radius: 4px;
    color: var(--text-primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  }

  .amazon-btn {
    display: inline-block;
    margin-top: 10px;
    background: linear-gradient(135deg, #ff9900, #ffb84d);
    color: #000;
    padding: 8px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    text-align: center;
    font-family: 'Inter', sans-serif;
    border: 1px solid rgba(255,153,0,0.3);
    transition: all 0.3s ease;
  }
  
  .amazon-btn:active {
    transform: scale(0.96);
  }

  .chat-input-row {
    padding: 14px 16px 20px;
    display: flex;
    gap: 10px;
    align-items: center;
    border-top: none;
    background: transparent;
    flex-shrink: 0;
    box-shadow: none;
  }

  .chat-input {
    flex: 1;
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: 24px;
    padding: 12px 18px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--text-primary);
    outline: none;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    transition: all 0.3s ease;
  }
  .chat-input:focus { 
    border-color: var(--border-accent);
    background: rgba(255,255,255,0.08);
  }
  .chat-input::placeholder {
    color: var(--text-muted);
  }

  .chat-send {
    width: 46px; 
    height: 46px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    border: 1px solid var(--border-accent);
    color: #fff;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-glow);
    flex-shrink: 0;
    transition: all 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    font-weight: 600;
  }
  
  .chat-send:active {
    transform: scale(0.92);
    box-shadow: var(--shadow-glow), 0 0 24px rgba(111,211,255,0.15);
  }

  .quick-chips {
    display: flex;
    gap: 8px;
    padding: 0 16px 12px;
    overflow-x: auto;
    flex-shrink: 0;
  }
  .quick-chips::-webkit-scrollbar { display: none; }

  .chip {
    background: var(--surface-glass);
    border: 1px solid var(--border-soft);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--accent-primary);
    white-space: nowrap;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 500;
    flex-shrink: 0;
    transition: all 0.3s ease;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  
  .chip:active {
    background: var(--accent-soft);
    border-color: var(--accent-primary);
  }
  /* ══ MODAL BIENVENIDA PREMIUM ══ */
  #wModal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 9999;
    background: rgba(7,11,17,0.88);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
  }
  #wModal-inner {
    width: 100%;
    max-width: 350px;
  }
  #wBox {
    background: var(--surface-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    max-width: 100%;
    margin: 0 auto;
    overflow: hidden;
    box-shadow: var(--shadow-card);
  }

  /* CABECERA PREMIUM */
  #wHeader {
    background: linear-gradient(135deg, #0a1820 0%, #0f2535 100%);
    padding: 18px 16px 14px;
    text-align: center;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--border-soft);
  }
  #wHeader::before {
    content: '';
    position: absolute;
    top: -30px; left: 50%;
    transform: translateX(-50%);
    width: 240px; height: 120px;
    background: radial-gradient(ellipse, rgba(111,211,255,0.12) 0%, transparent 70%);
  }
  #wHeader::after {
    display: none;
  }
  #wBadge {
    display: inline-block;
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: 14px;
    padding: 4px 11px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-primary);
    text-transform: uppercase;
    margin-bottom: 8px;
    position: relative;
  }
  #wTitle {
    font-size: 26px;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0;
    line-height: 1.2;
    margin: 0 0 5px;
    position: relative;
    text-shadow: none;
    font-family: 'Space Grotesk', sans-serif;
  }
  #wTitle b { color: var(--accent-primary); }
  #wSub {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0;
    text-transform: none;
    position: relative;
    margin: 0;
    font-weight: 500;
  }
  /* línea decorativa - ELIMINADA */

  /* CUERPO */
  #wBody {
    padding: 14px 13px 18px;
  }
  .ws {
    display: table;
    width: 100%;
    background: var(--accent-soft);
    border: 1px solid var(--border-accent);
    border-radius: 12px;
    padding: 11px 12px;
    margin-bottom: 7px;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
  }
  .ws::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--accent-primary), var(--accent-secondary));
    border-radius: 3px 0 0 3px;
  }
  .ws-num {
    display: table-cell;
    width: 38px;
    vertical-align: middle;
    padding-left: 6px;
  }
  .ws-num span {
    display: inline-block;
    width: 30px; 
    height: 30px;
    border-radius: 50%;
    border: 2px solid var(--accent-primary);
    background: var(--accent-soft);
    color: var(--accent-primary);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    line-height: 26px;
    box-shadow: 0 0 12px rgba(111,211,255,0.15);
  }
  .ws-txt {
    display: table-cell;
    vertical-align: middle;
    padding-left: 11px;
  }
  .ws-txt strong { display: block; font-size: 17px; font-weight: 800; color: var(--text-primary); letter-spacing: 0; line-height: 1.25; font-family: 'Space Grotesk', sans-serif; }
  .ws-txt small  { display: block; font-size: 12px; color: var(--text-secondary); margin-top: 3px; font-weight: 500; }
  .ws-ico {
    display: table-cell;
    vertical-align: middle;
    width: 36px;
    font-size: 22px;
    text-align: right;
    opacity: 0.85;
  }
  #wBtn {
    display: block;
    width: 100%;
    margin-top: 18px;
    background: linear-gradient(135deg, #0066bb, #00aadd);
    border: none;
    border-radius: 14px;
    padding: 17px;
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    box-sizing: border-box;
    box-shadow: 0 4px 24px rgba(0,100,200,0.45), 0 0 0 1px rgba(0,229,255,0.2);
  }
  /* ══ FORMULARIO TÉCNICO EN BUSCADOR ══ */
  .tecnico-form-chat {
    background: var(--surface-card);
    border: 1px solid rgba(0,170,240,0.20);
    border-radius: 14px;
    padding: 18px;
    margin-top: 14px;
    display: none;
  }
  .tecnico-form-chat.show { display: block; }
  .tecnico-form-title { font-size: 14px; font-weight: 700; color: var(--accent-primary); letter-spacing: 1px; margin-bottom: 4px; }
  .tecnico-form-desc { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
  .form-input {
    width: 100%; background: var(--card2);
    border: 1px solid var(--border-soft); border-radius: 12px;
    padding: 12px 14px; font-family: 'Exo 2', sans-serif; font-size: 13px;
    color: var(--text-primary); outline: none; margin-bottom: 9px;
    transition: border-color 0.2s; box-sizing: border-box;
  }
  .form-input:focus { border-color: var(--accent-primary); }
  .form-input::placeholder { color: var(--text-muted); }
  textarea.form-input { resize: none; height: 72px; }
  select.form-input { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300e5ff' stroke-width='2'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }
  select.form-input option { background: var(--surface-card); color: var(--text-primary); }
  .form-label { display: block; font-size: 11px; font-weight: 600; color: var(--text-muted); margin-bottom: 5px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.5px; }
  .tecnico-legal { font-size: 11px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px; padding: 8px 10px; background: rgba(255,255,255,0.03); border-radius: 8px; border-left: 2px solid rgba(0,212,240,0.22); }
  .form-submit { width: 100%; padding: 14px; border-radius: 12px; border: none; background: linear-gradient(135deg,#0070c0,#00c8e8); font-size: 14px; font-weight: 700; letter-spacing: 1.5px; color: #fff; text-transform: uppercase; cursor: pointer; transition: all 0.2s; box-sizing: border-box; }
  .form-submit:active { transform: scale(0.97); }
  .rgpd-box { background: var(--card2); border: 1px solid rgba(0,180,255,0.2); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
  .rgpd-check { display: flex; align-items: flex-start; gap: 8px; cursor: pointer; }
  .rgpd-check input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; cursor: pointer; accent-color: var(--accent-primary); flex-shrink: 0; }
  .rgpd-text { font-size: 11px; color: var(--text-muted); line-height: 1.4; }
  .rgpd-link { color: var(--accent-primary); cursor: pointer; text-decoration: underline; }
  .form-success { display: none; text-align: center; padding: 16px; }
  .form-success-icon { font-size: 40px; margin-bottom: 8px; }
  .form-success-title { font-size: 18px; font-weight: 700; color: #00e676; }
  .form-success-desc { font-size: 12px; color: var(--text-muted); margin-top: 4px; line-height: 1.5; }
  .result-action-btns { display: flex; gap: 8px; margin-top: 12px; }
  .result-action-btns .btn-tecnico {
    flex: 1; padding: 13px 8px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #003366, #0055aa);
    color: #fff; font-size: 13px; font-weight: 700; cursor: pointer;
    border: 1px solid rgba(0,229,255,0.3); letter-spacing: 0.5px;
  }
  .result-action-btns .btn-amazon {
    flex: 1; padding: 13px 8px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #b35c00, #ff9900);
    color: #111; font-size: 13px; font-weight: 700; cursor: pointer; letter-spacing: 0.5px;
    display: block; text-align: center; text-decoration: none;
  }

  /* ══ SPLASH SCREEN ══ */
  #splash {
    position: fixed; inset: 0; z-index: 99999;
    background: #040a12;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    transition: opacity 0.5s ease;
  }
  #splash.hide { opacity: 0; pointer-events: none; }
  #splash-logo {
    width: 180px; height: 180px; border-radius: 50%;
    border: 2px solid rgba(0,229,255,0.9);
    box-shadow:
      0 0 0 4px rgba(0,229,255,0.15),
      0 0 20px rgba(0,229,255,0.6),
      0 0 50px rgba(0,229,255,0.3),
      0 0 90px rgba(0,229,255,0.15);
    animation: splashPulse 1.8s ease-in-out infinite;
    margin-bottom: 24px;
  }
  @keyframes splashPulse {
    0%,100% {
      box-shadow:
        0 0 0 4px rgba(0,229,255,0.10),
        0 0 15px rgba(0,229,255,0.5),
        0 0 40px rgba(0,229,255,0.2),
        0 0 70px rgba(0,229,255,0.10);
      border-color: rgba(0,229,255,0.7);
    }
    50% {
      box-shadow:
        0 0 0 8px rgba(0,229,255,0.18),
        0 0 30px rgba(0,229,255,0.9),
        0 0 70px rgba(0,229,255,0.5),
        0 0 120px rgba(0,229,255,0.25);
      border-color: rgba(0,229,255,1);
    }
  }
  #splash-title { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: 3px; text-transform: uppercase; }
  #splash-title span { color: #00e5ff; }
  #splash-sub { font-size: 11px; color: rgba(232,244,255,0.4); letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }
  #splash-bar-wrap { width: 140px; height: 3px; background: rgba(0,229,255,0.15); border-radius: 3px; margin-top: 28px; overflow: hidden; }
  #splash-bar { height: 100%; width: 0%; background: linear-gradient(90deg, #00e5ff, #ffd600); border-radius: 3px; transition: width 1.8s ease; }

  /* ══ TOP PROGRESS BAR ══ */
  #topProgress {
    position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 9000;
    background: linear-gradient(90deg, #00e5ff, #ffd600, #00e5ff);
    background-size: 200% 100%;
    animation: progressShimmer 1.5s linear infinite;
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.4s ease;
  }
  #topProgress.show { transform: scaleX(1); }
  @keyframes progressShimmer { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

  /* ══ SKELETON LOADER ══ */
  .skeleton {
    background: linear-gradient(90deg, var(--card2) 25%, rgba(0,229,255,0.06) 50%, var(--card2) 75%);
    background-size: 200% 100%;
    animation: skelAnim 1.4s ease infinite;
    border-radius: 14px;
  }
  @keyframes skelAnim { 0%{background-position:200% 0} 100%{background-position:-200% 0} }

  /* ══ BADGE NOTIFICACIÓN ══ */
  #buscadorBadge {
    position: absolute; top: -4px; right: -4px;
    background: #ff3d3d;
    color: #fff; font-size: 9px; font-weight: 800;
    width: 18px; height: 18px; border-radius: 50%;
    display: none; align-items: center; justify-content: center;
    border: 2px solid var(--bg);
    animation: badgePop 0.4s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 10;
  }
  #buscadorBadge.show { display: flex; }
  @keyframes badgePop { from{transform:scale(0)} to{transform:scale(1)} }
  .ai-btn { position: relative; }

  /* ══ CARD ENTRADA ANIMADA ══ */
  .appliance-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.4s ease, transform 0.4s ease;
  }
  .appliance-card.visible { opacity: 1; transform: translateY(0); }

  /* ══ BADGES TARJETAS ══ */
  .card-badge-hot {
    position: absolute; top: 8px; right: 8px;
    background: linear-gradient(135deg, #cc0000, #ff4444);
    color: #fff; font-size: 8px; font-weight: 800;
    padding: 2px 7px; border-radius: 6px;
    letter-spacing: 1px; text-transform: uppercase;
    box-shadow: 0 0 8px rgba(255,50,50,0.5);
  }

  /* ══ PULL TO REFRESH ══ */
  #pullRefresh {
    position: fixed; top: 0; left: 0; right: 0;
    height: 52px; z-index: 8000;
    display: flex; align-items: center; justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    pointer-events: none;
  }
  #pullRefresh.show { transform: translateY(0); }
  #pullRefreshInner {
    background: var(--surface-card); border: 1px solid var(--border-soft);
    border-radius: 24px; padding: 6px 18px;
    display: flex; align-items: center; gap: 8px;
    font-size: 12px; color: var(--accent-primary); font-weight: 600;
  }

  /* ══ WHATSAPP SHARE BTN ══ */
  .btn-whatsapp {
    display: block; width: 100%; padding: 12px 8px;
    border-radius: 12px; border: none;
    background: linear-gradient(135deg, #128c3a, #25d366);
    color: #fff; font-size: 13px; font-weight: 700;
    cursor: pointer; margin-top: 8px; text-align: center;
    text-decoration: none; letter-spacing: 0.5px;
  }

  /* ══ RATING STARS ══ */
  #ratingBar {
    position: fixed; bottom: 80px; left: 0; right: 0;
    z-index: 500; display: none;
    justify-content: center; padding: 0 16px;
    animation: slideUp 0.4s ease;
  }
  #ratingBar.show { display: flex; }
  #ratingInner {
    background: var(--surface-card); border: 1px solid var(--border-soft);
    border-radius: 18px; padding: 14px 20px;
    display: flex; align-items: center; gap: 12px;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
    width: 100%; max-width: 480px;
  }
  #ratingText { font-size: 12px; color: var(--text-muted); flex: 1; }
  .star-btn { font-size: 22px; cursor: pointer; transition: transform 0.2s; }
  .star-btn:active { transform: scale(1.3); }
  #ratingClose { color: var(--text-muted); font-size: 18px; cursor: pointer; padding: 4px; }
