/* ===== TEMAS ===== */
    .theme-claro {
      --fondo: #ffffff;
      --card: #f3f4f6;
      --texto: #1f2937;
      --border: #d1d5db;
      --placeholder: #9ca3af;
      --gris: #6b7280;
    }
    /* Modificado para mayor contraste: Oscuro puro */
    .theme-oscuro {
      --fondo: #000000;
      --card: #111111;
      --texto: #f8fafc;
      --border: #334155;
      --placeholder: #475569;
      --gris: #94a3b8;
    }
    /* Modificado para mayor contraste: Tokyo vibrante */
    .theme-tokyo {
      --fondo: #1a1b26;
      --card: #24283b;
      --texto: #7aa2f7;
      --border: #bb9af7;
      --placeholder: #565f89;
      --gris: #9aa5ce;
    }
    /* ============================
       THEME: THE GRID (Cyberpunk)
       ============================ */
    @keyframes gridMove {
      from { background-position: 0 0; }
      to { background-position: 60px 60px; }
    }
    @keyframes scanline {
      0% { transform: translateY(-100%); opacity: 0.05; }
      100% { transform: translateY(100vh); opacity: 0.05; }
    }
    @keyframes neonPulse {
      0%, 100% { text-shadow: 0 0 5px #22d3ee, 0 0 20px #22d3ee, 0 0 40px #0ea5e9; }
      50% { text-shadow: 0 0 2px #22d3ee, 0 0 10px #22d3ee, 0 0 20px #0ea5e9; }
    }
    @keyframes borderGlow {
      0%, 100% { box-shadow: 0 0 5px #0ea5e9, 0 0 15px #0ea5e9, inset 0 0 5px rgba(14,165,233,0.1); }
      50% { box-shadow: 0 0 15px #22d3ee, 0 0 40px #22d3ee, inset 0 0 15px rgba(34,211,238,0.2); }
    }
    .theme-grid {
      --fondo: #000d1a;
      --card: #001428;
      --texto: #22d3ee;
      --border: #0ea5e9;
      --placeholder: #0369a1;
      --gris: #38bdf8;
      --verde: #22d3ee;
      --azul: #818cf8;
      --rosa: #f472b6;
      background-color: #000d1a !important;
      background-image:
        linear-gradient(rgba(14, 165, 233, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 165, 233, 0.08) 1px, transparent 1px),
        linear-gradient(rgba(34, 211, 238, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(34, 211, 238, 0.03) 1px, transparent 1px) !important;
      background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px!important;
      animation: gridMove 8s linear infinite;
    }
    .theme-grid::before {
      content: '';
      position: fixed;
      top: 0; left: 0; right: 0;
      height: 4px;
      background: linear-gradient(90deg, transparent, #22d3ee, #0ea5e9, transparent);
      animation: scanline 3s linear infinite;
      z-index: 9999;
      pointer-events: none;
    }
    .theme-grid body { font-family: 'Courier New', monospace; }
    .theme-grid .logo-bubble {
      background: transparent !important;
      border: 3px solid #22d3ee !important;
      color: #22d3ee !important;
      animation: borderGlow 2s ease infinite, pulseGlow 2s infinite !important;
      text-shadow: 0 0 20px #22d3ee, 0 0 60px #0ea5e9 !important;
    }
    .theme-grid .main-btn {
      background: transparent !important;
      border: 2px solid #0ea5e9 !important;
      color: #22d3ee !important;
      animation: borderGlow 2s ease infinite !important;
      letter-spacing: 2px;
      text-transform: uppercase;
    }
    .theme-grid .main-btn:hover {
      background: rgba(14,165,233,0.15) !important;
      box-shadow: 0 0 30px #22d3ee, 0 0 60px #0ea5e9 !important;
    }
    .theme-grid h1, .theme-grid h2, .theme-grid h3 { animation: neonPulse 3s ease infinite; }
    .theme-grid .destino, .theme-grid .dia, .theme-grid .evento {
      border: 1px solid #0ea5e9 !important;
      box-shadow: 0 0 10px rgba(14,165,233,0.3), inset 0 0 10px rgba(14,165,233,0.05);
    }
    .theme-grid button {
      background: linear-gradient(90deg, #0ea5e9, #22d3ee) !important;
      color: #000 !important;
      font-weight: bold !important;
    }

    /* ============================
       THEME: STARSHIP (Deep Space)
       ============================ */
    @keyframes twinkle {
      0%, 100% { opacity: 1; transform: scale(1); }
      50% { opacity: 0.2; transform: scale(0.5); }
    }
    @keyframes nebula {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }
    @keyframes shipGlow {
      0%, 100% { text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 30px rgba(147,197,253,0.4); }
      50% { text-shadow: 0 0 20px rgba(255,255,255,1), 0 0 60px rgba(196,181,253,0.6), 0 0 100px rgba(147,197,253,0.4); }
    }
    .theme-starship {
      --fondo: #020209;
      --card: rgba(255,255,255,0.04);
      --texto: #e2e8f0;
      --border: rgba(255,255,255,0.15);
      --placeholder: rgba(255,255,255,0.3);
      --gris: #94a3b8;
      --verde: #93c5fd;
      --azul: #c4b5fd;
      --rosa: #f9a8d4;
      background: radial-gradient(ellipse at 20% 50%, rgba(29,8,80,0.6) 0%, transparent 60%),
                  radial-gradient(ellipse at 80% 20%, rgba(8,30,80,0.5) 0%, transparent 55%),
                  radial-gradient(ellipse at 60% 80%, rgba(60,10,80,0.4) 0%, transparent 50%),
                  #020209 !important;
      background-size: 400% 400% !important;
      animation: nebula 20s ease infinite !important;
      letter-spacing: 1.5px;
    }
    /* CSS Stars using box-shadow trick */
    .theme-starship::before, .theme-starship::after {
      content: '';
      position: fixed;
      width: 2px; height: 2px;
      top: 0; left: 0;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
    }
    .theme-starship::before {
      background: white;
      box-shadow:
        120px 45px 0 white, 280px 100px 0 rgba(255,255,255,0.8),
        450px 30px 0 rgba(255,255,255,0.6), 680px 180px 0 white,
        820px 60px 0 rgba(255,255,255,0.9), 950px 140px 0 white,
        1100px 80px 0 rgba(255,255,255,0.7), 230px 280px 0 white,
        410px 350px 0 rgba(255,255,255,0.8), 560px 420px 0 white,
        730px 290px 0 rgba(255,255,255,0.6), 890px 380px 0 white,
        60px 520px 0 rgba(255,255,255,0.9), 340px 580px 0 white,
        770px 490px 0 rgba(255,255,255,0.7), 1050px 560px 0 white;
      animation: twinkle 4s ease infinite;
    }
    .theme-starship::after {
      background: rgba(196,181,253,0.8);
      box-shadow:
        180px 200px 0 rgba(147,197,253,0.9), 380px 150px 0 rgba(249,168,212,0.7),
        590px 300px 0 rgba(196,181,253,0.8), 760px 400px 0 rgba(147,197,253,0.6),
        920px 250px 0 rgba(249,168,212,0.9), 140px 450px 0 rgba(196,181,253,0.7),
        480px 500px 0 rgba(147,197,253,0.8), 840px 150px 0 rgba(249,168,212,0.6);
      animation: twinkle 6s ease infinite 2s;
    }
    .theme-starship .welcome,
    .theme-starship .container { z-index: 1; position: relative; }
    .theme-starship .logo-bubble {
      background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(196,181,253,0.2)) !important;
      border: 1px solid rgba(255,255,255,0.3) !important;
      backdrop-filter: blur(20px);
      animation: shipGlow 3s ease infinite !important;
      color: white !important;
    }
    .theme-starship .main-btn {
      background: linear-gradient(135deg, rgba(255,255,255,0.08), rgba(196,181,253,0.15)) !important;
      border: 1px solid rgba(255,255,255,0.2) !important;
      backdrop-filter: blur(10px);
      color: white !important;
    }
    .theme-starship .main-btn:hover {
      background: linear-gradient(135deg, rgba(255,255,255,0.2), rgba(196,181,253,0.3)) !important;
      border-color: rgba(255,255,255,0.5) !important;
      animation: shipGlow 1s ease infinite !important;
    }
    .theme-starship .destino, .theme-starship .dia, .theme-starship .evento {
      background: rgba(255,255,255,0.04) !important;
      backdrop-filter: blur(10px);
      border: 1px solid rgba(255,255,255,0.1) !important;
    }
    .theme-starship h1, .theme-starship h2 { animation: shipGlow 3s ease infinite; }

    /* ============================
       THEME: ARES (unchanged)
       ============================ */
    
    /* ============================
       THEME: TERMINAL (Retro Green)
       ============================ */
    .theme-terminal {
      --fondo: #000000;
      --card: #050505;
      --texto: #00ff41;
      --border: #00ff41;
      --placeholder: #003300;
      --gris: #008f11;
      --verde: #00ff41;
      --azul: #00cc00;
      --rosa: #00aa00;
      font-family: 'Courier New', monospace !important;
    }
    .theme-terminal body {
      background-image: radial-gradient(circle, rgba(0,255,65,0.05) 1px, transparent 1px);
      background-size: 20px 20px;
    }
    .theme-terminal .main-btn, .theme-terminal .herramienta-btn {
      background: transparent !important;
      border: 1px solid #00ff41 !important;
      color: #00ff41 !important;
      border-radius: 0 !important;
      text-transform: uppercase;
      box-shadow: 0 0 5px #00ff41;
    }
    .theme-terminal .main-btn:hover {
      background: #00ff41 !important;
      color: #000 !important;
      box-shadow: 0 0 20px #00ff41;
    }
    .theme-terminal .destino, .theme-terminal .dia, .theme-terminal .evento {
      border: 1px solid #00ff41 !important;
      border-radius: 0 !important;
      background: #000 !important;
    }
    .theme-terminal .logo-bubble {
      background: #000 !important;
      border: 2px solid #00ff41 !important;
      color: #00ff41 !important;
      border-radius: 0 !important;
      box-shadow: 0 0 15px #00ff41;
    }
    
    .theme-ares {
      --fondo: #0a0000;
      --card: #1a0505;
      --texto: #ff2a2a;
      --border: #ff0000;
      --placeholder: #660000;
      --gris: #3d0000;
      font-family: 'Orbitron', sans-serif !important;
      text-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
    }
    .theme-ares .main-btn, .theme-ares .herramienta-btn {
      box-shadow: 0 0 15px rgba(255, 0, 0, 0.3);
      border: 1px solid #ff0000;
    }
    .theme-ares .lugar-card:hover {
      box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
    }

    .lang-es {
      --verde: #34d399;
      --azul: #3b82f6;
      --rosa: #ec4899;
    }
    .lang-en {
      --verde: #60a5fa;
      --azul: #8b5cf6;
      --rosa: #f472b6;
    }
    .lang-fr {
      --verde: #2563eb;
      --azul: #dc2626;
      --rosa: #fbbf24;
    }
    .lang-de {
      --verde: #000000;
      --azul: #dd0000;
      --rosa: #ffce00;
    }
    .lang-it {
      --verde: #008c45;
      --azul: #ffffff;
      --rosa: #cd212a;
    }
    * { margin:0; padding:0; box-sizing:border-box; }
    body {
      font-family: system-ui, sans-serif;
      background: linear-gradient(135deg, var(--fondo), var(--fondo));
      color: var(--texto);
      min-height: 100vh;
      padding: 20px;
      overflow-y: auto;
      transition: background 0.5s ease, color 0.3s ease;
    }
    .welcome {
      position: fixed;
      inset: 0;
      background: var(--fondo);
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      z-index: 100;
      transition: opacity 0.8s cubic-bezier(0.4,0,0.2,1), background 0.3s;
      overflow-y: auto;
      padding: 20px;
      animation: fadeInScale 0.5s ease;
    }
    .welcome.hidden { opacity:0; pointer-events:none; transform:scale(0.95); }
    .top-selectors {
      position: absolute;
      top:20px; right:20px; display:flex; gap:10px; z-index:200; animation:slideRight 0.5s ease;
    }
    .lang-button, .theme-button, .user-button {
      width:50px; height:50px; border-radius:50%; background:linear-gradient(135deg,var(--verde),var(--azul));
      border:2px solid var(--texto); color:var(--texto); font-weight:bold; font-size:1.2rem; cursor:pointer;
      box-shadow:0 4px 10px rgba(0,0,0,0.5); transition:transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.3s, background 0.3s;
      display:flex; align-items:center; justify-content:center;
    }
    .lang-button:hover, .theme-button:hover, .user-button:hover {
      transform:scale(1.15) rotate(5deg); box-shadow:0 0 25px var(--rosa);
    }
    .user-button.logged-in {
      background: linear-gradient(135deg, var(--rosa), var(--azul));
      border-color: var(--verde);
    }
    /* Toast Notification */
    #toast-container {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      z-index: 1000;
      display: flex;
      flex-direction: column;
      gap: 10px;
      pointer-events: none;
    }
    .toast {
      background: rgba(15, 23, 42, 0.9);
      backdrop-filter: blur(10px);
      color: white;
      padding: 12px 25px;
      border-radius: 30px;
      border: 1px solid var(--border);
      box-shadow: 0 10px 25px rgba(0,0,0,0.5);
      animation: slideUpFade 0.3s ease-out forwards;
      font-size: 0.9rem;
      display: flex;
      align-items: center;
      gap: 10px;
    }
    @keyframes slideUpFade {
      from { transform: translateY(20px); opacity: 0; }
      to { transform: translateY(0); opacity: 1; }
    }
    .toast.success { border-color: var(--verde); }
    .toast.error { border-color: var(--rosa); }
    .toast.info { border-color: var(--azul); }

    /* Ares Escape Banner as Toast */
    #ares-esc-banner {
      position: fixed;
      top: 20px;
      left: 50%;
      transform: translateX(-50%);
      background: rgba(255, 0, 128, 0.2);
      backdrop-filter: blur(10px);
      border: 1px solid var(--rosa);
      color: var(--rosa);
      padding: 10px 20px;
      border-radius: 12px;
      z-index: 2000;
      font-weight: bold;
      letter-spacing: 1px;
      pointer-events: none;
      display: none;
      box-shadow: 0 0 20px rgba(255, 0, 128, 0.3);
    }

    /* Feed styling improvements */
    .feed-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 16px;
      margin-bottom: 20px;
      overflow: hidden;
      transition: transform 0.3s ease;
    }
    .feed-card:hover { transform: translateY(-5px); }
    .feed-img { width: 100%; height: 200px; object-fit: cover; }
    .feed-body { padding: 15px; }
    .feed-actions { display: flex; gap: 10px; margin-top: 10px; }
    .btn-add-feed {
      background: var(--verde);
      color: white;
      border: none;
      padding: 8px 15px;
      border-radius: 8px;
      cursor: pointer;
      font-weight: bold;
    }

    .colab-avatar { width:42px; height:42px; border-radius:50%; background:linear-gradient(135deg,var(--verde),var(--azul)); color:white; display:flex; align-items:center; justify-content:center; font-weight:bold; }
    .lang-button:hover, .theme-button:hover { transform:scale(1.15) rotate(5deg); box-shadow:0 0 25px var(--rosa); }
    .lang-dropdown, .theme-dropdown {
      position:absolute; top:60px; right:0; background:var(--card); border-radius:16px; padding:8px 0;
      box-shadow:0 10px 30px rgba(0,0,0,0.5); display:none; flex-direction:column; min-width:100px;
      border:1px solid var(--border); backdrop-filter:blur(10px); animation:slideDown 0.2s ease;
    }
    .lang-dropdown.show, .theme-dropdown.show { display:flex; }
    .lang-option, .theme-option {
      padding:12px 20px; cursor:pointer; color:var(--texto); font-weight:500; transition:background 0.2s,transform 0.2s;
      text-align:center;
    }
    .lang-option:hover, .theme-option:hover { background:rgba(255,255,255,0.15); transform:translateX(5px); }
    .lang-option.active, .theme-option.active { background:linear-gradient(90deg,var(--verde),var(--azul)); font-weight:bold; color:white; }
    @keyframes slideDown { from{opacity:0;transform:translateY(-15px);} to{opacity:1;transform:translateY(0);} }
    .logo-bubble {
      width:280px; height:120px; background:linear-gradient(90deg,var(--verde),var(--azul)); border-radius:999px;
      display:flex; align-items:center; justify-content:center; font-size:4.5rem; font-weight:900; color:white;
      text-shadow:0 4px 20px rgba(0,0,0,0.5); box-shadow:0 10px 40px rgba(52,211,153,0.4);
      transition:transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.5s, background 0.3s;
      animation:pulseGlow 2s infinite;
    }
    @keyframes pulseGlow {
      0% { box-shadow:0 10px 40px rgba(52,211,153,0.4); transform:scale(1); }
      50% { box-shadow:0 15px 60px rgba(52,211,153,0.8); transform:scale(1.02); }
      100% { box-shadow:0 10px 40px rgba(52,211,153,0.4); transform:scale(1); }
    }
    .logo-bubble:hover { transform:scale(1.08) translateY(-10px) rotate(2deg); box-shadow:0 20px 60px rgba(52,211,153,0.8); }
    .main-buttons {
      display:flex; flex-wrap:wrap; justify-content:center; gap:15px; margin:30px 0 20px; animation:slideUp 0.6s ease;
    }
    .main-btn {
      padding:20px 35px; font-size:1.3rem; font-weight:bold; color:white; background:linear-gradient(45deg,var(--verde),var(--azul));
      border:none; border-radius:999px; cursor:pointer; box-shadow:0 8px 30px rgba(52,211,153,0.3);
      transition:transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s, box-shadow 0.4s;
      min-width:140px; min-height:58px; flex:1 1 140px; position:relative; overflow:hidden; display:flex; align-items:center; justify-content:center;
    }
    .main-btn::after {
      content:''; position:absolute; top:50%; left:50%; width:0; height:0; border-radius:50%;
      background:rgba(255,255,255,0.3); transform:translate(-50%,-50%); transition:width 0.6s, height 0.6s;
    }
    .main-btn:hover::after { width:300px; height:300px; }
    .main-btn.tools-btn { background:linear-gradient(45deg,var(--rosa),#c026d3); }
    .main-btn.discover-btn { background:linear-gradient(45deg,#3b82f6,#8b5cf6); }
    .main-btn:hover { transform:translateY(-6px) scale(1.05); box-shadow:0 15px 50px rgba(52,211,153,0.7); }
    .version {
      position:absolute; bottom:10px; right:20px; font-size:0.9rem; color:var(--gris); opacity:0.5;
      letter-spacing:1px; z-index:150; transition:opacity 0.3s, transform 0.3s; animation:fadeIn 1s ease;
    }
    .version:hover { opacity:1; transform:scale(1.1) rotate(2deg); }
    .footer-logo {
      margin-top:40px; font-size:1rem; color:var(--gris); opacity:0.6; letter-spacing:2px; font-weight:300;
      text-transform:uppercase; transition:opacity 0.3s, transform 0.3s; animation:fadeInUp 0.8s ease;
    }
    .footer-logo:hover { opacity:1; transform:translateY(-2px) scale(1.05); }
    .container {
      max-width:1100px; margin:0 auto; padding:10px; position:relative; animation:fadeIn 0.5s ease;
    }
    .back-button {
      position:absolute; top:20px; left:20px; font-size:2rem; font-weight:bold; color:white; opacity:0.8;
      cursor:pointer; transition:opacity 0.3s, transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), color 0.2s, text-shadow 0.3s;
      z-index:50; line-height:1; text-decoration:none; background:rgba(255,255,255,0.1); border:1px solid rgba(255,255,255,0.2); backdrop-filter:blur(10px); box-shadow: 0 8px 32px rgba(0,0,0,0.3); 
      border-radius:12px; width:60px; height:60px; display:flex; align-items:center; justify-content:center;
      backdrop-filter:blur(5px); text-shadow:0 0 5px currentColor; animation:slideLeft 0.5s ease;
    }
    .back-button:hover { opacity:1; color:var(--verde); transform:scale(1.1) rotate(-5deg); border-color:var(--verde); box-shadow:0 0 15px var(--verde); }
    h1 {
      font-size:2.8rem; text-align:center; margin:40px 0 60px; padding-top:20px; color:var(--texto); animation:slideDown 0.6s ease;
    }
    @keyframes slideDown { from{opacity:0;transform:translateY(-30px);} to{opacity:1;transform:translateY(0);} }
    @keyframes slideUp { from{opacity:0;transform:translateY(30px);} to{opacity:1;transform:translateY(0);} }
    @keyframes slideLeft { from{opacity:0;transform:translateX(-30px);} to{opacity:1;transform:translateX(0);} }
    @keyframes slideRight { from{opacity:0;transform:translateX(30px);} to{opacity:1;transform:translateX(0);} }
    @keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
    @keyframes fadeInUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }
    @keyframes fadeInScale { from{opacity:0;transform:scale(0.9);} to{opacity:1;transform:scale(1);} }
    .datos-generales {
      display:flex; flex-direction:column; gap:15px; margin-bottom:30px; padding:20px; background:var(--card);
      border-radius:20px; box-shadow:0 4px 15px rgba(0,0,0,0.2); animation:fadeInUp 0.6s ease;
      transition:transform 0.3s, box-shadow 0.3s;
    }
    .datos-generales:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(0,0,0,0.3); }
    .fila-dato {
      display:flex; gap:15px; flex-wrap:wrap; align-items:center; transition:transform 0.2s;
    }
    .fila-dato:hover { transform:translateX(5px); }
    .fila-dato label {
      min-width:120px; color:var(--gris); font-size:1.1rem; transition:color 0.2s;
    }
    .fila-dato:hover label { color:var(--verde); }
    .fila-dato input, .fila-dato select {
      flex:1; min-width:200px; padding:12px; font-size:1rem; border:2px solid var(--border); border-radius:12px;
      background:var(--fondo); color:var(--texto); transition:border-color 0.3s, box-shadow 0.3s, transform 0.2s;
    }
    .fila-dato input:focus, .fila-dato select:focus {
      border-color:var(--verde); box-shadow:0 0 0 4px rgba(52,211,153,0.2); outline:none; transform:scale(1.02);
    }
    .campo-vuelta {
      display:flex; gap:10px; flex:1; flex-wrap:wrap;
    }
    .campo-vuelta input[type="text"] { flex:2; min-width:200px; }
    .campo-vuelta input[type="number"] { width:70px; }
    .add-destino {
      display:flex; gap:12px; margin-bottom:40px; flex-wrap:wrap; justify-content:center; animation:fadeIn 0.7s ease;
    }
    input, select {
      flex:1; min-width:200px; padding:16px; font-size:1.1rem; border:2px solid var(--border); border-radius:16px;
      background:var(--card); color:var(--texto); transition:border-color 0.3s, box-shadow 0.3s, background 0.3s, transform 0.2s;
    }
    input:focus, select:focus {
      border-color:var(--verde); box-shadow:0 0 0 4px rgba(52,211,153,0.2); outline:none; transform:scale(1.02);
    }
    input::placeholder { color:var(--placeholder); font-style:italic; transition:color 0.2s; }
    input:focus::placeholder { color:transparent; }
    button {
      padding:16px 32px; font-size:1.1rem; background:linear-gradient(45deg,var(--verde),#10b981); color:white;
      border:none; border-radius:999px; cursor:pointer; transition:transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s, box-shadow 0.3s;
      position:relative; overflow:hidden; min-height:48px; display:flex; align-items:center; justify-content:center;
    }
    button::after {
      content:''; position:absolute; top:50%; left:50%; width:0; height:0; border-radius:50%;
      background:rgba(255,255,255,0.3); transform:translate(-50%,-50%); transition:width 0.6s, height 0.6s;
    }
    button:hover::after { width:300px; height:300px; }
    button:hover { transform:translateY(-4px) scale(1.05); box-shadow:0 12px 30px rgba(52,211,153,0.5); }
    .destinos { display:grid; gap:24px; }
    .destino {
      background:var(--card); border-radius:20px; padding:20px; box-shadow:0 8px 30px rgba(0,0,0,0.3);
      transition:transform 0.4s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s, box-shadow 0.4s;
      position:relative; animation:fadeInUp 0.6s ease;
    }
    .destino:hover { transform:translateY(-8px) scale(1.02); box-shadow:0 20px 50px rgba(0,0,0,0.5); }
    .destino-header {
      display:flex; align-items:center; gap:16px; margin-bottom:16px;
    }
    .bubble-name {
      width:68px; height:68px; background:linear-gradient(135deg,var(--verde),var(--azul)); border-radius:50%;
      display:flex; align-items:center; justify-content:center; font-size:1.6rem; font-weight:bold; color:white;
      box-shadow:0 6px 20px rgba(52,211,153,0.4); transition:transform 0.5s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s, box-shadow 0.3s;
    }
    .bubble-name:hover { transform:scale(1.2) rotate(10deg); box-shadow:0 10px 30px rgba(52,211,153,0.8); }
    .destino h2 { font-size:1.8rem; flex:1; color:var(--texto); transition:color 0.3s; }
    .destino:hover h2 { color:var(--verde); }
    /* Estilo unificado para todos los botones de cierre (crucesitas) */
    .close-icon {
      background: none;
      border: none;
      color: var(--gris);
      font-size: 2.2rem; /* Reduced from 2.5rem to 2.2rem */
      font-weight: 300;
      line-height: 1;
      cursor: pointer;
      opacity: 0.6;
      transition: opacity 0.3s, transform 0.3s, color 0.3s;
      padding: 0 8px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .close-icon:not([disabled]):not(.disabled):hover {
      opacity: 1;
      color: var(--rosa); /* Red/pink color for close */
      transform: scale(1.2) rotate(90deg); /* 90° rotation instead of 5deg */
    }
    /* Transporte con tramos (icono avión) */
    .transport-icon {
      font-size:1.5rem; opacity:0.9; cursor:pointer;
      transition:opacity 0.3s, transform 0.3s; color:var(--verde);
      background:rgba(0,0,0,0.4); padding:4px 12px; border-radius:8px; border:1px solid var(--border);
    }
    .transport-icon:hover { opacity:1; transform:scale(1.1) rotate(5deg); box-shadow:0 0 10px var(--verde); }
    .transport-fields {
      margin:15px 0 10px; padding:15px; background:rgba(0,0,0,0.3); border-radius:12px; display:none; flex-direction:column; gap:15px;
      animation:slideDown 0.3s ease;
    }
    .transport-fields.show { display:flex; }
    .tramos-container { margin-top:15px; background:rgba(0,0,0,0.1); border-radius:12px; padding:10px; }
    .tramo-item {
      background:var(--card); border-radius:10px; padding:10px; margin-bottom:10px; border:1px solid var(--border);
    }
    .tramo-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
    .tramo-header h6 { font-size:1rem; color:var(--rosa); margin:0; }
    .tramo-fields {
      display:grid; grid-template-columns:repeat(auto-fit, minmax(120px,1fr)); gap:8px;
    }
    .tramo-fields input, .tramo-fields select {
      padding:6px; font-size:0.9rem; border:1px solid var(--border); border-radius:6px; background:var(--fondo); color:var(--texto);
    }
    .escalas-container { margin-top:8px; padding-left:10px; border-left:2px solid var(--azul); }
    .escala-item {
      display:flex; gap:5px; margin-bottom:5px; align-items:center;
    }
    .escala-item input { flex:2; padding:4px; }
    .add-escala-btn {
      background:var(--azul); color:white; border:none; border-radius:4px; padding:2px 8px; font-size:0.7rem; cursor:pointer; margin-top:5px;
    }
    .dias { margin-left:10px; margin-top:12px; }
    .dia {
      background:var(--fondo); border-radius:16px; padding:16px; margin:12px 0; position:relative;
      transition:transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s, box-shadow 0.3s;
      animation:slideRight 0.4s ease;
    }
    .dia:hover { transform:translateX(8px) scale(1.01); box-shadow:0 8px 20px rgba(0,0,0,0.3); }
    .dia-header {
      display:flex; justify-content:space-between; align-items:center; margin-bottom:12px; flex-wrap:wrap;
    }
    .dia h4 { color:var(--gris); display:flex; align-items:center; gap:8px; transition:color 0.3s; margin:0; }
    .dia:hover h4 { color:var(--verde); }
    .warning-icon { color:#fbbf24; font-size:1.2rem; cursor:help; animation:pulse 1.5s infinite; }
    .warning-icon:hover { transform:scale(1.3) rotate(5deg); }
    .dia-actions { display:flex; gap:8px; }
    .copy-icon, .remove-dia {
      background:none; border:none; color:var(--gris); font-size:1.15rem; /* Reduced from 1.3rem to 1.15rem */
      cursor:pointer; opacity:0.6;
      padding:0 5px; transition:opacity 0.3s, color 0.3s, transform 0.3s;
      display: inline-flex;
      align-items: center;
      justify-content: center;
    }
    .copy-icon:not([disabled]):not(.disabled):hover {
      opacity:1;
      color:var(--azul); /* Blue color matching theme */
      transform:scale(1.2) skew(-10deg); /* Scale and skew instead of just scale+rotate */
    }
    .remove-dia:hover { opacity:1; color:#ef4444; transform:scale(1.2) rotate(-5deg); }
    .evento {
      margin:16px 0; padding:12px; background:rgba(30,41,59,0.8); border-radius:12px; border:1px solid var(--border);
      transition:border 0.3s, transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.3s;
      animation:fadeIn 0.4s ease;
    }
    .evento:hover { transform:translateX(6px) scale(1.02); box-shadow:0 6px 20px rgba(0,0,0,0.3); }
    .evento.conflicto { border:3px solid #ef4444; animation:shake 0.5s; }
    .evento.advertencia { border:3px solid #fbbf24; }
    @keyframes shake {
      0%,100%{transform:translateX(0);} 10%,30%,50%,70%,90%{transform:translateX(-2px);}
      20%,40%,60%,80%{transform:translateX(2px);}
    }
    .fila-hora-titulo {
      display:flex; gap:10px; margin-bottom:10px; align-items:center; flex-wrap:wrap;
    }
    .fila-hora-titulo input[type="time"] { width:110px; }
    .evento .detalles-evento {
      display:flex; gap:10px; margin-bottom:10px; flex-wrap:wrap; align-items:center;
    }
    .evento .detalles-evento input[type="number"] { width:70px; }
    .evento input[type="text"].notas-input { width:100%; }
    .costos-adicionales { margin-top:8px; padding:8px; background:rgba(0,0,0,0.15); border-radius:6px; }
    .costos-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:6px; }
    .costos-header h5 { color:var(--rosa); font-size:0.85rem; margin:0; }
    .add-costo-btn {
      background:var(--azul); color:white; border:none; border-radius:4px; padding:2px 8px; font-size:0.7rem; cursor:pointer;
    }
    .costo-adicional-item {
      display:flex; gap:6px; margin-bottom:6px; align-items:center; width:100%;
    }
    .costo-adicional-item input[type="text"] { flex:2; min-width:80px; }
    .costo-adicional-item input[type="number"] { width:50px; }
    .remove-costo { background:#ef4444; color:white; border:none; border-radius:3px; padding:2px 6px; font-size:0.7rem; }
    .evento-actions { display:flex; gap:8px; justify-content:flex-end; }
    .remove-ev, .copy-ev {
      padding:6px 12px; font-size:0.85rem; border:none; border-radius:6px; color:white; cursor:pointer;
      transition:transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), background 0.3s, box-shadow 0.3s;
    }
    .remove-ev { background:#dc2626; }
    .remove-ev:hover { background:#b91c1c; transform:scale(1.1) rotate(-2deg); }
    .copy-ev { background:var(--azul); }
    .copy-ev:hover { background:var(--azul); filter:brightness(1.1); transform:scale(1.1) rotate(2deg); }
    @media(max-width:600px) {
      .fila-hora-titulo, .evento .detalles-evento, .tramo-fields { flex-direction:column; }
      .fila-hora-titulo input[type="time"] { width:100%; }
    }
    .add-evento-btn {
      margin-top:12px; padding:10px 20px; font-size:0.95rem; background:linear-gradient(45deg,#60a5fa,#3b82f6);
      box-shadow:0 4px 15px rgba(59,130,246,0.3); border:none; border-radius:999px; color:white; cursor:pointer;
    }
    #btn-resumen {
      display:block; margin:60px auto; padding:20px 80px; font-size:1.6rem; background:linear-gradient(45deg,var(--rosa),#c026d3);
      box-shadow:0 10px 40px rgba(236,72,153,0.4); border:none; border-radius:999px; color:white; cursor:pointer;
      animation:pulseGlow 2s infinite; position:relative; overflow:hidden;
    }
    #btn-resumen::after { content:''; position:absolute; top:50%; left:50%; width:0; height:0; border-radius:50%; background:rgba(255,255,255,0.3); transform:translate(-50%,-50%); transition:width 0.6s, height 0.6s; }
    #btn-resumen:hover::after { width:500px; height:500px; }
    #btn-resumen:hover { transform:translateY(-8px) scale(1.08); box-shadow:0 20px 60px rgba(236,72,153,0.8); animation:none; }
    
    /* ADDONS: Vaca Switch */
    .switch-vaca-container { display: flex; align-items: center; gap: 10px; margin: 15px 0; padding: 10px; background: rgba(0,0,0,0.2); border-radius: 8px; }
    .switch { position: relative; display: inline-block; width: 40px; height: 20px; }
    .switch input { opacity: 0; width: 0; height: 0; }
    .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--gris); transition: .4s; border-radius: 20px; }
    .slider:before { position: absolute; content: ""; height: 14px; width: 14px; left: 3px; bottom: 3px; background-color: var(--fondo); transition: .4s; border-radius: 50%; }
    input:checked + .slider { background-color: var(--verde); }
    input:checked + .slider:before { transform: translateX(20px); }
    .vaca-result { color: var(--rosa); font-weight: bold; font-size: 1.2rem; margin-top: 10px; }

    /* ADDONS: Modales & Labs */
    #modal-panel-herramientas, #modal-calendario, #modal-viajes, #modal-presentacion, #modal-mapa, #modal-conversor, #modal-clima, #modal-colaboradores, #modal-descubrir, #modal-viaje-activo {
      position:fixed; inset:0; background:rgba(15,23,42,0.96); backdrop-filter:blur(8px); display:none; align-items:center; justify-content:center; z-index:300; padding:10px;
    }
    
    /* Discover full screen */
    #modal-descubrir {
      background: var(--fondo);
      padding: 0;
    }
    #modal-descubrir .descubrir-content {
      max-width: none;
      width: 100%;
      height: 100%;
      max-height: none;
      border-radius: 0;
      border: none;
      background: var(--fondo);
    }

    .panel-herramientas-content, .calendario-content, .modal-content, .presentacion-content, .mapa-content, .conversor-content, .clima-content, .colaboradores-content, .descubrir-content {
      max-width: 1150px; width: 95%; max-height:90vh; background:linear-gradient(135deg,var(--card),var(--fondo)); border-radius:24px; padding:20px; box-shadow:0 20px 80px rgba(0,0,0,0.6); position:relative; animation:scaleIn 0.4s ease;
      overflow-y:auto;
    }
    .mapa-content { height: 90vh; display: flex; flex-direction: column; padding: 20px; }
    #map { width: 100%; flex: 1; border-radius: 16px; background: #1a1e24; min-height: 300px; }
    @keyframes scaleIn { from{opacity:0;transform:scale(0.8);} to{opacity:1;transform:scale(1);} }
    .panel-herramientas-header, .calendario-header, .presentacion-header, .conversor-header, .clima-header, .colab-header, .descubrir-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
    .panel-herramientas-header h2, .calendario-header h2, .conversor-header h2, .clima-header h2, .colab-header h2, .descubrir-header h2 { color:var(--verde); }
    .close-panel, .close-calendario, .close-modal, .close-conversor, .close-clima, .close-mapa, .close-resumen, .close-colaboradores, .close-descubrir, .close-icon {
      background: none; border: none; color: var(--gris); font-size: 2.5rem; font-weight: 300; line-height: 1; cursor: pointer; opacity: 0.6; transition: opacity 0.3s, transform 0.3s, color 0.3s; padding: 0; display: inline-flex; align-items: center; justify-content: center;
    }
    .close-panel:hover, .close-calendario:hover, .close-modal:hover, .close-conversor:hover, .close-clima:hover, .close-mapa:hover, .close-resumen:hover, .close-colaboradores:hover, .close-descubrir:hover, .close-icon:hover {
      opacity: 1; color: #ef4444; transform: scale(1.2) rotate(90deg);
    }
    .herramientas-grid { display:flex; flex-direction:column; gap:15px; }
    .herramienta-btn { padding:15px 20px; font-size:1.2rem; background:var(--card); border:1px solid var(--border); border-radius:16px; color:var(--texto); cursor:pointer; text-align:left; }
    .herramienta-btn:hover { background:var(--fondo); transform:translateX(8px) scale(1.02); }
    .calendario-nav { display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; }
    .calendario-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:5px; min-width:350px; }
    .calendario-dia-semana { text-align:center; font-weight:bold; color:var(--gris); padding:8px; }
    .calendario-dia { text-align:center; padding:8px; border-radius:8px; background:var(--fondo); cursor:pointer; }
    .calendario-dia.evento { background:var(--verde); color:black; font-weight:bold; }
    .eventos-dia h3 { color:var(--verde); }
    .evento-item { padding:10px; border-bottom:1px solid var(--border); }
    /* modal viajes */
    .modal-tabs { display:flex; gap:10px; border-bottom:1px solid var(--gris); padding-bottom:10px; flex-wrap:wrap; }
    .tab-btn { background:none; border:none; color:var(--gris); padding:8px 15px; cursor:pointer; }
    .tab-btn.active { background:linear-gradient(45deg,var(--verde),var(--azul)); color:white; border-radius:20px; }
    .tab-content { display:none; }
    .tab-content.active { display:block; }
    .save-trip, .import-export { display:flex; gap:10px; flex-wrap:wrap; margin-bottom:20px; }
    .trip-list { display:flex; flex-direction:column; gap:10px; max-height: 300px; overflow-y: auto; }
    .trip-item { background:rgba(255,255,255,0.05); border-radius:16px; padding:15px; display:flex; flex-wrap:wrap; justify-content:space-between; align-items:center; border:1px solid var(--border); cursor:pointer; }
    .trip-item:hover { background:rgba(255,255,255,0.1); }
    .trip-info h4 { color:var(--verde); margin-bottom:4px; }
    .trip-actions button { padding:4px 8px; font-size:0.8rem; background:var(--azul); margin-left:5px; }
    /* presentacion */
    .presentacion-nav { display:flex; gap:10px; margin-top:20px; justify-content:center; }
    .presentacion-nav button { padding:12px 28px; background:linear-gradient(135deg,var(--azul),var(--rosa)); color:white; border:none; border-radius:20px; cursor:pointer; font-size:1rem; font-weight:600; transition:transform 0.2s,box-shadow 0.2s; }
    .presentacion-nav button:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(99,102,241,0.4); }
    .presentacion-dia { font-size:2rem; color:var(--rosa); font-weight:bold; margin-bottom:15px; text-align:center; }
    .presentacion-evento { background:rgba(255,255,255,0.04); padding:28px; border-left:4px solid var(--azul); border-radius:12px; margin-bottom:10px; }
    .presentacion-evento h3 { font-size:1.4rem; color:var(--verde); margin-bottom:10px; }
    .presentacion-evento p { font-size:1rem; line-height:1.6; color:var(--texto); margin:6px 0; }
    /* resumen */
    #pantalla-resumen { position:fixed; inset:0; background:rgba(15,23,42,0.96); backdrop-filter:blur(8px); display:none; align-items:center; justify-content:center; z-index:90; padding:20px; }
    .resumen-content { max-width:1000px; width:100%; max-height:90vh; overflow-y:auto; background:linear-gradient(135deg,var(--card),var(--fondo)); border-radius:24px; padding:40px; position:relative; }
    .resumen-header { display:flex; flex-direction:column; gap:15px; margin-bottom:20px; }
    .resumen-header h2 { font-size:2.8rem; background:linear-gradient(90deg,var(--verde),var(--azul),var(--rosa)); -webkit-background-clip:text; background-clip:text; -webkit-text-fill-color:transparent; margin:0; }
    .resumen-actions { display:flex; gap:10px; flex-wrap:wrap; }
    .resumen-actions button { padding:8px 16px; background:linear-gradient(45deg,var(--verde),var(--azul)); color:white; border:none; border-radius:20px; cursor:pointer; }
    .view-toggle { background:var(--card) !important; border:1px solid var(--gris) !important; color:var(--texto) !important; }
    .estadisticas { display:flex; flex-wrap:wrap; gap:15px; justify-content:space-around; margin:20px 0; padding:20px; background:rgba(0,0,0,0.2); border-radius:16px; }
    .estadistica-item { text-align:center; min-width:100px; }
    .estadistica-valor { font-size:2rem; font-weight:bold; color:var(--verde); }
    .estadistica-etiqueta { font-size:0.8rem; color:var(--gris); text-transform:uppercase; }
    .ciudad-block { background:rgba(255,255,255,0.06); border-radius:20px; padding:20px; min-width:280px; border:1px solid var(--border); margin-bottom:15px; }
    .ciudad-block h3 { color:var(--verde); margin-bottom:12px; }
    .transporte-info { margin:8px 0; padding:8px; background:rgba(0,0,0,0.2); border-left:2px solid var(--gris); }
    .costo-total { margin-top:10px; font-weight:bold; color:#fbbf24; text-align:right; }
    .close-resumen { position:absolute; top:30px; right:30px; font-size:2.5rem; cursor:pointer; color:var(--gris); }
    
    .nota-resumen { margin-left:1.5rem; color:var(--gris); font-size:0.95rem; }
    /* conversor */
    .conversor-row { display:flex; gap:10px; margin-bottom:15px; align-items:center; }
    #conversor-resultado { font-size:1.5rem; font-weight:bold; color:var(--rosa); text-align:center; margin:10px 0; }

    /* Clima */
    .clima-search-row { display:flex; gap:10px; margin-bottom:20px; flex-wrap:wrap; }
    .clima-search-row input { flex:1; min-width:200px; padding:14px 16px; background:rgba(255,255,255,0.05); border:1px solid var(--border); border-radius:12px; color:white; font-size:1rem; }
    .clima-search-row button { padding:14px 24px; background:linear-gradient(135deg,#38bdf8,#0ea5e9); border:none; color:white; border-radius:12px; font-weight:bold; cursor:pointer; white-space:nowrap; }
    .clima-resultados { min-height:60px; }
    .clima-placeholder { color:var(--gris); text-align:center; padding:30px 10px; }
    .clima-search-hint { padding:12px 10px 20px; font-size:0.85rem; }
    .clima-feed-viaje { margin-bottom:24px; padding-bottom:20px; border-bottom:1px solid var(--border); max-height:45vh; overflow-y:auto; }
    .clima-feed-title { color:var(--verde); font-size:1rem; margin:0 0 16px; text-align:left; }
    .clima-feed-empty { color:var(--gris); text-align:center; padding:16px; font-size:0.9rem; }
    .clima-feed-dest { background:rgba(255,255,255,0.04); border:1px solid var(--border); border-radius:16px; padding:14px 16px; margin-bottom:14px; }
    .clima-feed-dest h4 { color:var(--rosa); margin:0 0 10px; font-size:1.05rem; }
    .clima-feed-day { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid rgba(255,255,255,0.06); flex-wrap:wrap; }
    .clima-feed-day:last-child { border-bottom:none; }
    .clima-feed-day .cfd-label { flex:1; min-width:100px; font-size:0.85rem; color:var(--texto); }
    .clima-feed-day .cfd-icon { font-size:1.4rem; }
    .clima-feed-day .cfd-temp { font-weight:bold; color:#38bdf8; min-width:52px; }
    .clima-feed-day .cfd-desc { font-size:0.75rem; color:var(--gris); text-transform:capitalize; flex:1; text-align:right; }
    .weather-chip-day { padding:4px 10px; font-size:0.85rem; }
    .weather-chip-day .weather-chip-temp { font-size:0.95rem; }
    .dia-resumen-header { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; margin-bottom:8px; }
    .dia-resumen-header h4 { margin:0; }
    .clima-card-full { background:rgba(255,255,255,0.05); border:1px solid var(--border); border-radius:20px; padding:24px; }
    .clima-current-row { display:flex; align-items:center; gap:20px; flex-wrap:wrap; margin-bottom:20px; }
    .clima-current-icon { font-size:4rem; line-height:1; }
    .clima-current-temp { font-size:3rem; font-weight:bold; color:var(--verde); line-height:1; }
    .clima-current-meta { color:var(--gris); font-size:0.9rem; margin-top:6px; }
    .clima-forecast-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(100px,1fr)); gap:10px; }
    .clima-forecast-day { background:rgba(0,0,0,0.25); border-radius:12px; padding:12px 8px; text-align:center; border:1px solid var(--border); }
    .clima-forecast-day .day-icon { font-size:1.8rem; display:block; margin:4px 0; }
    .clima-forecast-day .day-temps { font-size:0.85rem; color:var(--texto); font-weight:bold; }
    .clima-forecast-day .day-label { font-size:0.75rem; color:var(--gris); text-transform:capitalize; }

    .weather-chip {
      display:inline-flex; flex-direction:column; align-items:flex-start; gap:0;
      background:rgba(56,189,248,0.12); border:1px solid rgba(56,189,248,0.35);
      border-radius:16px; padding:6px 12px; cursor:pointer; transition:all 0.25s ease;
      max-width:100%; user-select:none; flex-shrink:0;
    }
    .weather-chip:hover { background:rgba(56,189,248,0.2); border-color:#38bdf8; transform:translateY(-1px); }
    .weather-chip.expanded { padding:12px 14px; min-width:220px; max-width:320px; z-index:5; box-shadow:0 8px 30px rgba(0,0,0,0.4); }
    .weather-chip-row { display:flex; align-items:center; gap:8px; }
    .weather-chip-icon { font-size:1.5rem; line-height:1; }
    .weather-chip-temp { font-weight:bold; color:#38bdf8; font-size:1.1rem; }
    .weather-chip-desc { font-size:0.75rem; color:var(--gris); text-transform:capitalize; max-width:90px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
    .weather-chip.expanded .weather-chip-desc { max-width:none; white-space:normal; }
    .weather-expanded { margin-top:10px; padding-top:10px; border-top:1px solid var(--border); width:100%; font-size:0.85rem; color:var(--texto); animation:fadeIn 0.2s ease; }
    .weather-expanded p { margin:4px 0; }
    .weather-forecast-mini { display:flex; gap:6px; flex-wrap:wrap; margin-top:10px; }
    .weather-forecast-mini .wf-day { flex:1; min-width:52px; text-align:center; background:rgba(0,0,0,0.2); border-radius:8px; padding:6px 4px; font-size:0.7rem; }
    .weather-forecast-mini .wf-day span { display:block; }
    .weather-forecast-mini .wf-icon { font-size:1.2rem; }
    .destino-header .weather-chip { margin-left:auto; margin-right:8px; }
    @keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
    /* Animaciones extra */
    @keyframes float { 0% { transform: translateY(0px); } 50% { transform: translateY(-5px); } 100% { transform: translateY(0px); } }
    .destino:hover .bubble-name { animation: float 1s ease infinite; }
    button { animation: pulseSoft 2s infinite; }
    @keyframes pulseSoft { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,0.3); } 70% { box-shadow: 0 0 0 10px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }

    /* ZERO GRAVITY / PARALLAX */
    .zero-gravity { transition: transform 0.1s ease-out; }
    @keyframes floatRandom { 
        0% { transform: translate(0px, 0px) rotate(0deg); } 
        25% { transform: translate(2px, -3px) rotate(1deg); } 
        50% { transform: translate(-2px, 4px) rotate(-1deg); } 
        75% { transform: translate(3px, 1px) rotate(0.5deg); } 
        100% { transform: translate(0px, 0px) rotate(0deg); } 
    }
    .floating-el { animation: floatRandom 4s infinite alternate ease-in-out; }
    #bg-parallax{ position: fixed; inset: -100px; background: radial-gradient(circle at center, rgba(52,211,153,0.05) 0%, transparent 60%); z-index: 1; pointer-events: none; transition: transform 0.1s ease-out; }
    .modal-content, .panel-herramientas-content, .resumen-content { z-index: 2; position: relative; }

    /* LABS UI */
    #plux-labs-panel { display: none; position: fixed; top: 0; right: 0; width: 320px; height: 100vh; background: rgba(0,0,0,0.95); border-left: 2px solid var(--verde); color: #00ff41; z-index: 10001; padding: 20px; overflow-y: auto; font-family: monospace; }
    .labs-section { border-bottom: 1px dashed #333; margin-bottom: 15px; padding-bottom: 15px; }
    .labs-btn { width: 100%; background: transparent; border: 1px solid #00ff41; color: #00ff41; padding: 8px; cursor: pointer; margin-top: 5px; font-family: monospace;}
    .labs-btn:hover { background: #00ff41; color: #000; }
    .stamp-passport { border: 2px dashed var(--verde); border-radius: 50%; width: 70px; height: 70px; display: inline-flex; align-items: center; justify-content: center; font-size: 9px; margin: 5px; transform: rotate(-15deg); color: var(--texto); border-color: var(--texto); text-align: center; font-family: sans-serif;}

    /* TIMELINE VISTA MEJORADA */
    .vista-linea-tiempo { position: relative; padding-left: 40px; }
    .vista-linea-tiempo::before { content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 4px; background: var(--border); border-radius: 2px; }
    .ciudad-block.timeline { position: relative; margin-bottom: 40px; border-left: none; }
    .ciudad-block.timeline::before { content: ' ✈ '; position: absolute; left: -38px; top: 15px; background: var(--card); padding: 5px; border-radius: 50%; border: 2px solid var(--verde); font-size: 1.2rem; }
    .dia-resumen.timeline { position: relative; margin-left: 20px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
    .dia-resumen.timeline::before { content: ''; position: absolute; left: -31px; top: 10px; width: 12px; height: 12px; border-radius: 50%; background: var(--rosa); box-shadow: 0 0 10px var(--rosa); }
    .evento-resumen.timeline { display: flex; gap: 15px; align-items: center; margin-bottom: 10px; }
    .evento-resumen.timeline .hora-t { font-weight: bold; color: var(--verde); min-width: 60px; }

    /* ARES THEME OPTIMIZATIONS */
    .theme-ares .container, .theme-ares .welcome { 
      max-width: 95vw; 
      margin: 20px auto; 
      transform-style: preserve-3d;
      backface-visibility: hidden;
    }
    .theme-ares .resumen-content, .theme-ares .modal-content {
      width: 90vw;
      max-height: 85vh;
    }
    .theme-ares .ciudad-block {
      backdrop-filter: blur(10px);
      background: rgba(255,255,255,0.03);
    }

    /* ============================
       INSPIRATION CARDS (Welcome)
       ============================ */
    .inspo-section {
      width: 100%;
      max-width: 900px;
      margin-top: 30px;
    }
    .inspo-title {
      color: var(--gris);
      font-size: 0.75rem;
      text-transform: uppercase;
      letter-spacing: 3px;
      text-align: center;
      margin-bottom: 14px;
      opacity: 0.7;
    }
    .inspo-scroll {
      display: flex;
      gap: 14px;
      overflow-x: auto;
      padding: 10px 20px 20px;
      margin: 0 -20px;
      -ms-overflow-style: none;
      scrollbar-width: none;
    }
    .inspo-scroll::-webkit-scrollbar { display: none; }
    .inspo-card {
      flex: 0 0 160px;
      height: 100px;
      border-radius: 16px;
      background-size: cover;
      background-position: center;
      position: relative;
      overflow: hidden;
      cursor: pointer;
      border: 1px solid var(--border);
      transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.3s;
    }
    .inspo-card::before {
      content: '';
      position: absolute;
      inset: 0;
      background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    }
    .inspo-card:hover {
      transform: scale(1.05) translateY(-4px);
      box-shadow: 0 15px 40px rgba(0,0,0,0.5);
    }
    .inspo-card-label {
      position: absolute;
      bottom: 10px;
      left: 12px;
      color: white;
      font-weight: bold;
      font-size: 0.85rem;
      z-index: 2;
    }
    .inspo-card-flag {
      position: absolute;
      top: 8px;
      right: 10px;
      font-size: 1.2rem;
      z-index: 2;
    }

    /* ============================
       FLOATING CHAT BUTTON
       ============================ */
    
    
    #chat-float-btn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      width: 65px;
      height: 65px;
      background: transparent; border: none; border-radius: 50%; color: white; cursor: pointer; box-shadow: none;
      z-index: 500;
      display: flex !important;
      align-items: center;
      justify-content: center;
      transition: transform 0.3s cubic-bezier(0.175,0.885,0.32,1.275), box-shadow 0.3s;
    }


    #chat-float-btn:hover {
      transform: scale(1.15) rotate(5deg);
      box-shadow: 0 15px 50px rgba(99,102,241,0.8);
    }
    #chat-float-btn .chat-badge {
      position: absolute;
      top: -4px;
      right: -4px;
      width: 18px;
      height: 18px;
      background: #ef4444;
      border-radius: 50%;
      font-size: 0.6rem;
      display: none;
      align-items: center;
      justify-content: center;
    }

    /* ============================
       CHAT IA MODAL
       ============================ */
    
    #modal-chat-ia {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 600;
      padding: 20px;
    }

    .chat-container {
      width: 400px;
      max-width: 100%;
      height: 580px;
      background: linear-gradient(135deg, var(--card), var(--fondo));
      border: 1px solid var(--border);
      border-radius: 24px;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      box-shadow: 0 30px 80px rgba(0,0,0,0.8);
      animation: scaleIn 0.3s ease;
    }
    .chat-header {
      padding: 16px 20px;
      background: linear-gradient(90deg, #6366f1, #8b5cf6);
      display: flex;
      align-items: center;
      justify-content: space-between;
    }
    .chat-header h3 { color: white; margin: 0; font-size: 1rem; }
    .chat-header-info { font-size: 0.75rem; color: rgba(255,255,255,0.8); }
    .chat-messages {
      flex: 1;
      overflow-y: auto;
      padding: 16px;
      display: flex;
      flex-direction: column;
      gap: 12px;
    }
    .chat-msg {
      max-width: 80%;
      padding: 10px 14px;
      border-radius: 18px;
      font-size: 0.9rem;
      line-height: 1.5;
      animation: fadeIn 0.3s ease;
    }
    .chat-msg.user {
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      color: white;
      align-self: flex-end;
      border-bottom-right-radius: 4px;
    }
    .chat-msg.ai {
      background: rgba(255,255,255,0.08);
      border: 1px solid var(--border);
      color: var(--texto);
      align-self: flex-start;
      border-bottom-left-radius: 4px;
    }
    .chat-msg.ai.typing {
      opacity: 0.6;
      font-style: italic;
    }
    .chat-input-area {
      padding: 12px 16px;
      border-top: 1px solid var(--border);
      display: flex;
      gap: 10px;
    }
    .chat-input-area input {
      flex: 1;
      padding: 10px 16px;
      border-radius: 999px;
      background: rgba(255,255,255,0.06);
      border: 1px solid var(--border);
      color: var(--texto);
      font-size: 0.95rem;
      min-width: 0;
    }
    .chat-input-area button {
      width: 42px;
      height: 42px;
      border-radius: 50%;
      background: linear-gradient(135deg, #6366f1, #8b5cf6);
      border: none;
      color: white;
      font-size: 1.2rem;
      padding: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }
    .chat-quick-btns {
      padding: 8px 16px;
      display: flex;
      gap: 6px;
      flex-wrap: wrap;
      border-bottom: 1px solid var(--border);
    }
    .chat-quick-btn {
      padding: 4px 10px;
      border-radius: 999px;
      background: rgba(99,102,241,0.15);
      border: 1px solid rgba(99,102,241,0.3);
      color: #818cf8;
      font-size: 0.75rem;
      cursor: pointer;
    }
    .chat-quick-btn:hover { background: rgba(99,102,241,0.3); }

    /* ============================
       CHECKLIST MODAL
       ============================ */
    #modal-checklist {
      position: fixed;
      inset: 0;
      background: rgba(15,23,42,0.96);
      backdrop-filter: blur(8px);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 400;
      padding: 20px;
    }
    .checklist-content {
      max-width: 600px;
      width: 100%;
      max-height: 85vh;
      overflow-y: auto;
      background: linear-gradient(135deg, var(--card), var(--fondo));
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 30px;
    }
    .checklist-category {
      margin-bottom: 20px;
    }
    .checklist-category h4 {
      color: var(--verde);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 8px;
    }
    .checklist-item {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 10px 14px;
      background: rgba(255,255,255,0.04);
      border-radius: 10px;
      margin-bottom: 6px;
      transition: background 0.2s;
      cursor: pointer;
    }
    .checklist-item:hover { background: rgba(255,255,255,0.08); }
    .checklist-item input[type="checkbox"] {
      width: 18px;
      height: 18px;
      flex-shrink: 0;
      accent-color: var(--verde);
      cursor: pointer;
      min-width: 18px;
    }
    .checklist-item.done label { text-decoration: line-through; opacity: 0.5; }
    .checklist-item label { cursor: pointer; flex: 1; }
    .checklist-progress {
      height: 6px;
      background: rgba(255,255,255,0.1);
      border-radius: 3px;
      margin-bottom: 20px;
      overflow: hidden;
    }
    .checklist-progress-bar {
      height: 100%;
      background: linear-gradient(90deg, var(--verde), var(--azul));
      border-radius: 3px;
      transition: width 0.5s ease;
    }

    /* ============================
       ENHANCED SUMMARY
       ============================ */
    .resumen-hero {
      background: linear-gradient(135deg, rgba(52,211,153,0.1), rgba(99,102,241,0.1));
      border: 1px solid var(--border);
      border-radius: 20px;
      padding: 30px;
      margin-bottom: 24px;
      text-align: center;
    }
    .resumen-hero h2 {
      font-size: 2.5rem;
      background: linear-gradient(90deg, var(--verde), var(--azul), var(--rosa));
      -webkit-background-clip: text;
      background-clip: text;
      -webkit-text-fill-color: transparent;
      margin-bottom: 8px;
    }
    .stat-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
      gap: 16px;
      margin-bottom: 28px;
    }
    .stat-card { background: rgba(0,255,65,0.05); border: 1px solid var(--border); box-shadow: 0 4px 15px rgba(0,0,0,0.2);
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 20px 16px;
      text-align: center;
      transition: transform 0.3s;
    }
    .stat-card:hover { transform: translateY(-4px); }
    .stat-card .stat-icon { font-size: 1.8rem; margin-bottom: 8px; }
    .stat-card .stat-value { font-size: 2rem; font-weight: bold; color: var(--verde); }
    .stat-card .stat-label { font-size: 0.8rem; color: var(--gris); text-transform: uppercase; letter-spacing: 1px; }
    .resumen-chart-section {
      display: grid;
      grid-template-columns: 1fr;
      gap: 20px;
      margin-bottom: 24px;
    }
    @media(max-width:600px) { .resumen-chart-section { grid-template-columns: 1fr; } }
    .chart-box{
      background: rgba(255,255,255,0.04);
      border: 1px solid var(--border);
      border-radius: 16px;
      padding: 20px;
    }
    .chart-box h4 { color: var(--gris); font-size: 0.8rem; text-transform: uppercase; margin-bottom: 14px; }
    #resumen-map-mini {
      height: 350px;
      border-radius: 12px;
      background: #1a1e24;
    }
  
    #modal-chat-ia {
      position: fixed;
      inset: 0;
      background: rgba(0,0,0,0.7);
      backdrop-filter: blur(8px);
      display: none;
      align-items: flex-end;
      justify-content: flex-end;
      z-index: 600;
      padding: 20px;
    }

/* chat-float-btn visible */

/* ============================
   PLUX REPAIR: travel editor layout
   ============================ */
#app.container {
  width: min(1180px, calc(100% - 28px));
  max-width: 1180px;
  padding: 24px;
  margin: 0 auto;
}

#app *,
#app *::before,
#app *::after {
  min-width: 0;
}

#app h1 {
  margin: 18px 0 28px;
  padding: 0 72px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
}

#app .datos-generales,
#app .destino,
#app .dia,
#app .evento,
#app .transport-fields,
#app .tramo-item,
#app .costos-adicionales {
  border: 1px solid var(--border);
  border-radius: 14px;
}

#app .datos-generales {
  gap: 14px;
  padding: 18px;
}

#app .fila-dato {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 10px 14px;
  align-items: center;
}

#app .fila-dato label {
  min-width: 0;
  font-size: 0.95rem;
}

#app input,
#app select,
#app textarea,
#app button {
  max-width: 100%;
}

#app input,
#app select {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  font-size: 0.98rem;
}

#app input:focus,
#app select:focus {
  transform: none;
}

#app button:not(.close-icon) {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.95rem;
  white-space: normal;
  text-align: center;
}

#app button::after,
#modal-panel-herramientas button::after,
#modal-viajes button::after,
#modal-checklist button::after,
#modal-chat-ia button::after,
.close-icon::after {
  display: none;
}

#app button:hover,
#app .destino:hover,
#app .dia:hover,
#app .evento:hover,
#app .fila-dato:hover {
  transform: none;
}

#app .add-destino {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 24px;
}

#app .destinos {
  gap: 18px;
}

#app .destino-header,
#app .dia-header,
#app .costos-header,
#app .tramo-header {
  gap: 12px;
}

#app .destino h2 {
  overflow-wrap: anywhere;
}

#app .bubble-name {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
  font-size: 1.15rem;
}



#app .tramo-fields {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
}

#app .escalas-container {
  padding-left: 12px;
}

#app .escala-item,
#app .costo-adicional-item,
#app .fila-hora-titulo,
#app .evento .detalles-evento,
#app .evento-actions {
  flex-wrap: wrap;
}

#app .fila-hora-titulo {
  display: grid;
  grid-template-columns: 120px minmax(220px, 1fr);
}

#app .fila-hora-titulo input[type="time"] {
  width: 100%;
}

#app .evento .detalles-evento {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px 120px;
}

#app .evento .detalles-evento input[type="number"],
#app .costo-adicional-item input[type="number"],
#app .campo-vuelta input[type="number"] {
  width: 100%;
}

#app .costo-adicional-item {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 110px auto;
  gap: 8px;
}

#app .evento-actions {
  justify-content: flex-end;
}

#app .dias {
  margin-left: 0;
}

#btn-resumen { width: auto; padding: 16px 40px; margin: 30px auto; display: block; }

.main-buttons {
  width: min(100%, 720px);
}

.main-btn {
  min-width: 0;
  white-space: normal;
}

.inspo-card-flag {
  letter-spacing: 0.04em;
}

@media (max-width: 760px) {
  #app.container {
    width: min(100% - 16px, 100%);
    padding: 16px 10px 24px;
  }

  #app h1 {
    padding: 68px 0 0;
    margin-bottom: 20px;
    font-size: 1.8rem;
  }

  #app .fila-dato,
  #app .add-destino,
  #app .fila-hora-titulo,
  #app .evento .detalles-evento,
  #app .costo-adicional-item {
    grid-template-columns: 1fr;
  }

  #app .destino,
  #app .dia,
  #app .evento,
  #app .datos-generales {
    padding: 14px;
  }

  #app .destino-header,
  #app .dia-header {
    align-items: flex-start;
  }

  #app .bubble-name {
    width: 48px;
    height: 48px;
    flex-basis: 48px;
    font-size: 1rem;
  }



  #app .evento-actions,
  #app .dia-actions {
    justify-content: stretch;
  }

  #app .evento-actions button,
  #app .dia-actions button {
    flex: 1 1 auto;
  }

  .main-buttons {
    gap: 10px;
  }

  .main-btn {
    
    padding: 14px 18px;
    font-size: 1rem;
  }
}

/* ============================
   ACCOUNT / NICKNAME SYSTEM
   ============================ */

#modal-cuenta {
  position:fixed; inset:0; background:rgba(15,23,42,0.96); backdrop-filter:blur(8px);
  display:none; align-items:center; justify-content:center; z-index:300; padding:10px;
}
.cuenta-content {
  max-width:420px; width:95%; background:linear-gradient(135deg,var(--card),var(--fondo));
  border-radius:24px; padding:30px; box-shadow:0 20px 80px rgba(0,0,0,0.6);
  position:relative; animation:scaleIn 0.4s ease;
}
.cuenta-content h2 { color:var(--verde); margin-bottom:20px; font-size:1.6rem; }
.cuenta-avatar {
  width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,var(--verde),var(--azul));
  display:flex; align-items:center; justify-content:center; font-size:2.5rem; color:white;
  margin:0 auto 20px; border:3px solid var(--border); transition:transform 0.3s;
}
.cuenta-avatar:hover { transform: scale(1.1) rotate(5deg); }
.cuenta-nickname-display {
  text-align:center; font-size:1.2rem; color:var(--verde); font-weight:bold; margin-bottom:15px;
}
.cuenta-form { display:flex; flex-direction:column; gap:12px; }
.cuenta-form input {
  padding:12px 16px; background:rgba(255,255,255,0.05); border:1px solid var(--border);
  border-radius:12px; color:white; font-size:1rem;
}
.cuenta-form input:focus { border-color:var(--verde); outline:none; box-shadow:0 0 10px rgba(52,211,153,0.2); }
.cuenta-form button {
  padding:12px; background:linear-gradient(135deg,var(--verde),var(--azul)); color:white;
  border:none; border-radius:12px; font-size:1rem; font-weight:bold; cursor:pointer;
  transition:transform 0.2s, box-shadow 0.2s;
}
.cuenta-form button:hover { transform:translateY(-2px); box-shadow:0 8px 25px rgba(52,211,153,0.3); }
.cuenta-info { margin-top:15px; padding-top:15px; border-top:1px solid var(--border); }
.cuenta-info-row { display:flex; justify-content:space-between; padding:6px 0; font-size:0.85rem; color:var(--gris); }
.cuenta-info-row span:last-child { color:var(--texto); }
.cuenta-logout { margin-top:15px; padding:10px; background:none; border:1px solid var(--rosa);
  color:var(--rosa); border-radius:10px; width:100%; cursor:pointer; font-size:0.9rem; transition:all 0.3s; }
.cuenta-logout:hover { background:rgba(236,72,153,0.15); }
