    * { box-sizing: border-box; margin: 0; padding: 0; }
    body {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      background: #0f0f0f; color: #f0f0f0; min-height: 100vh;
    }
    header {
      background: #1a1a1a; padding: 14px 20px 8px;
      display: flex; align-items: center; justify-content: space-between;
      border-bottom: 1px solid #2a2a2a; position: sticky; top: 0; z-index: 10;
    }
    header h1 { font-size: 20px; font-weight: 700; color: #ff6b35; }
    header span { font-size: 12px; color: #888; }
    .back-btn { background: none; border: none; color: #ff6b35; font-size: 15px; cursor: pointer; }
    .filtros {
      display: flex; gap: 8px; padding: 16px 20px 8px;
      overflow-x: auto; scrollbar-width: none;
    }
    .filtros::-webkit-scrollbar { display: none; }
    .filtro-btn {
      padding: 6px 14px; border-radius: 20px; border: 1px solid #333;
      background: #1a1a1a; color: #aaa; font-size: 13px; cursor: pointer; white-space: nowrap;
    }
    .filtro-btn.active { background: #ff6b35; border-color: #ff6b35; color: white; }
    .zona-btn {
      padding: 6px 14px; border-radius: 20px; border: 1px solid #333;
      background: #1a1a1a; color: #aaa; font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0;
    }
    .zona-btn.active { background: #1a2d4a; border-color: #4a8fff; color: #4a8fff; }
    .subtitle { padding: 8px 20px 4px; font-size: 13px; color: #666; }
    .lista { padding: 8px 16px 100px; display: flex; flex-direction: column; gap: 10px; }
    .card {
      background: #1a1a1a; border-radius: 14px; padding: 14px 16px;
      display: flex; align-items: center; gap: 14px; cursor: pointer;
      border: 1px solid #2a2a2a; transition: background 0.2s;
      min-height: 80px; box-sizing: border-box;
    }
    .card:active { background: #222; }
    .icono-apto {
      width: 44px; height: 44px; border-radius: 10px;
      display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0;
    }
    .info { flex: 1; min-width: 0; }
    .info .nombre { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .info .sub { font-size: 12px; color: #bbb; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .info .sub2 { font-size: 11px; color: #888; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 14px; }
    .badge { padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; white-space: nowrap; flex-shrink: 0; }
    .badge.ocupado { background: #2d1f1f; color: #ff6b6b; }
    .badge.libre { background: #1a2d1a; color: #6bff6b; }
    .badge.checkin { background: #1a2535; color: #6bb5ff; }
    .badge.checkout { background: #2d2a1a; color: #ffd96b; }
    .badge.limpieza { background: #2a1a2d; color: #d96bff; }
    .badge.limpieza-progreso { background: #1a0d2d; color: #aa44ff; border: 1px solid #aa44ff; }
    .badge.pospuesto { background: #2a2400; color: #ffd96b; border: 1px solid #ffd96b; }
    .badge.problema  { background: #2d1a1a; color: #ff6b6b; border: 1px solid #ff6b6b; }
    .badge.mantenimiento { background: #2d2d1a; color: #ffcc6b; }
    .fab {
      position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px;
      border-radius: 50%; background: #ff6b35; color: white; font-size: 28px;
      border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
      box-shadow: 0 4px 20px rgba(255,107,53,0.4); z-index: 100;
    }

    /* DETALLE */
    .detalle-wrap { padding: 16px 16px 100px; }
    .detalle-header {
      display: flex; align-items: center; gap: 14px; padding: 16px;
      background: #1a1a1a; border-radius: 14px; margin-bottom: 16px; border: 1px solid #2a2a2a;
    }
    .icono-grande {
      width: 56px; height: 56px; border-radius: 14px;
      display: flex; align-items: center; justify-content: center; font-size: 26px; flex-shrink: 0;
    }
    .det-info h2 { font-size: 17px; font-weight: 700; }
    .det-info p { font-size: 13px; color: #888; margin-top: 4px; }
    .seccion-titulo { font-size: 13px; color: #666; text-transform: uppercase; letter-spacing: 0.5px; margin: 20px 0 10px; }

    /* BOTONES ACCIÓN PRINCIPALES */
    .acciones-principales { display: flex; flex-direction: column; gap: 10px; }
    .btn-principal {
      width: 100%; padding: 16px; border-radius: 14px; border: none;
      font-size: 16px; font-weight: 700; cursor: pointer; text-align: center;
    }
    .btn-checkin { background: #1a2535; color: #6bb5ff; border: 1px solid #6bb5ff; }
    .btn-checkout { background: #2d2a1a; color: #ffd96b; border: 1px solid #ffd96b; }

    .estados-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .estado-btn {
      padding: 14px; border-radius: 12px; border: 1px solid #333;
      background: #1a1a1a; color: #f0f0f0; font-size: 14px; cursor: pointer; text-align: center;
    }
    .estado-btn.limpieza { border-color: #6b35ff; color: #d96bff; }
    .estado-btn.mantenimiento { border-color: #cc8800; color: #ffcc6b; }
    .estado-btn.libre { border-color: #00aa44; color: #6bff6b; }

    /* RESERVA */
    .reserva-card { background: #1a1a1a; border-radius: 14px; padding: 16px; border: 1px solid #2a2a2a; }
    .res-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #2a2a2a; }
    .res-row:last-child { border-bottom: none; }
    .res-label { font-size: 13px; color: #888; }
    .res-valor { font-size: 14px; font-weight: 500; }
    .plataforma-badge { padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
    .plataforma-badge.Airbnb { background: #3d1a1a; color: #ff6b6b; }
    .plataforma-badge.Booking { background: #1a1a3d; color: #6b9bff; }
    .plataforma-badge.Directo { background: #1a3d1a; color: #6bff6b; }
    .acciones-reserva { display: flex; gap: 10px; margin-top: 12px; }
    .btn-accion { flex: 1; padding: 12px; border-radius: 12px; border: none; font-size: 14px; font-weight: 600; cursor: pointer; }
    .btn-editar { background: #1a2535; color: #6bb5ff; }
    .btn-eliminar { background: #2d1a1a; color: #ff6b6b; }
    .sin-reserva { background: #1a1a1a; border-radius: 14px; padding: 24px; text-align: center; color: #555; border: 1px dashed #333; font-size: 14px; }

    /* MODALES */
    .modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 200; align-items: flex-end; }
    .modal-overlay.open { display: flex; }
    .modal {
      background: #1a1a1a; border-radius: 20px 20px 0 0; width: 100%;
      max-height: 90vh; overflow-y: auto; padding: 24px 20px 40px; animation: slideUp 0.3s ease;
    }
    @keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
    .modal h2 { font-size: 18px; margin-bottom: 20px; }
    .form-group { margin-bottom: 16px; }
    .form-group label { display: block; font-size: 13px; color: #888; margin-bottom: 6px; }
    .form-group input, .form-group select, .form-group textarea {
      width: 100%; background: #0f0f0f; border: 1px solid #333;
      border-radius: 10px; color: #f0f0f0; padding: 12px 14px; font-size: 15px;
    }
    .form-group textarea { height: 80px; resize: none; }
    .btn-guardar { width: 100%; background: #ff6b35; color: white; border: none; border-radius: 12px; padding: 14px; font-size: 16px; font-weight: 600; cursor: pointer; margin-top: 8px; }
    .btn-cancelar { width: 100%; background: transparent; color: #888; border: 1px solid #333; border-radius: 12px; padding: 12px; font-size: 15px; cursor: pointer; margin-top: 8px; }
    .loading { text-align: center; padding: 40px; color: #666; }

    #vista-dashboard { display: block; }
    #vista-detalle { display: none; }

    /* CALENDARIO */
    .calendario-wrap { background: #1a1a1a; border-radius: 14px; padding: 16px; border: 1px solid #2a2a2a; }
    .cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
    .cal-nav button { background: #2a2a2a; border: none; color: #f0f0f0; padding: 6px 14px; border-radius: 8px; font-size: 16px; cursor: pointer; }
    .cal-nav .cal-mes { font-size: 15px; font-weight: 600; }
    .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
    .cal-dia-nombre { font-size: 11px; color: #666; padding: 4px 0; font-weight: 600; }
    .cal-dia { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; }
    .cal-dia.libre { background: #1a2d1a; color: #6bff6b; }
    .cal-dia.ocupado { background: #2d1f1f; color: #ff6b6b; }
    .cal-dia.checkin { background: #1a2535; color: #6bb5ff; font-weight: 700; }
    .cal-dia.checkout { background: #2d2a1a; color: #ffd96b; font-weight: 700; }
    .cal-dia.hoy { outline: 2px solid #ff6b35; border-radius: 8px; }
    .cal-leyenda { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; font-size: 11px; color: #888; }
    .cal-leyenda span { display: flex; align-items: center; gap: 4px; }
    .cal-dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
    .hist-card {
      background: #1a1a1a; border-radius: 12px; padding: 14px 16px;
      border: 1px solid #2a2a2a; margin-bottom: 8px;
      display: flex; justify-content: space-between; align-items: center; gap: 12px;
    }
    .hist-card .hist-nombre { font-size: 15px; font-weight: 600; }
    .hist-card .hist-fechas { font-size: 12px; color: #888; margin-top: 3px; }
    .hist-card .hist-noches {
      font-size: 13px; font-weight: 700; color: #ff6b35;
      white-space: nowrap; text-align: right;
    }
    /* Icono SVG saludo */
    #saludo-icono { display:flex; align-items:center; justify-content:center; width:52px; height:52px; flex-shrink:0; align-self:center; }
    .saludo-svg { width:52px; height:52px; color:#ede8dc; display:block; }
  </style>
</head>
